Automated conversion to Java 8
With a few manual fixes for readability.
RELNOTES: None.
PiperOrigin-RevId: 160582556
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/ZipFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/ZipFileSystem.java
index 353a684..5419f7a 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/ZipFileSystem.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/ZipFileSystem.java
@@ -13,7 +13,6 @@
// limitations under the License.
package com.google.devtools.build.lib.vfs;
-import com.google.common.base.Predicate;
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadSafe;
import com.google.devtools.build.lib.util.Preconditions;
import com.google.devtools.build.lib.vfs.Path.PathFactory;
@@ -205,15 +204,14 @@
Preconditions.checkState(open);
zipEntryNonNull(path);
final Collection<Path> result = new ArrayList<>();
- ((ZipPath) path).applyToChildren(new Predicate<Path>() {
- @Override
- public boolean apply(Path child) {
- if (zipEntry(child) != null) {
- result.add(child);
- }
- return true;
- }
- });
+ ((ZipPath) path)
+ .applyToChildren(
+ child -> {
+ if (zipEntry(child) != null) {
+ result.add(child);
+ }
+ return true;
+ });
return result;
}