Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java')
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java
index de2c54f44..d35bc457c 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/DocumentRangeNode.java
@@ -213,6 +213,8 @@ public class DocumentRangeNode
/**
* Implementation based on <code>getID</code>.
+ * @param other the object to compare this <code>DocumentRangeNode</code> against.
+ * @return <code>true</code> if the <code>DocumentRangeNodes</code>are equal; <code>false</code> otherwise.
*/
public boolean equals(Object other) {
if (other != null && other.getClass() == getClass()) {
@@ -224,12 +226,13 @@ public class DocumentRangeNode
/**
* Implementation based on <code>getID</code>.
+ * @return a hashcode for this object.
*/
public int hashCode() {
return fID.hashCode();
}
- /**
+ /*
* Find corresponding position
*/
private Position findCorrespondingPosition(DocumentRangeNode otherParent, DocumentRangeNode child) {
@@ -342,6 +345,7 @@ public class DocumentRangeNode
* see IEditableContent.setContent
*/
public void setContent(byte[] content) {
+ // empty default implementation
}
/* (non-Javadoc)

Back to the top