CloneSet547


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11183
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/MappingSelector.java
211122
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/PresentSelector.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
83
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/MappingSelector.java

/**
 * Checks to make sure all settings are kosher. In this case, it
 * means that the dest attribute has been set and we have a mapper.
 */
public void verifySettings() {
  if (targetdir == null) {
    setError("The targetdir attribute is required.");
  }
  if (mapperElement == null) {
    map = new IdentityMapper();
  }
  else {
    map = mapperElement.getImplementation();
  }
  if (map == null) {
    setError("Could not set <mapper> element.");
  }
}


First
Previous
Clone Instance
2
Line Count
11
Source Line
122
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/PresentSelector.java

/**
 * Checks to make sure all settings are kosher. In this case, it
 * means that the targetdir attribute has been set and we have a mapper.
 */
public void verifySettings() {
  if (targetdir == null) {
    setError("The targetdir attribute is required.");
  }
  if (mapperElement == null) {
    map = new IdentityMapper();
  }
  else {
    map = mapperElement.getImplementation();
  }
  if (map == null) {
    setError("Could not set <mapper> element.");
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Checks to make sure all settings are kosher. In this case, it
     * means that the targetdir attribute has been set and we have a mapper.
     */
/**
     * Checks to make sure all settings are kosher. In this case, it
     * means that the dest attribute has been set and we have a mapper.
     */
public void verifySettings() {
  if (targetdir == null) {
    setError("The targetdir attribute is required.");
  }
  if (mapperElement == null) {
    map = new IdentityMapper();
  }
  else {
    map = mapperElement.getImplementation();
  }
  if (map == null) {
    setError("Could not set <mapper> element.");
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None