Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 3 | 4 | 0.962 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 817 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java |
2 | 14 | 149 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibrary.java |
3 | 14 | 623 | 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(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); } |
| ||||
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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#97ae7260]] | stream |
1 | 2 | [[#97ae7260]] | reader |
1 | 3 | [[#97ae7260]] | reader |
2 | 1 | [[#b5731de0]] | PreferencesMessages |
2 | 2 | [[#b5731de0]] | Messages |
2 | 3 | [[#b5731de0]] | Messages |
3 | 1 | [[#65419560]] | UserLibraryPreferencePage_LoadSaveDialog_load_badformat |
3 | 2 | [[#65419560]] | file_badFormat |
3 | 3 | [[#65419560]] | file_badFormat |
4 | 1 | [[#a526a980]] | TAG_ROOT |
4 | 2 | [[#a526a980]] | TAG_USERLIBRARY |
4 | 3 | [[#a526a980]] | "classpath" |