CloneSet2019


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18220.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118176
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSSubstitution.java
218196
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSSubstitution.java
Clone Instance
1
Line Count
18
Source Line
176
Source File
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;
        }


Clone Instance
2
Line Count
18
Source Line
196
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSSubstitution.java

        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;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d950a20]]
hasPropertyFileChange 
12[[#9d950a20]]
hasAccessorClassChange 
21[[#9d950960]]
true 
22[[#9d950960]]
false