You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2015/01/02 16:09:52 UTC

ant git commit: better use getter than raw attribute access

Repository: ant
Updated Branches:
  refs/heads/master fa15b7c21 -> 3cdcaf96f


better use getter than raw attribute access


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/3cdcaf96
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/3cdcaf96
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/3cdcaf96

Branch: refs/heads/master
Commit: 3cdcaf96fe8badba5e61da17fa73c03026605d5d
Parents: fa15b7c
Author: Stefan Bodewig <bo...@apache.org>
Authored: Fri Jan 2 16:09:18 2015 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Fri Jan 2 16:09:18 2015 +0100

----------------------------------------------------------------------
 src/main/org/apache/tools/zip/ZipEntry.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/3cdcaf96/src/main/org/apache/tools/zip/ZipEntry.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/zip/ZipEntry.java b/src/main/org/apache/tools/zip/ZipEntry.java
index 8031481..9703aca 100644
--- a/src/main/org/apache/tools/zip/ZipEntry.java
+++ b/src/main/org/apache/tools/zip/ZipEntry.java
@@ -136,9 +136,10 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
         setInternalAttributes(entry.getInternalAttributes());
         setExternalAttributes(entry.getExternalAttributes());
         setExtraFields(entry.getExtraFields(true));
-        setPlatform(entry.platform);
-        setGeneralPurposeBit(entry.gpb == null ? null :
-                             (GeneralPurposeBit) entry.gpb.clone());
+        setPlatform(entry.getPlatform());
+        GeneralPurposeBit other = entry.getGeneralPurposeBit();
+        setGeneralPurposeBit(other == null ? null :
+                             (GeneralPurposeBit) other.clone());
     }
 
     /**