CloneSet256


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8410.980method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181307
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java
281323
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java
381339
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java
481355
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java
Next
Last
Clone Instance
1
Line Count
8
Source Line
1307
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java

/**
 * Close a Writer without throwing any exception if something went wrong.
 * Do not attempt to close it if the argument is null.
 * @param device output writer, can be null.
 */
public static void close(Writer device) {
  if (device != null) {
    try {
      device.close();
    }
    catch (IOException
           ioex) {
    //ignore
    }
  }
}


Next
Previous
Clone Instance
2
Line Count
8
Source Line
1323
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java

/**
 * Close a stream without throwing any exception if something went wrong.
 * Do not attempt to close it if the argument is null.
 *
 * @param device Reader, can be null.
 */
public static void close(Reader device) {
  if (device != null) {
    try {
      device.close();
    }
    catch (IOException
           ioex) {
    //ignore
    }
  }
}


Next
Previous
Clone Instance
3
Line Count
8
Source Line
1339
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java

/**
 * Close a stream without throwing any exception if something went wrong.
 * Do not attempt to close it if the argument is null.
 *
 * @param device stream, can be null.
 */
public static void close(OutputStream device) {
  if (device != null) {
    try {
      device.close();
    }
    catch (IOException
           ioex) {
    //ignore
    }
  }
}


First
Previous
Clone Instance
4
Line Count
8
Source Line
1355
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/FileUtils.java

/**
 * Close a stream without throwing any exception if something went wrong.
 * Do not attempt to close it if the argument is null.
 *
 * @param device stream, can be null.
 */
public static void close(InputStream device) {
  if (device != null) {
    try {
      device.close();
    }
    catch (IOException
           ioex) {
    //ignore
    }
  }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Close a stream without throwing any exception if something went wrong.
     * Do not attempt to close it if the argument is null.
     *
     * @param device stream, can be null.
     */
/**
     * Close a stream without throwing any exception if something went wrong.
     * Do not attempt to close it if the argument is null.
     *
     * @param device Reader, can be null.
     */
/**
     * Close a Writer without throwing any exception if something went wrong.
     * Do not attempt to close it if the argument is null.
     * @param device output writer, can be null.
     */
public static void close( [[#variable101203c0]] device) {
  if (device != null) {
    try {
      device.close();
    }
    catch (IOException
           ioex) {
    //ignore
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#101203c0]]
Writer 
12[[#101203c0]]
Reader 
13[[#101203c0]]
OutputStream 
14[[#101203c0]]
InputStream