void setWhitespace(boolean whitespace) { setProperty(new BooleanProperty(WHITESPACE_KEY, whitespace)); } /** * Set use validation * * @param validate */ public void setValidating(boolean validate) { setProperty(new BooleanProperty(VALIDATE_KEY, validate)); } /** * Set whether this is namespace aware * * @param namespace */ public void setNamespace(boolean namespace) { setProperty(new BooleanProperty(NAMESPACE_KEY, namespace)); } /** * Set tolerant mode if required * * @param tolerant * true/false */ public void setTolerant(boolean tolerant) { setProperty(new BooleanProperty(TOLERANT_KEY, tolerant)); }
void setPathExtension(boolean pathExt) { setProperty(new BooleanProperty(PATH_EXTENSION, pathExt)); } public void setPathExtensionNoEquals(boolean pathExtNoEquals) { setProperty(new BooleanProperty(PATH_EXTENSION_NO_EQUALS, pathExtNoEquals)); } public void setPathExtensionNoQuestionmark(boolean pathExtNoQuestionmark) { setProperty(new BooleanProperty(PATH_EXTENSION_NO_QUESTIONMARK, pathExtNoQuestionmark)); } public void setShouldCache(boolean b) { setProperty(new BooleanProperty(SHOULD_CACHE, b)); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/XPathAssertion.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/URLRewritingModifier.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setWhitespace(boolean whitespace) {
1
void setPathExtension(boolean pathExt) {
2
		setProperty(new BooleanProperty(WHITESPACE_KEY, whitespace));
2
		setProperty(new BooleanProperty(
3
	}
4
	/**
5
	 * Set use validation
6
	 * 
7
	 * @param validate
8
	 */
9
	public void setValidating(boolean validate) {
10
		setProperty(new BooleanProperty(VALIDATE_KEY, validate));
11
	}
12
	/**
13
	 * Set whether this is namespace aware
14
	 * 
15
	 * @param namespace
16
	 */
17
	public void setNamespace(boolean namespace) {
18
		setProperty(new BooleanProperty(NAMESPACE_KEY, namespace));
19
	}
20
	/**
21
	 * Set tolerant mode if required
22
	 * 
23
	 * @param tolerant
24
	 *            true/false
25
	 */
26
	
3
PATH_EXTENSION, pathExt));
4
	}
5
	public void setPathExtensionNoEquals(boolean pathExtNoEquals) {
6
		setProperty(new BooleanProperty(PATH_EXTENSION_NO_EQUALS, pathExtNoEquals));
7
	}
8
	public void setPathExtensionNoQuestionmark(boolean pathExtNoQuestionmark) {
9
		setProperty(new BooleanProperty(PATH_EXTENSION_NO_QUESTIONMARK, pathExtNoQuestionmark));
10
	}
27
public void setTolerant(boolean tolerant) {
11
    public void set
28
		
12
ShouldCache(boolean b) {
29
setProperty(new BooleanProperty(TOLERANT_KEY, tolerant));
13
        setProperty(new BooleanProperty(SHOULD_CACHE, b));
30
	}
14
    }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0