Ejemplo n.º 1
0
 public PackagePathCache(
     ImmutableSet<IjFolder> startingFolders, JavaPackageFinder javaPackageFinder) {
   delegate = new ParsingJavaPackageFinder.PackagePathCache();
   for (IjFolder startingFolder : startingFolders) {
     if (!startingFolder.getWantsPackagePrefix()) {
       continue;
     }
     Path path =
         FluentIterable.from(startingFolder.getInputs()).first().or(lookupPath(startingFolder));
     delegate.insert(path, javaPackageFinder.findJavaPackageFolder(path));
   }
 }
Ejemplo n.º 2
0
 public Optional<Path> lookup(IjFolder folder) {
   return delegate.lookup(lookupPath(folder));
 }