code: @SuppressWarnings("unchecked")
      protected SourceInclusionScanner getSourceInclusionScanner( int staleMillis )
      {
          SourceInclusionScanner scanner;
  
          if ( testIncludes.isEmpty() && testExcludes.isEmpty() )
          {
              scanner = new StaleSourceScanner( staleMillis );
          }
          else
          {
              if ( testIncludes.isEmpty() )
              {
                  testIncludes.add( "**/*.java" );
              }
              scanner = new StaleSourceScanner( staleMillis, testIncludes, testExcludes );
          }
  
          return scanner;
      }
docs: <p>getSourceInclusionScanner.</p>
  
  @param staleMillis a int.
  @return a {@link org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner} object.