Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.978 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 331 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/EMFPlugin.java |
2 | 6 | 277 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java |
| |||||
/** * Fetches the image associated with the given key. It ensures that the image exists. * @param key the key of the image to fetch. * @exception IOException if an image doesn't exist. * @return the description of the image associated with the key. */ public Object getImage(String key) throws IOException { URL url = new URL(getBaseURL() + "icons/" + key + extensionFor(key)); InputStream inputStream = url.openStream(); inputStream.close(); return url; } |
| |||||
/** * Does the work of fetching the image associated with the key. * It ensures that the image exists. * @param key the key of the image to fetch. * @exception IOException if an image doesn't exist. * @return the description of the image associated with the key. */ protected Object doGetImage(String key) throws IOException { URL url = new URL(getBaseURL() + "icons/" + key + extensionFor(key)); InputStream inputStream = url.openStream(); inputStream.close(); return url; } |
| |||
[[#variable1738c220]]Object [[#variable1738c120]](String key) throws IOException { URL url = new URL(getBaseURL() + "icons/" + key + extensionFor(key)); InputStream inputStream = url.openStream(); inputStream.close(); return url; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1738c220]] | /** * Fetches the image associated with the given key. It ensures that the image exists. * @param key the key of the image to fetch. * @exception IOException if an image doesn't exist. * @return the description of the image associated with the key. */ public |
1 | 2 | [[#1738c220]] | /** * Does the work of fetching the image associated with the key. * It ensures that the image exists. * @param key the key of the image to fetch. * @exception IOException if an image doesn't exist. * @return the description of the image associated with the key. */ protected |
2 | 1 | [[#1738c120]] | getImage |
2 | 2 | [[#1738c120]] | doGetImage |