boolean isNamespace() { return getPropertyAsBoolean(NAMESPACE_KEY, false); } /** * Is this using tolerant mode? * * @return boolean */ public boolean isTolerant() { return getPropertyAsBoolean(TOLERANT_KEY, false); } /** * Negate the XPath test, that is return true if something is not found. * * @return boolean negated */ public boolean isNegated() { return getPropertyAsBoolean(NEGATE_KEY, false);
boolean getSamplerRedirectAutomatically() { return getPropertyAsBoolean(SAMPLER_REDIRECT_AUTOMATICALLY, false); } public boolean getSamplerFollowRedirects() { return getPropertyAsBoolean(SAMPLER_FOLLOW_REDIRECTS, true); } public boolean getUseKeepalive() { return getPropertyAsBoolean(USE_KEEPALIVE, true);
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/proxy/ProxyControl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
boolean isNamespace() {
1
boolean getSamplerRedirectAutomatically() {
2
		return getPropertyAsBoolean(NAMESPACE_KEY, false);
2
		return getPropertyAsBoolean(SAM
3
	}
4
	/**
5
	 * Is this using tolerant mode?
6
	 * 
7
	 * @return boolean
8
	 */
9
	public boolean isTolerant
3
PLER_REDIRECT_AUTOMATICALLY, false);
4
	}
10
() {
5
	public boolean getSamplerFollowRedirects() {
11
		return getPropertyAsBoolean(TOLERANT_KEY, false);
6
		return getPropertyAsBoolean(
12
	}
13
	/**
14
	 * Negate the XPath test, that is return true if something is not found.
15
	 * 
16
	 * @return boolean negated
17
	 */
7
SAMPLER_FOLLOW_REDIRECTS, true);
8
	}
9
	
18
	public boolean isNegated() {
10
	public boolean getUseKeepalive() {
19
		return getPropertyAsBoolean(NEGATE_KEY, false);
11
		return getPropertyAsBoolean(USE_KEEPALIVE, true);
20
	
12
	
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