Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 343318334
  • Loading branch information
Googler authored and copybara-github committed Nov 19, 2020
1 parent 7d714aa commit b17e9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private static void resolveClassEntry(
combineWithoutNull(classReader.getSuperName(), classReader.getInterfaces())) {
Optional<ResolutionFailureChain> failurePath =
resolveSuperClassEntry(superName, lazyClasspath);
failurePath.map(resolutionFailureChainsBuilder::add);
failurePath.ifPresent(resolutionFailureChainsBuilder::add);
}
ClassInfoBuilder classInfoBuilder =
new ClassInfoBuilder().setJarPath(classEntry.jarPath).setDirect(classEntry.isDirectDep);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public List<String> build() {
public AaptCommandBuilder add(String flag, Optional<Path> optionalPath) {
Preconditions.checkNotNull(flag);
Preconditions.checkNotNull(optionalPath);
optionalPath.map(p -> add(flag, p));
optionalPath.ifPresent(p -> add(flag, p));
return this;
}

Expand Down

0 comments on commit b17e9e4

Please sign in to comment.