diff options
author | Andre Weinand | 2004-11-08 09:21:37 +0000 |
---|---|---|
committer | Andre Weinand | 2004-11-08 09:21:37 +0000 |
commit | 0183afede75a7a0c6d556b9ba4a438819923cc74 (patch) | |
tree | 5cd5e8f3d85a33eddb99eb5cf18e2c1ba57382b9 | |
parent | 69fb14ec1b90a84205fec49ea06425525e8745ab (diff) | |
download | eclipse.platform.team-0183afede75a7a0c6d556b9ba4a438819923cc74.tar.gz eclipse.platform.team-0183afede75a7a0c6d556b9ba4a438819923cc74.tar.xz eclipse.platform.team-0183afede75a7a0c6d556b9ba4a438819923cc74.zip |
javadoc fixes
2 files changed, 28 insertions, 18 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java index 20dc15a3b..d1671df31 100644 --- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java +++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java @@ -105,19 +105,20 @@ public class DocLineComparator implements ITokenComparator { * Returns <code>true</code> if a line given by the first index * matches a line specified by the other <code>IRangeComparator</code> and index. * - * @param thisIndex the number of the line within this range comparator - * @param other the range comparator to compare this with + * @param thisIndex the number of the line within this range comparator + * @param otherComparator the range comparator to compare this with * @param otherIndex the number of the line within the other comparator * @return <code>true</code> if the lines are equal */ - public boolean rangesEqual(int thisIndex, IRangeComparator other0, int otherIndex) { + public boolean rangesEqual(int thisIndex, IRangeComparator otherComparator, int otherIndex) { - if (other0 != null && other0.getClass() == getClass()) { - DocLineComparator other= (DocLineComparator) other0; + if (otherComparator != null && otherComparator.getClass() == getClass()) { + DocLineComparator other= (DocLineComparator) otherComparator; if (fIgnoreWhiteSpace) { String s1= extract(thisIndex); String s2= other.extract(otherIndex); + //return s1.trim().equals(s2.trim()); return compare(s1, s2); } @@ -134,10 +135,15 @@ public class DocLineComparator implements ITokenComparator { /** * Aborts the comparison if the number of tokens is too large. - * - * @return <code>true</code> to abort a token comparison + * + * @param length a number on which to base the decision whether to return + * <code>true</code> or <code>false</code> + * @param maxLength another number on which to base the decision whether to return + * <code>true</code> or <code>false</code> + * @param other the other <code>IRangeComparator</code> to compare with + * @return <code>true</code> to avoid a too lengthy range comparison */ - public boolean skipRangeComparison(int length, int max, IRangeComparator other) { + public boolean skipRangeComparison(int length, int maxLength, IRangeComparator other) { return false; } @@ -192,6 +198,5 @@ public class DocLineComparator implements ITokenComparator { } return true; } - } diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java index 20dc15a3b..d1671df31 100644 --- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java +++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/DocLineComparator.java @@ -105,19 +105,20 @@ public class DocLineComparator implements ITokenComparator { * Returns <code>true</code> if a line given by the first index * matches a line specified by the other <code>IRangeComparator</code> and index. * - * @param thisIndex the number of the line within this range comparator - * @param other the range comparator to compare this with + * @param thisIndex the number of the line within this range comparator + * @param otherComparator the range comparator to compare this with * @param otherIndex the number of the line within the other comparator * @return <code>true</code> if the lines are equal */ - public boolean rangesEqual(int thisIndex, IRangeComparator other0, int otherIndex) { + public boolean rangesEqual(int thisIndex, IRangeComparator otherComparator, int otherIndex) { - if (other0 != null && other0.getClass() == getClass()) { - DocLineComparator other= (DocLineComparator) other0; + if (otherComparator != null && otherComparator.getClass() == getClass()) { + DocLineComparator other= (DocLineComparator) otherComparator; if (fIgnoreWhiteSpace) { String s1= extract(thisIndex); String s2= other.extract(otherIndex); + //return s1.trim().equals(s2.trim()); return compare(s1, s2); } @@ -134,10 +135,15 @@ public class DocLineComparator implements ITokenComparator { /** * Aborts the comparison if the number of tokens is too large. - * - * @return <code>true</code> to abort a token comparison + * + * @param length a number on which to base the decision whether to return + * <code>true</code> or <code>false</code> + * @param maxLength another number on which to base the decision whether to return + * <code>true</code> or <code>false</code> + * @param other the other <code>IRangeComparator</code> to compare with + * @return <code>true</code> to avoid a too lengthy range comparison */ - public boolean skipRangeComparison(int length, int max, IRangeComparator other) { + public boolean skipRangeComparison(int length, int maxLength, IRangeComparator other) { return false; } @@ -192,6 +198,5 @@ public class DocLineComparator implements ITokenComparator { } return true; } - } |