diff options
author | Timo Westkämper <[email protected]> | 2014-04-16 22:43:11 +0300 |
---|---|---|
committer | Timo Westkämper <[email protected]> | 2014-04-16 22:43:11 +0300 |
commit | 332272a97dc71f8b69ccf58cd17a0811a21de222 (patch) | |
tree | 885c8d000b22c46e4d618e43a60663fe7c63d9a2 | |
parent | 76ea6e213607bf82f8b8215300f709e664e35546 (diff) |
Discard changes to private members
-rw-r--r-- | api/src/main/java/org/osjava/jardiff/JarDiff.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/src/main/java/org/osjava/jardiff/JarDiff.java b/api/src/main/java/org/osjava/jardiff/JarDiff.java index cff4278..c55adc8 100644 --- a/api/src/main/java/org/osjava/jardiff/JarDiff.java +++ b/api/src/main/java/org/osjava/jardiff/JarDiff.java @@ -435,6 +435,8 @@ public class JarDiff MethodInfo newInfo = (MethodInfo) newMethods.get(desc); if (!criteria.differs(oldInfo, newInfo)) j.remove(); + else if (oldInfo.isPrivate() && newInfo.isPrivate()) + j.remove(); } j = changedFields.iterator(); while (j.hasNext()) { @@ -443,6 +445,8 @@ public class JarDiff FieldInfo newInfo = (FieldInfo) newFields.get(desc); if (!criteria.differs(oldInfo, newInfo)) j.remove(); + else if (oldInfo.isPrivate() && newInfo.isPrivate()) + j.remove();; } boolean classchanged = criteria.differs(oci, nci); if (classchanged || !removedMethods.isEmpty() |