Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbrun2013-12-19 20:51:53 +0000
committerGerrit Code Review @ Eclipse.org2014-01-28 08:41:35 +0000
commit7ad6cd0464cdcd85a2d15cdeb606d898897f0180 (patch)
tree80d7302543511096cd86b01fd79e3c8782f90c06
parentba17a5d013c209e4905d57b9b84298e6febbcc1d (diff)
downloadorg.eclipse.emf.compare-7ad6cd0464cdcd85a2d15cdeb606d898897f0180.tar.gz
org.eclipse.emf.compare-7ad6cd0464cdcd85a2d15cdeb606d898897f0180.tar.xz
org.eclipse.emf.compare-7ad6cd0464cdcd85a2d15cdeb606d898897f0180.zip
[421609] ProximityEObjectMatcher detects match even when Distance function sais no
Fix the javadoc so that adopters don't get misleaded. Java, doing autoboxing, will allow Integer.MAX_VALUE but we do expect Double.MAX_VALUE Change-Id: I36f19fc78798d5f312cad3e4e0f67ffdcf858dc8
-rw-r--r--plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java
index 6708ba079..1eb2268e3 100644
--- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java
+++ b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject/ProximityEObjectMatcher.java
@@ -369,7 +369,7 @@ public class ProximityEObjectMatcher implements IEObjectMatcher, ScopeQuery {
public interface DistanceFunction {
/**
* Return the distance between two EObjects. When the two objects should considered as completely
- * different the implementation is expected to return Integer.MAX_VALUE.
+ * different the implementation is expected to return Double.MAX_VALUE.
*
* @param inProgress
* the comparison being processed right now. This might be used for the distance to
@@ -378,7 +378,7 @@ public class ProximityEObjectMatcher implements IEObjectMatcher, ScopeQuery {
* first object.
* @param b
* second object.
- * @return the distance between the two EObjects or Integer.MAX_VALUE when the objects are considered
+ * @return the distance between the two EObjects or Double.MAX_VALUE when the objects are considered
* too different to be the same.
*/
double distance(Comparison inProgress, EObject a, EObject b);

Back to the top