BasicAttribute getBasicAttribute(String name, String value) { BasicAttribute attr = new BasicAttribute(name, value); return attr; } /** * Returns a formatted string label describing this sampler * * @return a formatted string label describing this sampler */ public String getLabel() { return ("ldap://" + this.getServername() + ":" + getPort() + "/" + this.getRootdn()); }
BasicAttribute getBasicAttribute(String name, String value) { BasicAttribute attr = new BasicAttribute(name, value); return attr; } /** * Returns a formatted string label describing this sampler Example output: * * @return a formatted string label describing this sampler */ public String getLabel() { return ("ldap://" + this.getServername() //$NON-NLS-1$ + ":" + getPort() //$NON-NLS-1$ + "/" + this.getRootdn()); //$NON-NLS-1$ }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
BasicAttribute getBasicAttribute(String name, String value) {
1
BasicAttribute getBasicAttribute(String name, String value) {
2
		BasicAttribute attr = new BasicAttribute(name, value);
2
		BasicAttribute attr = new BasicAttribute(name, value);
3
		return attr;
3
		return attr;
4
	}
4
	}
5
	/**
5
	/**
6
	 * Returns a formatted string label describing this sampler
6
	 * Returns a formatted string label describing this sampler Example output:
7
	 * 
7
	 * 
8
	 * @return a formatted string label describing this sampler
8
	 * @return a formatted string label describing this sampler
9
	 */
9
	 */
10
	public String getLabel() {
10
	public String getLabel() {
11
		return ("ldap://" + this.getServername() + ":" + getPort() 
11
		return ("ldap://" + this.getServername()  //$NON-NLS-1$
12
				+ ":" + getPort()                 //$NON-NLS-1$
12
+ "/" + this.getRootdn());
13
				+ "/" + this.getRootdn());        //$NON-NLS-1$
13
	}
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