aboutsummaryrefslogtreecommitdiffstats
path: root/api/src/main/java
diff options
context:
space:
mode:
authorsyev <[email protected]>2014-10-24 11:50:17 +0200
committersyev <[email protected]>2014-10-24 11:50:17 +0200
commit3acd4aad506faacd9b4ef9271df9bb0599300cae (patch)
tree85234421ab4bb18881d3f89f8ad4de62fb0ec849 /api/src/main/java
parent91a8fe7a96a32ae11f59320e424a9212f55aecb0 (diff)
Changed members detection update
Check the members against all the new members, not only the ones that match the DiffCriteria.
Diffstat (limited to 'api/src/main/java')
-rw-r--r--api/src/main/java/org/osjava/jardiff/JarDiff.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/main/java/org/osjava/jardiff/JarDiff.java b/api/src/main/java/org/osjava/jardiff/JarDiff.java
index 432993a..d391712 100644
--- a/api/src/main/java/org/osjava/jardiff/JarDiff.java
+++ b/api/src/main/java/org/osjava/jardiff/JarDiff.java
@@ -393,12 +393,12 @@ public class JarDiff
}
changedMethods.addAll(removedMethods);
- changedMethods.retainAll(addedMethods);
+ changedMethods.retainAll(newMethods.keySet());
removedMethods.removeAll(changedMethods);
removedMethods.removeAll(extNewMethods.keySet());
addedMethods.removeAll(changedMethods);
changedFields.addAll(removedFields);
- changedFields.retainAll(addedFields);
+ changedFields.retainAll(newFields.keySet());
removedFields.removeAll(changedFields);
removedFields.removeAll(extNewFields.keySet());
addedFields.removeAll(changedFields);