MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing")); mee.setUsageError(true); throw mee;
if (!(new File(currentDirectory).isDirectory())) { MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)"); mee.setUsageError(true); throw mee; }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/RubyInstanceConfig.java File path: /jruby-1.4.0/src/org/jruby/RubyInstanceConfig.java
Method name: void processArgument() Method name: void processArgument()
Number of AST nodes: 3 Number of AST nodes: 4
1
if (!(new File(currentDirectory).isDirectory())) {
1
MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing"));
2
                            MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)");
2
                            mee.setUsageError(true);
3
                            mee.setUsageError(true);
3
                            throw mee;
4
                            throw mee;
5
                        }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    113
    MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing"));
    113
    MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing"));
    34
    MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)");
    Differences
    Expression1Expression2Difference
    getArgumentError(" -W must be followed by either 0, 1, 2 or nothing")"jruby: Can't chdir to " + saved + " (fatal)"TYPE_COMPATIBLE_REPLACEMENT
    34
    MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)");
    114
    mee.setUsageError(true);
    35
    mee.setUsageError(true);
    115
    throw mee;
    36
    throw mee;
    Precondition Violations (0)
    Row Violation