CloneSet1338


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114392
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
214409
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
Clone Instance
1
Line Count
14
Source Line
392
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java

        // returns a list of fields with setter entries checked
        private static IField[] getSetterFields(Object[] result) {
                Collection list = new ArrayList(0);
                Object each = null;
                GetterSetterEntry entry = null;
                for (int i = 0; i < result.length; i++) {
                        each = result[i];
                        if ((each instanceof GetterSetterEntry)) {
                                entry = (GetterSetterEntry) each;
                                if ( !entry.fGetterEntry) {
                                        list.add(entry.fField);
                                }
                        }
                }
                return (IField[]) list.toArray(new IField[list.size()]);
        }


Clone Instance
2
Line Count
14
Source Line
409
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java

        // returns a list of fields with getter entries checked
        private static IField[] getGetterFields(Object[] result) {
                Collection list = new ArrayList(0);
                Object each = null;
                GetterSetterEntry entry = null;
                for (int i = 0; i < result.length; i++) {
                        each = result[i];
                        if ((each instanceof GetterSetterEntry)) {
                                entry = (GetterSetterEntry) each;
                                if (entry.fGetterEntry) {
                                        list.add(entry.fField);
                                }
                        }
                }
                return (IField[]) list.toArray(new IField[list.size()]);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

// returns a list of fields with setter entries checked
// returns a list of fields with getter entries checked
private static IField[]  [[#variableb945c920]](Object[] result) {
  Collection list = new ArrayList(0);
  Object each = null;
  GetterSetterEntry entry = null;
  for (int i = 0; i < result.length; i++) {
    each = result[i];
    if ((each instanceof GetterSetterEntry)) {
      entry = (GetterSetterEntry) each;
      if ( [[#variableb945c8a0]]) {
        list.add(entry.fField);
      }
    }
  }
  return (IField[]) list.toArray(new IField[list.size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b945c920]]
getSetterFields 
12[[#b945c920]]
getGetterFields 
21[[#b945c8a0]]
!entry.fGetterEntry 
22[[#b945c8a0]]
entry.fGetterEntry