MainExitException mee = new MainExitException(1, "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n"); mee.setUsageError(true); throw mee;
MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing")); 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: 3
1
MainExitException mee =
1
MainExitException mee =
2
                                new MainExitException(1, "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n");
2
 new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing"));
3
                        mee.setUsageError(true);
3
                            mee.setUsageError(true);
4
                        throw mee;
4
                            throw mee;
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
    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");
    113
    MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing"));
    Differences
    Expression1Expression2Difference
    "jruby: invalid extended option " + extendedOption + " (-X will list valid options)\n"getArgumentError(" -W must be followed by either 0, 1, 2 or nothing")TYPE_COMPATIBLE_REPLACEMENT
    113
    MainExitException mee = new MainExitException(1, getArgumentError(" -W must be followed by either 0, 1, 2 or nothing"));
    140
    mee.setUsageError(true);
    114
    mee.setUsageError(true);
    141
    throw mee;
    115
    throw mee;
    Precondition Violations (0)
    Row Violation