CloneSet574


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.972statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1142767
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java
2142785
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java
Clone Instance
1
Line Count
14
Source Line
2767
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java

                                switch (wildV.boundKind) {
                                        // U, ? extends V
                                        case Wildcard.EXTENDS:
                                                TypeBinding lub = lowerUpperBound(new TypeBinding[] {
                                                                                                     u,wildV.bound
                                                                                                    },              lubStack);
                                                if (lub == null) return null;
                                                // int is returned to denote cycle detected in lub computation - stop recursion by answering unbound wildcard
                                                if (lub == TypeBinding.INT) return environment().createWildcard(genericType, rank, null, null
                                                                                                                                              /*no extra bound*/
                                                                                                                                             ,                    Wildcard.UNBOUND);
                                                return environment().createWildcard(genericType, rank, lub, null
                                                                                                                 /*no extra bound*/
                                                                                                                ,                    Wildcard.EXTENDS);
                                        // U, ? super V
                                        case Wildcard.SUPER:
                                                TypeBinding[] glb = greaterLowerBound(new TypeBinding[] {
                                                                                                         u,wildV.bound
                                                                                                        } );
                                                if (glb == null) return null;
                                                return environment().createWildcard(genericType, rank, glb[0], null
                                                                                                                    /*no extra bound*/
                                                                                                                   ,                    Wildcard.SUPER);        // TODO (philippe) need to capture entire bounds
                                        case Wildcard.UNBOUND:
                                      }


Clone Instance
2
Line Count
14
Source Line
2785
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java

                        switch (wildU.boundKind) {
                                // U, ? extends V
                                case Wildcard.EXTENDS:
                                        TypeBinding lub = lowerUpperBound(new TypeBinding[] {
                                                                                             wildU.bound, v
                                                                                            },               lubStack);
                                        if (lub == null) return null;
                                        // int is returned to denote cycle detected in lub computation - stop recursion by answering unbound wildcard
                                        if (lub == TypeBinding.INT) return environment().createWildcard(genericType, rank, null, null
                                                                                                                                      /*no extra bound*/
                                                                                                                                     ,                    Wildcard.UNBOUND);
                                        return environment().createWildcard(genericType, rank, lub, null
                                                                                                         /*no extra bound*/
                                                                                                        ,                    Wildcard.EXTENDS);
                                // U, ? super V
                                case Wildcard.SUPER:
                                        TypeBinding[] glb = greaterLowerBound(new TypeBinding[] {
                                                                                                 wildU.bound, v
                                                                                                } );
                                        if (glb == null) return null;
                                        return environment().createWildcard(genericType, rank, glb[0], null
                                                                                                            /*no extra bound*/
                                                                                                           ,                    Wildcard.SUPER); // TODO (philippe) need to capture entire bounds               
                                case Wildcard.UNBOUND:
                              }


Clone AbstractionParameter Count: 3Parameter Bindings

switch ( [[#variable92267e00]].boundKind) {
  // U, ? extends V
  case Wildcard.EXTENDS:
    TypeBinding lub = lowerUpperBound(new TypeBinding[] {
                                                           [[#variable92267d60]],
                                                           [[#variable922677e0]]
                                                        }, lubStack);
    if (lub == null)
      return null;
    // int is returned to denote cycle detected in lub computation - stop recursion by answering unbound wildcard
    if (lub == TypeBinding.INT)
      return environment().createWildcard(genericType, rank, null, null
                                                                       /*no extra bound*/
                                                                       , Wildcard.UNBOUND);
    return environment().createWildcard(genericType, rank, lub, null
                                                                    /*no extra bound*/
                                                                    , Wildcard.EXTENDS);
  // U, ? super V
  case Wildcard.SUPER:
    TypeBinding[] glb = greaterLowerBound(new TypeBinding[] {
                                                               [[#variable92267d60]],
                                                               [[#variable922677e0]]
                                                            } );
    if (glb == null)
      return null;
    return environment().createWildcard(genericType, rank, glb[0], null
                                                                       /*no extra bound*/
                                                                       , Wildcard.SUPER); // TODO (philippe) need to capture entire bounds // TODO (philippe) need to capture entire bounds                
  case Wildcard.UNBOUND:
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#92267e00]]
wildV 
12[[#92267e00]]
wildU 
21[[#92267d60]]
u 
22[[#92267d60]]
wildU.bound 
31[[#922677e0]]
wildV.bound 
32[[#922677e0]]
v