void initializeTableModel() { tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES[0], COLUMN_NAMES[1], COLUMN_NAMES[2] }, LDAPArgument.class, new Functor[] { new Functor("getName"), new Functor("getValue"), new Functor("getOpcode") }, new Functor[] { new Functor("setName"), new Functor("setValue"), new Functor("setOpcode") }, new Class[] { String.class, String.class, String.class }); } public static boolean testFunctors(){ LDAPArgumentsPanel instance = new LDAPArgumentsPanel(); instance.initializeTableModel(); return instance.tableModel.checkFunctors(null,instance.getClass());
void initializeTableModel() { tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 }, Argument.class, new Functor[] { new Functor("getName"), // $NON-NLS-1$ new Functor("getValue") }, // $NON-NLS-1$ new Functor[] { new Functor("setName"), // $NON-NLS-1$ new Functor("setValue") }, // $NON-NLS-1$ new Class[] { String.class, String.class }); } public static boolean testFunctors(){ ArgumentsPanel instance = new ArgumentsPanel(); instance.initializeTableModel(); return instance.tableModel.checkFunctors(null,instance.getClass());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LDAPArgumentsPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void initializeTableModel() {
1
void initializeTableModel() {
2
		tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES[0], COLUMN_NAMES[1], COLUMN_NAMES[2] },
2
		tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 },
3
				LDAPArgument.class,
3
				Argument.class,
4
				new Functor[] { 
4
				new Functor[] {
5
new Functor("getName"), 
5
				new Functor("getName"), // $NON-NLS-1$
6
new Functor("getValue"), new Functor("getOpcode") },
6
				new Functor("getValue") },  // $NON-NLS-1$
7
				new Functor[] {
7
				new Functor[] {
8
 new Functor("setName"), 
8
			    new Functor("setName"), // $NON-NLS-1$
9
new Functor("setValue"), new Functor("setOpcode") },
9
				new Functor("setValue") }, // $NON-NLS-1$
10
				new Class[] { String.class, String.class, String.class });
10
				new Class[] { String.class, String.class });
11
	}
11
	}
12
	public static boolean testFunctors(){
12
	public static boolean testFunctors(){
13
		LDAPArgumentsPanel instance = new LDAPArgumentsPanel();
13
		ArgumentsPanel instance = new ArgumentsPanel();
14
		instance.initializeTableModel();
14
		instance.initializeTableModel();
15
		return instance.tableModel.checkFunctors(null,instance.getClass());
15
		return instance.tableModel.checkFunctors(null,instance.getClass());
16
	
16
	
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