File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2222import org .apache .hadoop .fs .EtagSource ;
2323import org .apache .hadoop .fs .FileStatus ;
2424import org .apache .hadoop .fs .LocatedFileStatus ;
25-
26- import static org .apache .hadoop .thirdparty .com .google .common .base .Preconditions .checkNotNull ;
25+ import org .apache .hadoop .util .Preconditions ;
2726
2827/**
2928 * {@link LocatedFileStatus} extended to also carry an ETag.
@@ -38,7 +37,7 @@ public class AbfsLocatedFileStatus extends LocatedFileStatus implements EtagSour
3837 private final String etag ;
3938
4039 public AbfsLocatedFileStatus (FileStatus status , BlockLocation [] locations ) {
41- super (checkNotNull (status ), locations );
40+ super (Preconditions . checkNotNull (status ), locations );
4241 if (status instanceof EtagSource ) {
4342 this .etag = ((EtagSource ) status ).getEtag ();
4443 } else {
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
259259 <reason >Use hadoop-common provided Preconditions rather than Guava provided</reason >
260260 <bannedImports >
261261 <bannedImport >org.apache.hadoop.thirdparty.com.google.common.base.Preconditions</bannedImport >
262+ <bannedImport >static org.apache.hadoop.thirdparty.com.google.common.base.Preconditions.**</bannedImport >
262263 </bannedImports >
263264 </restrictImports >
264265 </rules >
You can’t perform that action at this time.
0 commit comments