Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbrun2012-10-12 09:48:35 +0000
committercbrun2012-10-12 09:50:05 +0000
commitec8eae3e8376d5c5c2889b19a1a9167608bd1a12 (patch)
treedf016c9195b851feb4756500f903f5fb902fe92e
parent3f39aceb6caf804975a3a716c04c5135c58c70d5 (diff)
downloadorg.eclipse.emf.compare-ec8eae3e8376d5c5c2889b19a1a9167608bd1a12.tar.gz
org.eclipse.emf.compare-ec8eae3e8376d5c5c2889b19a1a9167608bd1a12.tar.xz
org.eclipse.emf.compare-ec8eae3e8376d5c5c2889b19a1a9167608bd1a12.zip
Tweaking max distance's computation.
-rw-r--r--plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java2
1 files changed, 1 insertions, 1 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 5d4b99bb5..e0e756c28 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
@@ -465,7 +465,7 @@ public class EditionDistance implements DistanceFunction {
}
}
max = max + locationChangeCoef * 5;
- return max / 2;
+ return Double.valueOf(max / 3 * 2).intValue();
}
}

Back to the top