CloneSet350


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25360.982statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125200
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/jdwp/JdwpPacket.java
2251292
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java
325191
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/spy/JdwpPacket.java
Clone Instance
1
Line Count
25
Source Line
200
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/jdwp/JdwpPacket.java

                for (int i = 0; i < fields.length; i++) {
                        Field field = fields[i];
                        if ((field.getModifiers()&  Modifier.PUBLIC) == 0 || (field.getModifiers()&  Modifier.STATIC) == 0 || (field.getModifiers()&  Modifier.FINAL) == 0) {
                                continue ;
                        }

                        String name = field.getName();
                        if ( !name.startsWith("FLAG_")) { //$NON-NLS-1$
                                continue ;
                        }

                        name = name.substring(5);

                        try {
                                byte value = field.getByte(null);

                                for (int j = 0; j < fgFlagStrings.length; j++) {
                                        if ((1 << j&  value) != 0) {
                                                fgFlagStrings[j] = name;
                                                break;
                                        }
                                }
                        } catch (IllegalAccessException e) {
                                // Will not occur for own class.
                          }
                          catch (IllegalArgumentException e) {
                                // Should not occur.
                                // We should take care that all public static final constants
                                // in this class are bytes.
                          }
                }


Clone Instance
2
Line Count
25
Source Line
1292
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java

                for (int i = 0; i < fields.length; i++) {
                        java.lang.reflect.Field field = fields[i];
                        if ((field.getModifiers()&  Modifier.PUBLIC) == 0 || (field.getModifiers()&  Modifier.STATIC) == 0 || (field.getModifiers()&  Modifier.FINAL) == 0) {
                                continue ;
                        }

                        String name = field.getName();
                        if ( !name.startsWith("JDWP_CLASS_STATUS_")) { //$NON-NLS-1$
                                continue ;
                        }

                        name = name.substring(18);

                        try {
                                int value = field.getInt(null);

                                for (int j = 0; j < fgClassStatusStrings.length; j++) {
                                        if ((1 << j&  value) != 0) {
                                                fgClassStatusStrings[j] = name;
                                                break;
                                        }
                                }
                        } catch (IllegalAccessException e) {
                                // Will not occur for own class.
                          }
                          catch (IllegalArgumentException e) {
                                // Should not occur.
                                // We should take care that all public static final constants
                                // in this class are numbers that are convertible to int.
                          }
                }


Clone Instance
3
Line Count
25
Source Line
191
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/spy/JdwpPacket.java

                for (int i = 0; i < fields.length; i++) {
                        Field field = fields[i];
                        if ((field.getModifiers()&  Modifier.PUBLIC) == 0 || (field.getModifiers()&  Modifier.STATIC) == 0 || (field.getModifiers()&  Modifier.FINAL) == 0) {
                                continue ;
                        }

                        String name = field.getName();
                        if ( !name.startsWith("FLAG_")) { //$NON-NLS-1$
                                continue ;
                        }

                        name = name.substring(5);

                        try {
                                byte value = field.getByte(null);

                                for (int j = 0; j < fgFlagStrings.length; j++) {
                                        if ((1 << j&  value) != 0) {
                                                fgFlagStrings[j] = name;
                                                break;
                                        }
                                }
                        } catch (IllegalAccessException e) {
                                // Will not occur for own class.
                          }
                          catch (IllegalArgumentException e) {
                                // Should not occur.
                                // We should take care that all public static final constants
                                // in this class are bytes.
                          }
                }


Clone AbstractionParameter Count: 6Parameter Bindings

for (int i = 0; i < fields.length; i++) {
   [[#variablebf77a540]] field = fields[i];
  if ((field.getModifiers()&Modifier.PUBLIC) == 0 || (field.getModifiers()&Modifier.STATIC) == 0 || (field.getModifiers()&Modifier.FINAL) == 0) {
    continue ;
  }
  String name = field.getName();
  if ( !name.startsWith( [[#variablebf77a4e0]])) { //$NON-NLS-1$
    continue ;
  }
  name = name.substring( [[#variablebf77a440]]);
  try {
     [[#variablebf88a9c0]] value = field. [[#variableb4b7d2a0]](null);
    for (int j = 0; j <  [[#variablebf77a420]].length; j++) {
      if ((1 << j&value) != 0) {
         [[#variablebf77a420]][j] = name;
        break;
      }
    }
  }
  catch (IllegalAccessException e) {
  // Will not occur for own class.
  }
  catch (IllegalArgumentException e) {
  // Should not occur.
  // We should take care that all public static final constants
  // in this class are bytes.
  // in this class are numbers that are convertible to int.
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bf77a540]]
Field 
12[[#bf77a540]]
java.lang.reflect.Field 
13[[#bf77a540]]
Field 
21[[#bf77a4e0]]
"FLAG_" 
22[[#bf77a4e0]]
"JDWP_CLASS_STATUS_" 
23[[#bf77a4e0]]
"FLAG_" 
31[[#bf77a440]]
5 
32[[#bf77a440]]
18 
33[[#bf77a440]]
5 
41[[#bf88a9c0]]
byte 
42[[#bf88a9c0]]
int 
43[[#bf88a9c0]]
byte 
51[[#b4b7d2a0]]
getByte 
52[[#b4b7d2a0]]
getInt 
53[[#b4b7d2a0]]
getByte 
61[[#bf77a420]]
fgFlagStrings 
62[[#bf77a420]]
fgClassStatusStrings 
63[[#bf77a420]]
fgFlagStrings