CloneSet329


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

// -------------------- Getting properties  --------------------
/**
 * Returns the value of a property, if it is set.  You can override
 * this method in order to plug your own storage.
 *
 * @param ns   The namespace for the property (currently not used).
 * @param name The name of the property.
 *             May be <code>null</code>, in which case
 *             the return value is also <code>null</code>.
 * @return the property value, or <code>null</code> for no match
 *         or if a <code>null</code> name is provided.
 */
public synchronized Object getProperty(String ns, String name) {
  if (name == null) {
    return null;
  }
  Object o = getPropertyHook(ns, name, false);
  if (o != null) {
    return o;
  }
  return properties.get(name);
}


First
Previous
Clone Instance
2
Line Count
9
Source Line
450
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/PropertyHelper.java

/**
 * Returns the value of a user property, if it is set.
 *
 * @param ns   The namespace for the property (currently not used).
 * @param name The name of the property.
 *             May be <code>null</code>, in which case
 *             the return value is also <code>null</code>.
 * @return the property value, or <code>null</code> for no match
 *         or if a <code>null</code> name is provided.
 */
public synchronized Object getUserProperty(String ns, String name) {
  if (name == null) {
    return null;
  }
  Object o = getPropertyHook(ns, name, true);
  if (o != null) {
    return o;
  }
  return userProperties.get(name);
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the value of a user property, if it is set.
     *
     * @param ns   The namespace for the property (currently not used).
     * @param name The name of the property.
     *             May be <code>null</code>, in which case
     *             the return value is also <code>null</code>.
     * @return the property value, or <code>null</code> for no match
     *         or if a <code>null</code> name is provided.
     */
// -------------------- Getting properties  --------------------
/**
     * Returns the value of a property, if it is set.  You can override
     * this method in order to plug your own storage.
     *
     * @param ns   The namespace for the property (currently not used).
     * @param name The name of the property.
     *             May be <code>null</code>, in which case
     *             the return value is also <code>null</code>.
     * @return the property value, or <code>null</code> for no match
     *         or if a <code>null</code> name is provided.
     */
public synchronized Object  [[#variable100c6aa0]](String ns, String name) {
  if (name == null) {
    return null;
  }
  Object o = getPropertyHook(ns, name,  [[#variable100c6a40]]);
  if (o != null) {
    return o;
  }
  return [[#variable100c6a00]].get(name);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#100c6aa0]]
getProperty 
12[[#100c6aa0]]
getUserProperty 
21[[#100c6a40]]
false 
22[[#100c6a40]]
true 
31[[#100c6a00]]
properties 
32[[#100c6a00]]
userProperties