Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Goubet2013-05-28 11:50:15 +0000
committerGerrit Code Review @ Eclipse.org2013-05-28 11:50:15 +0000
commitd96827d66df2a7bf73e2fa74aa3d16cf5d2560d1 (patch)
treef0956467a9a8c81d3931dcceaa9fa2ed299c583e
parentc7a8b4311005713ce9ef10c779423214665fc2d6 (diff)
parenta0ee2b425ef1ec5793d63c8c1cee2fcf02773a76 (diff)
downloadorg.eclipse.emf.compare-d96827d66df2a7bf73e2fa74aa3d16cf5d2560d1.tar.gz
org.eclipse.emf.compare-d96827d66df2a7bf73e2fa74aa3d16cf5d2560d1.tar.xz
org.eclipse.emf.compare-d96827d66df2a7bf73e2fa74aa3d16cf5d2560d1.zip
Merge "Avoid a few getMatch() calls" into 2.1
-rw-r--r--plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java
index 3ba89e85e..2d3a18904 100644
--- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java
+++ b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java
@@ -502,9 +502,9 @@ public class EditionDistance implements DistanceFunction {
* we consider two null containers as being the "same".
*/
boolean matching = aContainer == null && bContainer == null;
- Match mA = inProgress.getMatch(aContainer);
- Match mB = inProgress.getMatch(bContainer);
if (!matching) {
+ Match mA = inProgress.getMatch(aContainer);
+ Match mB = inProgress.getMatch(bContainer);
if (mA == null && mB == null) {
/*
* The Objects have to be out of scope then.

Back to the top