CloneSet1104


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119795
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java
219730
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PropertiesFileEditorPreferencePage.java
Clone Instance
1
Line Count
19
Source Line
795
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java

        private String loadPreviewContentFromFile(String filename) {
                String line;
                String separator = System.getProperty("line.separator"); //$NON-NLS-1$
                StringBuffer buffer = new StringBuffer(512);
                BufferedReader reader = null;
                try {
                        reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(filename)));
                        while ((line = reader.readLine()) != null) {
                                buffer.append(line);
                                buffer.append(separator);
                        }
                } catch (IOException io) {
                        JavaPlugin.log(io);
                  }
                  finally {
                        if (reader != null) {
                                try {
                                      reader.close();
                                }                       catch (IOException e) {
                                                        }
                        }
                  }
                return buffer.toString();
        }


Clone Instance
2
Line Count
19
Source Line
730
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PropertiesFileEditorPreferencePage.java

        private String loadPreviewContentFromFile(String filename) {
                String line;
                String separator = System.getProperty("line.separator"); //$NON-NLS-1$
                StringBuffer buffer = new StringBuffer(512);
                BufferedReader reader = null;
                try {
                        reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(filename)));
                        while ((line = reader.readLine()) != null) {
                                buffer.append(line);
                                buffer.append(separator);
                        }
                } catch (IOException io) {
                        JavaPlugin.log(io);
                  }
                  finally {
                        if (reader != null) {
                                try {
                                      reader.close();
                                }                       catch (IOException e) {
                                                        }
                        }
                  }
                return buffer.toString();
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private String loadPreviewContentFromFile(String filename) {
  String line;
  String separator = System.getProperty("line.separator"); //$NON-NLS-1$
  StringBuffer buffer = new StringBuffer(512);
  BufferedReader reader = null;
  try {
    reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(filename)));
    while ((line = reader.readLine()) != null) {
      buffer.append(line);
      buffer.append(separator);
    }
  }
  catch (IOException io) {
    JavaPlugin.log(io);
  }
  finally {
    if (reader != null) {
      try {
        reader.close();
      }
      catch (IOException e) {
      }
    }
  }
  return buffer.toString();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None