Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.966 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 428 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/PropertyHelper.java |
2 | 9 | 450 | 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); } |
| |||||
/** * 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); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#100c6aa0]] | getProperty |
1 | 2 | [[#100c6aa0]] | getUserProperty |
2 | 1 | [[#100c6a40]] | false |
2 | 2 | [[#100c6a40]] | true |
3 | 1 | [[#100c6a00]] | properties |
3 | 2 | [[#100c6a00]] | userProperties |