CloneSet613


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26220.987class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12665
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/MessagerImpl.java
22693
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/MessagerImpl.java
Clone Instance
1
Line Count
26
Source Line
65
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/MessagerImpl.java

    public void printNotice(SourcePosition pos, String msg, String[] arguments)
    {
        if (pos instanceof SourcePositionImpl)
            print((SourcePositionImpl) pos, Severity.INFO, msg, arguments);
        else         if (pos == null)
                        printNotice(msg);
                     else
                print(pos, Severity.INFO, msg, arguments);
    }

        public void printNotice(ASTNode node, String msg)
        {
                if (node == null)
                        throw new IllegalArgumentException("\'node\' cannot be null"); //$NON-NLS-1$
                final int start = node.getStartPosition();
                // The only time you get a dom AST node is when you are processing in a per-file mode.
                // _env.getAstCompilationUnit() && _env.getFile() will return an non-null value.
                int line = _env.getAstCompilationUnit().getLineNumber(start);
                if (line < 1)
                        line = 1;
                _env.addMessage(_env.getFile(), start, node.getLength() + start, Severity.INFO, msg, line, null);
        }

    public void printNotice(String msg)
    {
       print(Severity.INFO, msg, null);
    }


Clone Instance
2
Line Count
26
Source Line
93
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/MessagerImpl.java

    public void printWarning(SourcePosition pos, String msg, String[] arguments)
    {
        if (pos instanceof SourcePositionImpl)
            print((SourcePositionImpl) pos, Severity.WARNING, msg, arguments);
        else         if (pos == null)
                        printWarning(msg);
                     else
                print(pos, Severity.WARNING, msg, arguments);
    }

        public void printWarning(ASTNode node, String msg)
        {
                if (node == null)
                        throw new IllegalArgumentException("\'node\' cannot be null"); //$NON-NLS-1$
                final int start = node.getStartPosition();
                // The only time you get a dom AST node is when you are processing in a per-file mode.
                // _env.getAstCompilationUnit() && _env.getFile() will return an non-null value.
                int line = _env.getAstCompilationUnit().getLineNumber(start);
                if (line < 1)
                        line = 1;
                _env.addMessage(_env.getFile(), start, node.getLength() + start, Severity.WARNING, msg, line, null);
        }

    public void printWarning(String msg)
    {
        print(Severity.WARNING, msg, null);
    }


Clone AbstractionParameter Count: 2Parameter Bindings

public void [[#variableb15a1200]](SourcePosition pos, String msg, String[] arguments) {
  if (pos instanceof SourcePositionImpl)
    print((SourcePositionImpl) pos, Severity. [[#variableb15a11a0]], msg, arguments);
  else
    if (pos == null)
       [[#variableb15a1200]](msg);
    else
      print(pos, Severity. [[#variableb15a11a0]], msg, arguments);
}

public void [[#variableb15a1200]](ASTNode node, String msg) {
  if (node == null)
    throw new IllegalArgumentException("\'node\' cannot be null"); //$NON-NLS-1$
  final int start = node.getStartPosition();
  // The only time you get a dom AST node is when you are processing in a per-file mode.
  // _env.getAstCompilationUnit() && _env.getFile() will return an non-null value.
  int line = _env.getAstCompilationUnit().getLineNumber(start);
  if (line < 1)
    line = 1;
  _env.addMessage(_env.getFile(), start, node.getLength() + start, Severity. [[#variableb15a11a0]], msg, line, null);
}

public void [[#variableb15a1200]](String msg) {
  print(Severity. [[#variableb15a11a0]], msg, null);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b15a1200]]
printWarning 
12[[#b15a1200]]
printNotice 
21[[#b15a11a0]]
WARNING 
22[[#b15a11a0]]
INFO