private Map<String, Boolean> getRoots(FileCollection files) {
   Map<String, Boolean> roots = new HashMap<String, Boolean>();
   for (File file : files.getFiles()) {
     roots.put(stringInterner.intern(file.getAbsolutePath()), file.exists());
   }
   return roots;
 }
Пример #2
0
 private String getInternedAbsolutePath(File file, StringInterner stringInterner) {
   return stringInterner.intern(file.getAbsolutePath());
 }