Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 36 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java |
2 | 9 | 50 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getStartPosition() */ public int getStartPosition() { if (this.group.isEmpty()) { return this.node.getStartPosition(); } IRegion coverage = TextEdit.getCoverage(this.group.getTextEdits()); if (coverage == null) { return this.node.getStartPosition(); } return coverage.getOffset(); } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getLength() */ public int getLength() { if (this.group.isEmpty()) { return this.node.getLength(); } IRegion coverage = TextEdit.getCoverage(this.group.getTextEdits()); if (coverage == null) { return this.node.getLength(); } return coverage.getLength(); } |
| |||
/* (non-Javadoc) * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getStartPosition() */ /* (non-Javadoc) * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getLength() */ public int [[#variableba447aa0]]() { if (this.group.isEmpty()) { return this.node. [[#variableba447aa0]](); } IRegion coverage = TextEdit.getCoverage(this.group.getTextEdits()); if (coverage == null) { return this.node. [[#variableba447aa0]](); } return coverage. [[#variableba447a40]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba447aa0]] | getStartPosition |
1 | 2 | [[#ba447aa0]] | getLength |
2 | 1 | [[#ba447a40]] | getOffset |
2 | 2 | [[#ba447a40]] | getLength |