コード例 #1
0
 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
ファイル: DefaultVisitedTree.java プロジェクト: Zhuoli/gradle
 private String getInternedAbsolutePath(File file, StringInterner stringInterner) {
   return stringInterner.intern(file.getAbsolutePath());
 }