ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: better use getter than raw attribute access
Date Fri, 02 Jan 2015 15:09:52 GMT
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 <bodewig@apache.org>
Authored: Fri Jan 2 16:09:18 2015 +0100
Committer: Stefan Bodewig <bodewig@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());
     }
 
     /**


Mime
View raw message