コード例 #1
0
ファイル: STRCommands.java プロジェクト: seba--/sugarj
  private static Path lookupAssimilationInCache(ModuleKeyCache<Path> strCache, ModuleKey key) {
    if (strCache == null) return null;

    Path result = null;

    log.beginTask("Searching", "Search assimilator in cache", Log.CACHING);
    try {
      result = strCache.get(key);

      if (result == null || !result.getFile().exists()) return null;

      log.log("Cache location: '" + result + "'", Log.CACHING);

      return result;
    } finally {
      log.endTask(result != null);
    }
  }