aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/src/main/java/org/osjava/jardiff/JarDiff.java4
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()