CloneSet1007


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14340.962statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116817
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java
214149
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibrary.java
314623
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/UserLibraryPreferencePage.java
Clone Instance
1
Line Count
16
Source Line
817
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java

                        Element cpElement;

                        try {
                                DocumentBuilder parser =
                                        DocumentBuilderFactory.newInstance().newDocumentBuilder();
                                cpElement = parser.parse(new InputSource(reader)).getDocumentElement();
                        } catch (SAXException e) {
                                throw new IOException(Messages.file_badFormat);
                          }
                          catch (ParserConfigurationException e) {
                                throw new IOException(Messages.file_badFormat);
                          }
                          finally {
                                reader.close();
                          }
                        if ( !cpElement.getNodeName().equalsIgnoreCase("classpath")) { //$NON-NLS-1$
                                throw new IOException(Messages.file_badFormat);
                        }


Clone Instance
2
Line Count
14
Source Line
149
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibrary.java

                Element cpElement;
                try {
                        DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                        cpElement = parser.parse(new InputSource(reader)).getDocumentElement();
                } catch (SAXException e) {
                        throw new IOException(Messages.file_badFormat);
                  }
                  catch (ParserConfigurationException e) {
                        throw new IOException(Messages.file_badFormat);
                  }
                  finally {
                        reader.close();
                  }
                if ( !cpElement.getNodeName().equalsIgnoreCase(TAG_USERLIBRARY)) {
                        throw new IOException(Messages.file_badFormat);
                }


Clone Instance
3
Line Count
14
Source Line
623
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/UserLibraryPreferencePage.java

                        Element cpElement;
                        try {
                                DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                                cpElement = parser.parse(new InputSource(stream)).getDocumentElement();
                        } catch (SAXException e) {
                                throw new IOException(PreferencesMessages.UserLibraryPreferencePage_LoadSaveDialog_load_badformat);
                          }
                          catch (ParserConfigurationException e) {
                                throw new IOException(PreferencesMessages.UserLibraryPreferencePage_LoadSaveDialog_load_badformat);
                          }
                          finally {
                                stream.close();
                          }
                        if ( !cpElement.getNodeName().equalsIgnoreCase(TAG_ROOT)) {
                                throw new IOException(PreferencesMessages.UserLibraryPreferencePage_LoadSaveDialog_load_badformat);
                        }


Clone AbstractionParameter Count: 4Parameter Bindings

Element cpElement;
try {
  DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
  cpElement = parser.parse(new InputSource( [[#variable97ae7260]])).getDocumentElement();
}
catch (SAXException e) {
  throw new IOException( [[#variableb5731de0]]. [[#variable65419560]]);
}
catch (ParserConfigurationException e) {
  throw new IOException( [[#variableb5731de0]]. [[#variable65419560]]);
}
finally {
   [[#variable97ae7260]].close();
}
if ( !cpElement.getNodeName().equalsIgnoreCase( [[#variablea526a980]])) { //$NON-NLS-1$
  throw new IOException( [[#variableb5731de0]]. [[#variable65419560]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97ae7260]]
stream 
12[[#97ae7260]]
reader 
13[[#97ae7260]]
reader 
21[[#b5731de0]]
PreferencesMessages 
22[[#b5731de0]]
Messages 
23[[#b5731de0]]
Messages 
31[[#65419560]]
UserLibraryPreferencePage_LoadSaveDialog_load_badformat 
32[[#65419560]]
file_badFormat 
33[[#65419560]]
file_badFormat 
41[[#a526a980]]
TAG_ROOT 
42[[#a526a980]]
TAG_USERLIBRARY 
43[[#a526a980]]
"classpath"