Skip to content

Commit b17e9e4

Browse files
Googlercopybara-github
Googler
authored andcommitted
Automatic code cleanup.
PiperOrigin-RevId: 343318334
1 parent 7d714aa commit b17e9e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/ClassCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private static void resolveClassEntry(
163163
combineWithoutNull(classReader.getSuperName(), classReader.getInterfaces())) {
164164
Optional<ResolutionFailureChain> failurePath =
165165
resolveSuperClassEntry(superName, lazyClasspath);
166-
failurePath.map(resolutionFailureChainsBuilder::add);
166+
failurePath.ifPresent(resolutionFailureChainsBuilder::add);
167167
}
168168
ClassInfoBuilder classInfoBuilder =
169169
new ClassInfoBuilder().setJarPath(classEntry.jarPath).setDirect(classEntry.isDirectDep);

src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public List<String> build() {
165165
public AaptCommandBuilder add(String flag, Optional<Path> optionalPath) {
166166
Preconditions.checkNotNull(flag);
167167
Preconditions.checkNotNull(optionalPath);
168-
optionalPath.map(p -> add(flag, p));
168+
optionalPath.ifPresent(p -> add(flag, p));
169169
return this;
170170
}
171171

0 commit comments

Comments
 (0)