Skip to content

Commit

Permalink
Remove unnecessary interface
Browse files Browse the repository at this point in the history
+review REVIEW-6303
  • Loading branch information
lptr committed Oct 12, 2016
1 parent 58ffd5b commit 021d872
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.gradle.api.internal.changedetection.state;

import com.google.common.annotations.VisibleForTesting;
import com.google.common.hash.HashCode;
import org.gradle.api.file.FileTreeElement;
import org.gradle.api.internal.cache.StringInterner;
Expand Down Expand Up @@ -81,7 +82,8 @@ private FileInfo snapshot(File file, long length, long timestamp) {
return info;
}

public static class FileInfo implements FileSnapshot {
@VisibleForTesting
static class FileInfo {
private final HashCode hash;
private final long timestamp;
private final long length;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@

package org.gradle.api.internal.changedetection.state;

import com.google.common.hash.HashCode;

/**
* An immutable snapshot of the type and content of a file.
*
* Should implement {@link #equals(Object)} and {@link #hashCode()} to compare these.
*/
public interface IncrementalFileSnapshot extends FileSnapshot {
public interface IncrementalFileSnapshot {
HashCode getHash();

boolean isContentUpToDate(IncrementalFileSnapshot snapshot);

boolean isContentAndMetadataUpToDate(IncrementalFileSnapshot snapshot);
Expand Down

0 comments on commit 021d872

Please sign in to comment.