| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 18 | 2 | 2 | 0.993 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 18 | 176 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSSubstitution.java |
| 2 | 18 | 196 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSSubstitution.java |
| ||||
public boolean hasPropertyFileChange() {
if (fInitialState != EXTERNALIZED && fState != EXTERNALIZED) {
return false;
}
if (fInitialState != fState) {
return true;
}
if (fState == EXTERNALIZED) {
if (fInitialValue == null) {
return true; // recreate entry in property file
}
else if ( !fInitialValue.equals(fValue)) {
return true; // change of value
}
if ( !fInitialKey.equals(fKey)) {
return true; // change of key
}
}
return false;
}
|
| ||||
public boolean hasAccessorClassChange() {
if (fInitialState != EXTERNALIZED && fState != EXTERNALIZED) {
return false;
}
if (fInitialState != fState) {
return true;
}
if (fState == EXTERNALIZED) {
if (fInitialValue == null) {
return true; // recreate entry in property file
}
else if ( !fInitialValue.equals(fValue)) {
return false; // change of value
}
if ( !fInitialKey.equals(fKey)) {
return true; // change of key
}
}
return false;
}
|
| |||
public boolean [[#variable9d950a20]]() {
if (fInitialState != EXTERNALIZED && fState != EXTERNALIZED) {
return false;
}
if (fInitialState != fState) {
return true;
}
if (fState == EXTERNALIZED) {
if (fInitialValue == null) {
return true; // recreate entry in property file
}
else
if ( !fInitialValue.equals(fValue)) {
return [[#variable9d950960]]; // change of value
}
if ( !fInitialKey.equals(fKey)) {
return true; // change of key
}
}
return false;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9d950a20]] | hasPropertyFileChange |
| 1 | 2 | [[#9d950a20]] | hasAccessorClassChange |
| 2 | 1 | [[#9d950960]] | true |
| 2 | 2 | [[#9d950960]] | false |