Browse Source

typos and unused imports

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@749527 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
6c0ab4d9ac
3 changed files with 5 additions and 7 deletions
  1. +1
    -1
      src/main/org/apache/tools/zip/NioZipEncoding.java
  2. +0
    -1
      src/main/org/apache/tools/zip/Simple8BitZipEncoding.java
  3. +4
    -5
      src/main/org/apache/tools/zip/ZipEncoding.java

+ 1
- 1
src/main/org/apache/tools/zip/NioZipEncoding.java View File

@@ -32,7 +32,7 @@ import java.nio.charset.CodingErrorAction;
* java.nio.charset.Charset Charset} to encode names.
*
* <p>This implementation works for all cases under java-1.5 or
* later. However, in java-1.4, some charsets don't have a java-nio
* later. However, in java-1.4, some charsets don't have a java.nio
* implementation, most notably the default ZIP encoding Cp437.</p>
*
* <p>The methods of this class are reentrant.</p>


+ 0
- 1
src/main/org/apache/tools/zip/Simple8BitZipEncoding.java View File

@@ -21,7 +21,6 @@ package org.apache.tools.zip;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


+ 4
- 5
src/main/org/apache/tools/zip/ZipEncoding.java View File

@@ -21,7 +21,6 @@ package org.apache.tools.zip;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;

/**
* An interface for encoders that do a pretty encoding of ZIP
@@ -35,12 +34,12 @@ import java.nio.charset.Charset;
* <p>The main reason for defining an own encoding layer comes from
* the problems with {@link java.lang.String#getBytes(String)
* String.getBytes}, which encodes unknown characters as ASCII
* quotation marks ('?'), which is per definition an invalid filename
* character under some operating systems (Windows, e.g.) leading to
* ignored ZIP entries.</p>
* quotation marks ('?'). Quotation marks are per definition an
* invalid filename on some operating systems like Windows, which
* leads to ignored ZIP entries.</p>
*
* <p>All implementations should implement this interface in a
* reentrant way.<(p>
* reentrant way.</p>
*/
interface ZipEncoding {
/**


Loading…
Cancel
Save