CloneSet451


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.966executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115364
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java
215382
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
364
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java

if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_TIME_STAMP)) {
  if (urlConnection == null) {
    urlConnection = url.openConnection();
    if (urlConnection instanceof HttpURLConnection) {
      HttpURLConnection httpURLConnection = (HttpURLConnection) urlConnection;
      httpURLConnection.setRequestMethod("HEAD");
      httpURLConnection.getResponseCode();
    }
  }
  if (urlConnection.getHeaderField("last-modified") != null) {
    result.put(URIConverter.ATTRIBUTE_TIME_STAMP, urlConnection.getLastModified());
  }
}


First
Previous
Clone Instance
2
Line Count
15
Source Line
382
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java

if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_LENGTH)) {
  if (urlConnection == null) {
    urlConnection = url.openConnection();
    if (urlConnection instanceof HttpURLConnection) {
      HttpURLConnection httpURLConnection = (HttpURLConnection) urlConnection;
      httpURLConnection.setRequestMethod("HEAD");
      httpURLConnection.getResponseCode();
    }
  }
  if (urlConnection.getHeaderField("content-length") != null) {
    result.put(URIConverter.ATTRIBUTE_LENGTH, urlConnection.getContentLength());
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

if (requestedAttributes == null || requestedAttributes.contains(URIConverter. [[#variable172c5660]])) {
  if (urlConnection == null) {
    urlConnection = url.openConnection();
    if (urlConnection instanceof HttpURLConnection) {
      HttpURLConnection httpURLConnection = (HttpURLConnection) urlConnection;
      httpURLConnection.setRequestMethod("HEAD");
      httpURLConnection.getResponseCode();
    }
  }
  if (urlConnection.getHeaderField( [[#variable172c55e0]]) != null) {
    result.put(URIConverter. [[#variable172c5660]], urlConnection. [[#variable172c5560]]());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#172c5660]]
ATTRIBUTE_TIME_STAMP 
12[[#172c5660]]
ATTRIBUTE_LENGTH 
21[[#172c55e0]]
"last-modified" 
22[[#172c55e0]]
"content-length" 
31[[#172c5560]]
getLastModified 
32[[#172c5560]]
getContentLength