diff options
author | syev <[email protected]> | 2014-10-24 11:50:17 +0200 |
---|---|---|
committer | syev <[email protected]> | 2014-10-24 11:50:17 +0200 |
commit | 3acd4aad506faacd9b4ef9271df9bb0599300cae (patch) | |
tree | 85234421ab4bb18881d3f89f8ad4de62fb0ec849 /api/src/main/java | |
parent | 91a8fe7a96a32ae11f59320e424a9212f55aecb0 (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.java | 4 |
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); |