1761-1-2

void warning(String message) { System.err.println("-->Warning: " + message); roseUtil.addDiagnostic(new BasicDiagnostic(Diagnostic.WARNING, RoseImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null)); } protected void error(String message) { System.err.println("-->Error: " + message); roseUtil.addDiagnostic(new BasicDiagnostic(Diagnostic.ERROR, RoseImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null)); }
void error(String message) { System.err.println("-->Error: " + message); basicDiagnostic.add(new BasicDiagnostic(Diagnostic.ERROR, JavaImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null)); } /** * Produces another IStatus in the MultiStatus, with warning severity. * @param message a description of the error. */ protected void warning(String message) { System.err.println("-->Warning: " + message); basicDiagnostic.add(new BasicDiagnostic(Diagnostic.WARNING, JavaImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null)); }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/builder/RoseEcoreBuilder.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/importer/java/builder/JavaEcoreBuilder.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    void warning(String message)↵

1

    void error(String message)↵

2

      {↵

2

      {↵

3

        System.err.println("-->Warning: " + message);↵

3

        System.err.println("-->Error: " + message);↵

4

        roseUtil.addDiagnostic(new BasicDiagnostic(Diagnostic.WARNING, RoseImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null));↵

4

        basicDiagnostic.add(new BasicDiagnostic(Diagnostic.ERROR, JavaImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null));↵

5

      }↵

5

      }↵

6

      /**↵

7

       * Produces another IStatus in the MultiStatus, with warning severity.↵

8

       * @param message a description of the error.↵

9

       */↵

6

      protected void error(String message)↵

10

      protected void warning(String message)↵

7

      {↵

11

      {↵

8

        System.err.println("-->Error: " + message);↵

12

        System.err.println("-->Warning: " + message);↵

9

        roseUtil.addDiagnostic(new BasicDiagnostic(Diagnostic.ERROR, RoseImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null));↵

13

        basicDiagnostic.add(new BasicDiagnostic(Diagnostic.WARNING, JavaImporterPlugin.getPlugin().getBundle().getSymbolicName(), 0, message, null));↵

10

      }

14

      }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0