CloneSet950


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.994class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121115
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryActionImpl.java
22179
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaTextBufferNode.java
Clone Instance
1
Line Count
21
Source Line
115
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryActionImpl.java

        final ITypedElement[] buildEditions(ITypedElement target, IFile file) {

                // setup array of editions
                IFileState[] states = null;
                // add available editions
                try {
                        states = file.getHistory(null);
                } catch (CoreException ex) {
                        JavaPlugin.log(ex);
                  }

                int count = 1;
                if (states != null)
                        count += states.length;

                ITypedElement[] editions = new ITypedElement[count];
                editions[0] = new ResourceNode(file);
                if (states != null)
                        for (int i = 0; i < states.length; i++)
                                editions[i + 1] = new HistoryItem(target, states[i]);
                return editions;
        }


Clone Instance
2
Line Count
21
Source Line
79
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaTextBufferNode.java

        static final ITypedElement[] buildEditions(ITypedElement target, IFile file) {

                // setup array of editions
                IFileState[] states = null;
                // add available editions
                try {
                        states = file.getHistory(null);
                } catch (CoreException ex) {
                        JavaPlugin.log(ex);
                  }

                int count = 1;
                if (states != null)
                        count += states.length;

                ITypedElement[] editions = new ITypedElement[count];
                editions[0] = new ResourceNode(file);
                if (states != null)
                        for (int i = 0; i < states.length; i++)
                                editions[i + 1] = new HistoryItem(target, states[i]);
                return editions;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variablebc9ecc60]]ITypedElement[] buildEditions(ITypedElement target, IFile file) {
  // setup array of editions
  IFileState[] states = null;
  // add available editions
  try {
    states = file.getHistory(null);
  }
  catch (CoreException ex) {
    JavaPlugin.log(ex);
  }
  int count = 1;
  if (states != null)
    count += states.length;
  ITypedElement[] editions = new ITypedElement[count];
  editions[0] = new ResourceNode(file);
  if (states != null)
    for (int i = 0; i < states.length; i++)
      editions[i + 1] = new HistoryItem(target, states[i]);
  return editions;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc9ecc60]]
final 
12[[#bc9ecc60]]
static final