@Override public String debugPathString() { long time = lastModified(); if (time == 0) return this.zipFilename; return this.zipFilename + '(' + (new Date(time)) + " : " + time + ')'; //$NON-NLS-1$ }
public String debugPathString() { long time = lastModified(); if (time == 0) return this.zipFilename; return this.zipFilename + '(' + (new Date(time)) + " : " + time + ')'; //$NON-NLS-1$ }
public String debugPathString() { long time = lastModified(); if (time == 0) return this.zipFilename; return this.zipFilename + '(' + (new Date(time)) + " : " + time + ')'; //$NON-NLS-1$ }
public String debugPathString() { long time = lastModified(); if (time == 0) return this.zipFilename; return this.zipFilename + '(' + (new Date(time)) + " : " + time + ')'; //$NON-NLS-1$ }
public String debugPathString() { long time = lastModified(); if (time == 0) return this.zipFilename; return this.zipFilename + '(' + (new Date(time)) + " : " + time + ')'; //$NON-NLS-1$ }
public String debugPathString() { long time = lastModified(); if (time == 0) return this.zipFilename; return this.zipFilename + '(' + (new Date(time)) + " : " + time + ')'; //$NON-NLS-1$ }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ClasspathJar)) return false; ClasspathJar jar = (ClasspathJar) o; if (this.accessRuleSet != jar.accessRuleSet) if (this.accessRuleSet == null || !this.accessRuleSet.equals(jar.accessRuleSet)) return false; return this.zipFilename.equals(jar.zipFilename) && lastModified() == jar.lastModified(); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ClasspathJar)) return false; ClasspathJar jar = (ClasspathJar) o; if (this.accessRuleSet != jar.accessRuleSet) if (this.accessRuleSet == null || !this.accessRuleSet.equals(jar.accessRuleSet)) return false; return this.zipFilename.equals(jar.zipFilename) && lastModified() == jar.lastModified(); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ClasspathJar)) return false; ClasspathJar jar = (ClasspathJar) o; if (this.accessRuleSet != jar.accessRuleSet) if (this.accessRuleSet == null || !this.accessRuleSet.equals(jar.accessRuleSet)) return false; return this.zipFilename.equals(jar.zipFilename) && lastModified() == jar.lastModified(); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ClasspathJar)) return false; ClasspathJar jar = (ClasspathJar) o; if (this.accessRuleSet != jar.accessRuleSet) if (this.accessRuleSet == null || !this.accessRuleSet.equals(jar.accessRuleSet)) return false; return this.zipFilename.equals(jar.zipFilename) && lastModified() == jar.lastModified(); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ClasspathJar)) return false; ClasspathJar jar = (ClasspathJar) o; if (this.accessRuleSet != jar.accessRuleSet) if (this.accessRuleSet == null || !this.accessRuleSet.equals(jar.accessRuleSet)) return false; return this.zipFilename.equals(jar.zipFilename) && lastModified() == jar.lastModified() && this.isOnModulePath == jar.isOnModulePath; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ClasspathJar)) return false; ClasspathJar jar = (ClasspathJar) o; if (this.accessRuleSet != jar.accessRuleSet) if (this.accessRuleSet == null || !this.accessRuleSet.equals(jar.accessRuleSet)) return false; if (!Util.equalOrNull(this.compliance, jar.compliance)) { return false; } return this.zipFilename.equals(jar.zipFilename) && lastModified() == jar.lastModified() && this.isOnModulePath == jar.isOnModulePath && areAllModuleOptionsEqual(jar); }
long lastModified = jar.lastModified(); long fileSize = new File(zipFileName).length(); PackageCacheEntry cacheEntry = (PackageCacheEntry) PackageCache.get(zipFileName);
long lastModified = jar.lastModified(); long fileSize = new File(zipFileName).length(); PackageCacheEntry cacheEntry = (PackageCacheEntry) PackageCache.get(zipFileName);
long lastModified = jar.lastModified(); long fileSize = new File(zipFileName).length(); PackageCacheEntry cacheEntry = (PackageCacheEntry) PackageCache.get(zipFileName);
long lastModified = jar.lastModified(); long fileSize = new File(zipFileName).length(); PackageCacheEntry cacheEntry = (PackageCacheEntry) PackageCache.get(zipFileName);
/** * Calculate and cache the package list available in the zipFile. * @return A SimpleSet with the all the package names in the zipFile. */ protected SimpleSet findPackageSet() { String zipFileName = this.zipFilename; PackageCacheEntry cacheEntry = (PackageCacheEntry) PackageCache.get(zipFileName); long timestamp = this.lastModified(); long fileSize = new File(zipFileName).length(); if (cacheEntry != null && cacheEntry.lastModified == timestamp && cacheEntry.fileSize == fileSize) { return cacheEntry.packageSet; } final SimpleSet packageSet = new SimpleSet(41); packageSet.add(""); //$NON-NLS-1$ readJarContent(packageSet); PackageCache.put(zipFileName, new PackageCacheEntry(timestamp, fileSize, packageSet)); return packageSet; } protected String readJarContent(final SimpleSet packageSet) {
/** * Calculate and cache the package list available in the zipFile. * @return A SimpleSet with the all the package names in the zipFile. */ protected SimpleSet findPackageSet() { String zipFileName = this.zipFilename; PackageCacheEntry cacheEntry = (PackageCacheEntry) PackageCache.get(zipFileName); long timestamp = this.lastModified(); long fileSize = new File(zipFileName).length(); if (cacheEntry != null && cacheEntry.lastModified == timestamp && cacheEntry.fileSize == fileSize) { return cacheEntry.packageSet; } final SimpleSet packageSet = new SimpleSet(41); packageSet.add(""); //$NON-NLS-1$ readJarContent(packageSet); PackageCache.put(zipFileName, new PackageCacheEntry(timestamp, fileSize, packageSet)); return packageSet; } protected String readJarContent(final SimpleSet packageSet) {
out.writeByte(EXTERNAL_JAR); out.writeUTF(jar.zipFilename); out.writeLong(jar.lastModified()); } else { out.writeByte(INTERNAL_JAR); out.writeByte(EXTERNAL_JAR); out.writeUTF(jar.zipFilename); out.writeLong(jar.lastModified()); } else { out.writeByte(INTERNAL_JAR);
out.writeByte(EXTERNAL_JAR); out.writeUTF(jar.zipFilename); out.writeLong(jar.lastModified()); } else { out.writeByte(INTERNAL_JAR);