MainExitException mee = new MainExitException(1, "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n"); 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
MainExitException mee =
1
if (!(new File(currentDirectory).isDirectory())) {
2
                                new MainExitException(1, "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n");
2
                            MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)");
3
                        mee.setUsageError(true);
3
                            mee.setUsageError(true);
4
                        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 comparisons6
  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
    139
    MainExitException mee = new MainExitException(1, "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n");
    139
    MainExitException mee = new MainExitException(1, "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n");
    34
    MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)");
    Differences
    Expression1Expression2Difference
    " (-X will list valid options)\n"" (fatal)"LITERAL_VALUE_MISMATCH
    "jruby: invalid extended option ""jruby: Can't chdir to "LITERAL_VALUE_MISMATCH
    extendedOptionsavedVARIABLE_NAME_MISMATCH
    34
    MainExitException mee = new MainExitException(1, "jruby: Can't chdir to " + saved + " (fatal)");
    140
    mee.setUsageError(true);
    35
    mee.setUsageError(true);
    141
    throw mee;
    36
    throw mee;
    Precondition Violations (0)
    Row Violation