https://bz.apache.org/bugzilla/attachment.cgi?id=33898 Patch-by: Dave Brosius <dbrosius@apache.org>master
| @@ -1210,11 +1210,8 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener, Clo | |||||
| * | * | ||||
| * @return the entry's certificates or null is the container is | * @return the entry's certificates or null is the container is | ||||
| * not a jar or it has no certificates. | * not a jar or it has no certificates. | ||||
| * | |||||
| * @exception IOException if the manifest cannot be read. | |||||
| */ | */ | ||||
| private Certificate[] getCertificates(final File container, final String entry) | |||||
| throws IOException { | |||||
| private Certificate[] getCertificates(final File container, final String entry) { | |||||
| if (container.isDirectory()) { | if (container.isDirectory()) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| @@ -383,7 +383,7 @@ public class Concat extends Task implements ResourceCollection { | |||||
| private ConcatResource(ResourceCollection c) { | private ConcatResource(ResourceCollection c) { | ||||
| this.c = c; | this.c = c; | ||||
| } | } | ||||
| public InputStream getInputStream() throws IOException { | |||||
| public InputStream getInputStream() { | |||||
| if (binary) { | if (binary) { | ||||
| ConcatResourceInputStream result = new ConcatResourceInputStream(c); | ConcatResourceInputStream result = new ConcatResourceInputStream(c); | ||||
| result.setManagingComponent(this); | result.setManagingComponent(this); | ||||
| @@ -1036,8 +1036,7 @@ public class Jar extends Zip { | |||||
| * @since Ant 1.6.2 | * @since Ant 1.6.2 | ||||
| */ | */ | ||||
| protected final void writeIndexLikeList(List<String> dirs, List<String> files, | protected final void writeIndexLikeList(List<String> dirs, List<String> files, | ||||
| PrintWriter writer) | |||||
| throws IOException { | |||||
| PrintWriter writer) { | |||||
| // JarIndex is sorting the directories by ascending order. | // JarIndex is sorting the directories by ascending order. | ||||
| // it has no value but cosmetic since it will be read into a | // it has no value but cosmetic since it will be read into a | ||||
| // hashtable by the classloader, but we'll do so anyway. | // hashtable by the classloader, but we'll do so anyway. | ||||
| @@ -1026,8 +1026,7 @@ public class Zip extends MatchingTask { | |||||
| * Determine a Resource's Unix mode or return the given default | * Determine a Resource's Unix mode or return the given default | ||||
| * value if not available. | * value if not available. | ||||
| */ | */ | ||||
| private int getUnixMode(final Resource r, final ZipFile zf, final int defaultMode) | |||||
| throws IOException { | |||||
| private int getUnixMode(final Resource r, final ZipFile zf, final int defaultMode) { | |||||
| int unixMode = defaultMode; | int unixMode = defaultMode; | ||||
| if (zf != null) { | if (zf != null) { | ||||
| @@ -378,8 +378,6 @@ public class Symlink extends DispatchTask { | |||||
| * | * | ||||
| * @param path A string containing the path of the symlink to delete. | * @param path A string containing the path of the symlink to delete. | ||||
| * | * | ||||
| * @throws FileNotFoundException When the path results in a | |||||
| * <code>File</code> that doesn't exist. | |||||
| * @throws IOException If calls to <code>File.rename</code> | * @throws IOException If calls to <code>File.rename</code> | ||||
| * or <code>File.delete</code> fail. | * or <code>File.delete</code> fail. | ||||
| * @deprecated use | * @deprecated use | ||||
| @@ -388,7 +386,7 @@ public class Symlink extends DispatchTask { | |||||
| */ | */ | ||||
| @Deprecated | @Deprecated | ||||
| public static void deleteSymlink(String path) | public static void deleteSymlink(String path) | ||||
| throws IOException, FileNotFoundException { | |||||
| throws IOException { | |||||
| SYMLINK_UTILS.deleteSymbolicLink(new File(path), null); | SYMLINK_UTILS.deleteSymbolicLink(new File(path), null); | ||||
| } | } | ||||
| @@ -81,7 +81,7 @@ public class UUEncoder { | |||||
| /** | /** | ||||
| * Encode a string to the output. | * Encode a string to the output. | ||||
| */ | */ | ||||
| private void encodeString(String n) throws IOException { | |||||
| private void encodeString(String n) { | |||||
| PrintStream writer = new PrintStream(out); | PrintStream writer = new PrintStream(out); | ||||
| writer.print(n); | writer.print(n); | ||||
| writer.flush(); | writer.flush(); | ||||