Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.959 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 685 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/objectweb/asm/ClassWriter.java |
2 | 9 | 857 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/objectweb/asm/ClassWriter.java |
| |||||
/** * Adds a class reference to the constant pool of the class being build. Does * nothing if the constant pool already contains a similar item. * * @param value the internal name of the class. * @return a new or already existing class reference item. */ Item newClass( final String value) { key2.set(CLASS, value, null, null); Item result = get(key2); if (result == null) { pool.put12(CLASS, newUTF8(value).index); result = new Item(index++ , key2); put(result); } return result; } |
| |||||
/** * Adds a string to the constant pool of the class being build. Does nothing * if the constant pool already contains a similar item. * * @param value the String value. * @return a new or already existing string item. */ private Item newString( final String value) { key2.set(STR, value, null, null); Item result = get(key2); if (result == null) { pool.put12(STR, newUTF8(value).index); result = new Item(index++ , key2); put(result); } return result; } |
| |||
[[#variableae848e0]] /** * Adds a class reference to the constant pool of the class being build. Does * nothing if the constant pool already contains a similar item. * * @param value the internal name of the class. * @return a new or already existing class reference item. */ Item [[#variableae85580]]( final String value) { key2.set( [[#variableae81f80]], value, null, null); Item result = get(key2); if (result == null) { pool.put12( [[#variableae81f80]], newUTF8(value).index); result = new Item(index++ , key2); put(result); } return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ae848e0]] | |
1 | 2 | [[#ae848e0]] | /** * Adds a string to the constant pool of the class being build. Does nothing * if the constant pool already contains a similar item. * * @param value the String value. * @return a new or already existing string item. */ private |
2 | 1 | [[#ae85580]] | newClass |
2 | 2 | [[#ae85580]] | newString |
3 | 1 | [[#ae81f80]] | CLASS |
3 | 2 | [[#ae81f80]] | STR |