CloneSet2383


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.972class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110118
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AddArgumentCorrectionProposal.java
210158
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/MissingReturnTypeCorrectionProposal.java
Clone Instance
1
Line Count
10
Source Line
118
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AddArgumentCorrectionProposal.java

        private boolean testModifier(IVariableBinding curr) {
                int modifiers = curr.getModifiers();
                int staticFinal = Modifier.STATIC|  Modifier.FINAL;
                if ((modifiers&  staticFinal) == staticFinal) {
                        return false;
                }
                if (Modifier.isStatic(modifiers) && !ASTResolving.isInStaticContext(fCallerNode)) {
                        return false;
                }
                return true;
        }


Clone Instance
2
Line Count
10
Source Line
158
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/MissingReturnTypeCorrectionProposal.java

        private boolean testModifier(IVariableBinding curr) {
                int modifiers = curr.getModifiers();
                int staticFinal = Modifier.STATIC|  Modifier.FINAL;
                if ((modifiers&  staticFinal) == staticFinal) {
                        return false;
                }
                if (Modifier.isStatic(modifiers) && !Modifier.isStatic(fMethodDecl.getModifiers())) {
                        return false;
                }
                return true;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

private boolean testModifier(IVariableBinding curr) {
  int modifiers = curr.getModifiers();
  int staticFinal = Modifier.STATIC|Modifier.FINAL;
  if ((modifiers&staticFinal) == staticFinal) {
    return false;
  }
  if (Modifier.isStatic(modifiers) && ! [[#variable531f6560]]. [[#variable531f6500]]( [[#variable531f6420]])) {
    return false;
  }
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#531f6560]]
Modifier 
12[[#531f6560]]
ASTResolving 
21[[#531f6500]]
isStatic 
22[[#531f6500]]
isInStaticContext 
31[[#531f6420]]
fMethodDecl.getModifiers() 
32[[#531f6420]]
fCallerNode