boolean isWhitespace() { return getPropertyAsBoolean(WHITESPACE_KEY, false); } /** * Is this validating * * @return boolean */ public boolean isValidating() { return getPropertyAsBoolean(VALIDATE_KEY, false); } /** * Is this namespace aware? * * @return boolean */ public boolean isNamespace() { return getPropertyAsBoolean(NAMESPACE_KEY, false); }
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); }
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/assertions/XPathAssertion.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
boolean isWhitespace() {
1
boolean isNamespace() {
2
		return getPropertyAsBoolean(WHITESPACE_KEY, false);
2
		return getPropertyAsBoolean(NAMESPACE_KEY, false);
3
	}
3
	}
4
	/**
4
	/**
5
	 * Is this validating
5
	 * Is this using tolerant mode?
6
	 * 
6
	 * 
7
	 * @return boolean
7
	 * @return boolean
8
	 */
8
	 */
9
	public boolean isValidating() {
9
	public boolean isTolerant() {
10
		return getPropertyAsBoolean(VALIDATE_KEY, false);
10
		return getPropertyAsBoolean(TOLERANT_KEY, false);
11
	}
11
	}
12
	/**
12
	/**
13
	 * Is this namespace aware?
13
	 * Negate the XPath test, that is return true if something is not found.
14
	 * 
14
	 * 
15
	 * @return boolean
15
	 * @return boolean negated
16
	 */
16
	 */
17
	public boolean isNamespace() {
17
	public boolean isNegated() {
18
		return getPropertyAsBoolean(NAMESPACE_KEY, false);
18
		return getPropertyAsBoolean(NEGATE_KEY, false);
19
	}
19
	}
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