CloneSet196


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.975method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115328
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/Ildasm.java
215163
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/ImportTypelib.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
328
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/Ildasm.java

/**
 * Test for disassembly being needed; use existence and granularity
 * correct date stamps
 * @return true iff a rebuild is required.
 */
private boolean isDisassemblyNeeded() {
  if ( !destFile.exists()) {
    log("Destination file does not exist: a build is required", Project.MSG_VERBOSE);
    return true;
  }
  long sourceTime = sourceFile.lastModified();
  long destTime = destFile.lastModified();
  if (sourceTime > (destTime + FILE_UTILS.getFileTimestampGranularity())) {
    log("Source file is newer than the dest file: a rebuild is required", Project.MSG_VERBOSE);
    return true;
  }
  else {
    log("The .il file is up to date", Project.MSG_VERBOSE);
    return false;
  }
}


First
Previous
Clone Instance
2
Line Count
15
Source Line
163
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/ImportTypelib.java

/**
 * Test for disassembly being needed; use existence and granularity
 * correct date stamps
 * @return true iff a rebuild is required.
 */
private boolean isExecuteNeeded() {
  if ( !destFile.exists()) {
    log("Destination file does not exist: a build is required", Project.MSG_VERBOSE);
    return true;
  }
  long sourceTime = srcFile.lastModified();
  long destTime = destFile.lastModified();
  if (sourceTime > (destTime + FILE_UTILS.getFileTimestampGranularity())) {
    log("Source file is newer than the dest file: a rebuild is required", Project.MSG_VERBOSE);
    return true;
  }
  else {
    log("The output file is up to date", Project.MSG_VERBOSE);
    return false;
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Test for disassembly being needed; use existence and granularity
     * correct date stamps
     * @return true iff a rebuild is required.
     */
private boolean  [[#variablefdb6b00]]() {
  if ( !destFile.exists()) {
    log("Destination file does not exist: a build is required", Project.MSG_VERBOSE);
    return true;
  }
  long sourceTime = [[#variablefdb6ac0]].lastModified();
  long destTime = destFile.lastModified();
  if (sourceTime > (destTime + FILE_UTILS.getFileTimestampGranularity())) {
    log("Source file is newer than the dest file: a rebuild is required", Project.MSG_VERBOSE);
    return true;
  }
  else {
    log( [[#variablefdb6aa0]], Project.MSG_VERBOSE);
    return false;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fdb6b00]]
isDisassemblyNeeded 
12[[#fdb6b00]]
isExecuteNeeded 
21[[#fdb6ac0]]
sourceFile 
22[[#fdb6ac0]]
srcFile 
31[[#fdb6aa0]]
"The .il file is up to date" 
32[[#fdb6aa0]]
"The output file is up to date"