"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "subprojects/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasher.java" between
gradle-6.8.2-src.zip and gradle-6.8.3-src.zip

About: Gradle is a build tool with a focus on build automation and support for multi-language development.

MetaInfAwareClasspathResourceHasher.java  (gradle-6.8.2-src):MetaInfAwareClasspathResourceHasher.java  (gradle-6.8.3-src)
skipping to change at line 55 skipping to change at line 55
private final ResourceEntryFilter attributeResourceFilter; private final ResourceEntryFilter attributeResourceFilter;
public MetaInfAwareClasspathResourceHasher(ResourceHasher delegate, Resource EntryFilter attributeResourceFilter) { public MetaInfAwareClasspathResourceHasher(ResourceHasher delegate, Resource EntryFilter attributeResourceFilter) {
this.delegate = delegate; this.delegate = delegate;
this.attributeResourceFilter = attributeResourceFilter; this.attributeResourceFilter = attributeResourceFilter;
} }
@Override @Override
public void appendConfigurationToHasher(Hasher hasher) { public void appendConfigurationToHasher(Hasher hasher) {
delegate.appendConfigurationToHasher(hasher); delegate.appendConfigurationToHasher(hasher);
hasher.putString(getClass().getName());
attributeResourceFilter.appendConfigurationToHasher(hasher); attributeResourceFilter.appendConfigurationToHasher(hasher);
} }
@Nullable @Nullable
@Override @Override
public HashCode hash(RegularFileSnapshotContext snapshotContext) { public HashCode hash(RegularFileSnapshotContext snapshotContext) {
String relativePath = join("/", snapshotContext.getRelativePathSegments( ).get()); String relativePath = join("/", snapshotContext.getRelativePathSegments( ).get());
if (isManifestFile(relativePath)) { if (isManifestFile(relativePath)) {
return tryHashWithFallback(snapshotContext); return tryHashWithFallback(snapshotContext);
} else { } else {
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)