CloneSet105


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34201.000statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
132836
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java
2341000
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java
Next
Last
Clone Instance
1
Line Count
32
Source Line
836
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java

log("Matching catalog entry found for uri: \'" + matchingEntry.getPublicId() + "\' location: \'" + matchingEntry.getLocation() + "\'", Project.MSG_DEBUG);
//
// Use the passed in base in preference to the base
// from matchingEntry, which is either null or the
// directory in which the external catalog file from
// which it was obtained is located.  We make a copy
// so matchingEntry's original base is untouched.
//
// This is the standard behavior as per my reading of
// the JAXP and XML Catalog specs.  CKS 11/7/2002
//
ResourceLocation entryCopy = matchingEntry;
if (base != null) {
  try {
    URL baseURL = new URL(base);
    entryCopy = new ResourceLocation();
    entryCopy.setBase(baseURL);
  }
  catch (MalformedURLException
         ex) {
  // ignore
  }
}
entryCopy.setPublicId(matchingEntry.getPublicId());
entryCopy.setLocation(matchingEntry.getLocation());
source = filesystemLookup(entryCopy);
if (source == null) {
  source = classpathLookup(entryCopy);
}


First
Previous
Clone Instance
2
Line Count
34
Source Line
1000
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/XMLCatalog.java

log("Matching catalog entry found for uri: \'" + matchingEntry.getPublicId() + "\' location: \'" + matchingEntry.getLocation() + "\'", Project.MSG_DEBUG);
//
// Use the passed in base in preference to the base
// from matchingEntry, which is either null or the
// directory in which the external catalog file from
// which it was obtained is located.  We make a copy
// so matchingEntry's original base is untouched.  Of
// course, if there is no base, no need to make a
// copy...
//
// This is the standard behavior as per my reading of
// the JAXP and XML Catalog specs.  CKS 11/7/2002
//
ResourceLocation entryCopy = matchingEntry;
if (base != null) {
  try {
    URL baseURL = new URL(base);
    entryCopy = new ResourceLocation();
    entryCopy.setBase(baseURL);
  }
  catch (MalformedURLException
         ex) {
  // ignore
  }
}
entryCopy.setPublicId(matchingEntry.getPublicId());
entryCopy.setLocation(matchingEntry.getLocation());
source = filesystemLookup(entryCopy);
if (source == null) {
  source = classpathLookup(entryCopy);
}


Clone AbstractionParameter Count: 0Parameter Bindings

log("Matching catalog entry found for uri: \'" + matchingEntry.getPublicId() + "\' location: \'" + matchingEntry.getLocation() + "\'", Project.MSG_DEBUG);
//
// Use the passed in base in preference to the base
// from matchingEntry, which is either null or the
// directory in which the external catalog file from
// which it was obtained is located.  We make a copy
// so matchingEntry's original base is untouched.  Of
// course, if there is no base, no need to make a
// copy...
// so matchingEntry's original base is untouched.
//
// This is the standard behavior as per my reading of
// the JAXP and XML Catalog specs.  CKS 11/7/2002
//
ResourceLocation entryCopy = matchingEntry;
if (base != null) {
  try {
    URL baseURL = new URL(base);
    entryCopy = new ResourceLocation();
    entryCopy.setBase(baseURL);
  }
  catch (MalformedURLException
         ex) {
  // ignore
  }
}
entryCopy.setPublicId(matchingEntry.getPublicId());
entryCopy.setLocation(matchingEntry.getLocation());
source = filesystemLookup(entryCopy);
if (source == null) {
  source = classpathLookup(entryCopy);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None