Automatic code cleanup.
PiperOrigin-RevId: 525661148
Change-Id: I13030567375f73c5a583144bf382885d297f6be3
diff --git a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarCreator.java b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarCreator.java
index b0bcb2b..1c12328 100644
--- a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarCreator.java
+++ b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarCreator.java
@@ -16,7 +16,6 @@
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
-import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
@@ -27,7 +26,6 @@
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
-import java.util.Collection;
import java.util.Map;
import java.util.TreeMap;
import java.util.jar.Attributes;
@@ -98,12 +96,6 @@
addDirectory(Paths.get(directory));
}
- /** @deprecated prefer {@link #addDirectory(Path)} */
- @Deprecated
- public void addDirectory(File directory) {
- addDirectory(directory.toPath());
- }
-
/**
* Adds the contents of a directory to the Jar file. All files below this directory will be added
* to the Jar file using the name relative to the directory as the name for the Jar entry.
@@ -160,21 +152,6 @@
}
/**
- * Adds a collection of entries to the jar, each with a given source path, and with the resulting
- * file in the root of the jar.
- *
- * <pre>
- * some/long/path.foo => (path.foo, some/long/path.foo)
- * </pre>
- */
- public void addRootEntries(Collection<String> entries) {
- for (String entry : entries) {
- Path path = Paths.get(entry);
- jarEntries.put(path.getFileName().toString(), path);
- }
- }
-
- /**
* Sets the main.class entry for the manifest. A value of <code>null</code> (the default) will
* omit the entry.
*
diff --git a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarHelper.java b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarHelper.java
index 8881ed8..7c2c13a 100644
--- a/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarHelper.java
+++ b/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper/JarHelper.java
@@ -39,7 +39,6 @@
public static final String MANIFEST_DIR = "META-INF/";
public static final String MANIFEST_NAME = JarFile.MANIFEST_NAME;
- public static final String SERVICES_DIR = "META-INF/services/";
/**
* Normalize timestamps to 2010-1-1.