ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1303281 - /ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/resources/TarFileSet.java
Date Wed, 21 Mar 2012 04:59:26 GMT
Author: bodewig
Date: Wed Mar 21 04:59:26 2012
New Revision: 1303281

URL: http://svn.apache.org/viewvc?rev=1303281&view=rev
Log:
copy-paste error

Modified:
    ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/resources/TarFileSet.java

Modified: ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/resources/TarFileSet.java
URL: http://svn.apache.org/viewvc/ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/resources/TarFileSet.java?rev=1303281&r1=1303280&r2=1303281&view=diff
==============================================================================
--- ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/resources/TarFileSet.java
(original)
+++ ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/resources/TarFileSet.java
Wed Mar 21 04:59:26 2012
@@ -77,7 +77,7 @@ public class TarFileSet extends ArchiveF
     }
 
     /**
-     * Set the encoding used for this ZipFileSet.
+     * Set the encoding used for this TarFileSet.
      * @param enc encoding as String.
      * @since Compress Antlib 1.2
      */
@@ -87,15 +87,15 @@ public class TarFileSet extends ArchiveF
     }
 
     /**
-     * Get the encoding used for this ZipFileSet.
+     * Get the encoding used for this TarFileSet.
      * @return String encoding.
      * @since Compress Antlib 1.2
      */
     public String getEncoding() {
         if (isReference()) {
             AbstractFileSet ref = getRef(getProject());
-            if (ref instanceof ZipFileSet) {
-                return ((ZipFileSet) ref).getEncoding();
+            if (ref instanceof TarFileSet) {
+                return ((TarFileSet) ref).getEncoding();
             } else {
                 return null;
             }



Mime
View raw message