protected boolean isActionValid() { boolean valid = false; String action = getTask().getAction(); for (int i = 0; i < VALID_ACTIONS.length; i++) { if (action.equals(VALID_ACTIONS[i])) { valid = true; break; } } return valid;
protected boolean isActionValid() { boolean valid = false; String action = getTask().getAction(); for (int i = 0; i < VALID_ACTIONS.length; i++) { if (action.equals(VALID_ACTIONS[i])) { valid = true; break; } } return valid;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/j2ee/JonasHotDeploymentTool.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected boolean isActionValid() {
1
protected boolean isActionValid() {
2
        boolean valid = false;
2
        boolean valid = false;
3
        String action = getTask().getAction();
3
        String action = getTask().getAction();
4
        for (int i = 0; i < VALID_ACTIONS.length; i++) {
4
        for (int i = 0; i < VALID_ACTIONS.length; i++) {
5
            if (action.equals(VALID_ACTIONS[i])) {
5
            if (action.equals(VALID_ACTIONS[i])) {
6
                valid = true;
6
                valid = true;
7
                break;
7
                break;
8
            }
8
            }
9
        }
9
        }
10
        return valid;
10
        return valid;
11
    
11
    
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