int getArgumentCount() { return getArguments().size(); } /** * Get a single argument. * * @param row * the index of the argument to return. * @return the argument at the specified index, or null if no argument * exists at that index. */ public LDAPArgument getArgument(int row) { LDAPArgument argument = null; if (row < getArguments().size()) { argument = (LDAPArgument) getArguments().get(row).getObjectValue(); } return argument;
int getArgumentCount() { return getArguments().size(); } /** * Get a single argument. * * @param row * the index of the argument to return. * @return the argument at the specified index, or null if no argument * exists at that index. */ public Argument getArgument(int row) { Argument argument = null; if (row < getArguments().size()) { argument = (Argument) getArguments().get(row).getObjectValue(); } return argument;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LDAPArguments.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/Arguments.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
int getArgumentCount() {
1
int getArgumentCount() {
2
		return getArguments().size();
2
		return getArguments().size();
3
	}
3
	}
4
	/**
4
	/**
5
	 * Get a single argument.
5
	 * Get a single argument.
6
	 * 
6
	 * 
7
	 * @param row
7
	 * @param row
8
	 *            the index of the argument to return.
8
	 *            the index of the argument to return.
9
	 * @return the argument at the specified index, or null if no argument
9
	 * @return the argument at the specified index, or null if no argument
10
	 *         exists at that index.
10
	 *         exists at that index.
11
	 */
11
	 */
12
	public LDAPArgument getArgument(int row) {
12
	public Argument getArgument(int row) {
13
		LDAPArgument argument = null;
13
		Argument argument = null;
14
		if (row < getArguments().size()) {
14
		if (row < getArguments().size()) {
15
			argument = (LDAPArgument) getArguments().get(row).getObjectValue();
15
			argument = (Argument) getArguments().get(row).getObjectValue();
16
		}
16
		}
17
		return argument;
17
		return argument;
18
	
18
	
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