CloneSet3567


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.973class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1633
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/LayoutUtil.java
2624
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/LayoutUtil.java
Clone Instance
1
Line Count
6
Source Line
33
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/LayoutUtil.java

        /*
         * Calculates the number of columns needed by field editors
         */
        public static int getNumberOfColumns(MethodStubsSelectionButtonGroup[] editors) {
                int columnCount = 0;
                for (int i = 0; i < editors.length; i++) {
                        columnCount = Math.max(editors[i].getNumberOfControls(), columnCount);
                }
                return columnCount;
        }


Clone Instance
2
Line Count
6
Source Line
24
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/LayoutUtil.java

        /**
         * Calculates the number of columns needed by field editors
         */
        public static int getNumberOfColumns(DialogField[] editors) {
                int nCulumns = 0;
                for (int i = 0; i < editors.length; i++) {
                        nCulumns = Math.max(editors[i].getNumberOfControls(), nCulumns);
                }
                return nCulumns;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Calculates the number of columns needed by field editors
         */
/*
         * Calculates the number of columns needed by field editors
         */
public static int getNumberOfColumns( [[#variable4d8ddf20]][] editors) {
  int  [[#variable4d8ddec0]]= 0;
  for (int i = 0; i < editors.length; i++) {
     [[#variable4d8ddec0]]= Math.max(editors[i].getNumberOfControls(),  [[#variable4d8ddec0]]);
  }
  return [[#variable4d8ddec0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4d8ddf20]]
DialogField 
12[[#4d8ddf20]]
MethodStubsSelectionButtonGroup 
21[[#4d8ddec0]]
nCulumns 
22[[#4d8ddec0]]
columnCount