CloneSet644


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.978method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16331
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/EMFPlugin.java
26277
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java
Next
Last
Clone Instance
1
Line Count
6
Source Line
331
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/EMFPlugin.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;
}


First
Previous
Clone Instance
2
Line Count
6
Source Line
277
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java

/**
 * 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;
}


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#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 
12[[#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 
21[[#1738c120]]
getImage 
22[[#1738c120]]
doGetImage