CloneSet372


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18230.971method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118357
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java
218566
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java
Next
Last
Clone Instance
1
Line Count
18
Source Line
357
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java

/**
 * Creates an output stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it.
 * @return an open output stream.
 * @exception IOException if there is a problem obtaining an open output stream.
 */
protected OutputStream createEFSOutputStream(URI uri) throws IOException {
  if (EFS_GET_STORE_METHOD != null) {
    try {
      Object store = EFS_GET_STORE_METHOD.invoke(null, new java.net.URI(uri.toString()));
      if (store != null) {
        return (OutputStream) FILE_STORE_OPEN_OUTPUT_STREAM_METHOD.invoke(store, 0, null);
      }
    }
    catch (Exception
           exception) {
      throw new Resource.IOWrappedException(exception);
    }
  }
  throw new IOException("EFS unavailable");
}


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

/**
 * Creates an input stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it.
 * @return an open input stream.
 * @exception IOException if there is a problem obtaining an open input stream.
 */
protected InputStream createEFSInputStream(URI uri) throws IOException {
  if (EFS_GET_STORE_METHOD != null) {
    try {
      Object store = EFS_GET_STORE_METHOD.invoke(null, new java.net.URI(uri.toString()));
      if (store != null) {
        return (InputStream) FILE_STORE_OPEN_INPUT_STREAM_METHOD.invoke(store, 0, null);
      }
    }
    catch (Exception
           exception) {
      throw new Resource.IOWrappedException(exception);
    }
  }
  throw new IOException("EFS unavailable");
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
   * Creates an input stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it.
   * @return an open input stream.
   * @exception IOException if there is a problem obtaining an open input stream.
   */
/**
   * Creates an output stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it.
   * @return an open output stream.
   * @exception IOException if there is a problem obtaining an open output stream.
   */
protected [[#variable1727e2a0]]  [[#variable1727e200]](URI uri) throws IOException {
  if (EFS_GET_STORE_METHOD != null) {
    try {
      Object store = EFS_GET_STORE_METHOD.invoke(null, new java.net.URI(uri.toString()));
      if (store != null) {
        return ( [[#variable1727e2a0]])  [[#variable1727e180]].invoke(store, 0, null);
      }
    }
    catch (Exception
           exception) {
      throw new Resource.IOWrappedException(exception);
    }
  }
  throw new IOException("EFS unavailable");
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1727e2a0]]
OutputStream 
12[[#1727e2a0]]
InputStream 
21[[#1727e200]]
createEFSOutputStream 
22[[#1727e200]]
createEFSInputStream 
31[[#1727e180]]
FILE_STORE_OPEN_OUTPUT_STREAM_METHOD 
32[[#1727e180]]
FILE_STORE_OPEN_INPUT_STREAM_METHOD