File tree 2 files changed +2
-2
lines changed
java_tools/import_deps_checker/java/com/google/devtools/build/importdeps
tools/android/java/com/google/devtools/build/android 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ private static void resolveClassEntry(
163
163
combineWithoutNull (classReader .getSuperName (), classReader .getInterfaces ())) {
164
164
Optional <ResolutionFailureChain > failurePath =
165
165
resolveSuperClassEntry (superName , lazyClasspath );
166
- failurePath .map (resolutionFailureChainsBuilder ::add );
166
+ failurePath .ifPresent (resolutionFailureChainsBuilder ::add );
167
167
}
168
168
ClassInfoBuilder classInfoBuilder =
169
169
new ClassInfoBuilder ().setJarPath (classEntry .jarPath ).setDirect (classEntry .isDirectDep );
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public List<String> build() {
165
165
public AaptCommandBuilder add (String flag , Optional <Path > optionalPath ) {
166
166
Preconditions .checkNotNull (flag );
167
167
Preconditions .checkNotNull (optionalPath );
168
- optionalPath .map (p -> add (flag , p ));
168
+ optionalPath .ifPresent (p -> add (flag , p ));
169
169
return this ;
170
170
}
171
171
You can’t perform that action at this time.
0 commit comments