diff options
Diffstat (limited to 'plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java')
-rw-r--r-- | plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/EditionDistance.java | 6 |
1 files changed, 3 insertions, 3 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 2d3a18904..e81ea468c 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 @@ -1,5 +1,5 @@ /*******************************************************************************
- * Copyright (c) 2012 Obeo.
+ * Copyright (c) 2012, 2013 Obeo and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -415,7 +415,7 @@ public class EditionDistance implements DistanceFunction { * we just want to pick the same positioned object if two exactly similar objects are
* candidates in the same container.
*/
- changes += 1;
+ changes += 5;
}
}
@@ -621,7 +621,7 @@ public class EditionDistance implements DistanceFunction { * @return a ratio to appli on the amount of maximum un-similarity amount depending on the number of
* features which are considered.
*/
- private double getThresholdRatio(int nbFeatures) {
+ protected double getThresholdRatio(int nbFeatures) {
if (nbFeatures >= thresholds.length) {
// CHECKSTYLE:OFF
return 0.465d;
|