|
|
@@ -23,7 +23,7 @@ package org.apache.tools.zip; |
|
|
|
* |
|
|
|
* @since Ant 1.9.0 |
|
|
|
*/ |
|
|
|
public final class GeneralPurposeBit { |
|
|
|
public final class GeneralPurposeBit implements Cloneable { |
|
|
|
/** |
|
|
|
* Indicates that the file is encrypted. |
|
|
|
*/ |
|
|
@@ -168,4 +168,14 @@ public final class GeneralPurposeBit { |
|
|
|
&& g.languageEncodingFlag == languageEncodingFlag |
|
|
|
&& g.dataDescriptorFlag == dataDescriptorFlag; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object clone() { |
|
|
|
try { |
|
|
|
return super.clone(); |
|
|
|
} catch (CloneNotSupportedException ex) { |
|
|
|
// impossible |
|
|
|
throw new RuntimeException("GeneralPurposeBit is not Cloneable?", ex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |