Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.962 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 761 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ConstantPool.java |
2 | 18 | 800 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ConstantPool.java |
| ||||
if (key1Value == null) { CachedIndexEntry cachedIndexEntry = new CachedIndexEntry(key2, value); index = -value; this.nameAndTypeCacheForFieldsAndMethods.put(key1, cachedIndexEntry); } else if (key1Value instanceof CachedIndexEntry) { // adding a second entry CachedIndexEntry entry = (CachedIndexEntry) key1Value; if (CharOperation.equals(key2, entry.signature)) { index = entry.index; } else { CharArrayCache charArrayCache = new CharArrayCache(); charArrayCache.putIfAbsent(entry.signature, entry.index); index = charArrayCache.putIfAbsent(key2, value); this.nameAndTypeCacheForFieldsAndMethods.put(key1, charArrayCache); } } else { CharArrayCache charArrayCache = (CharArrayCache) key1Value; index = charArrayCache.putIfAbsent(key2, value); } |
| ||||
if (key2Value == null) { CachedIndexEntry cachedIndexEntry = new CachedIndexEntry(key3, value); index = -value; key1Value.put(key2, cachedIndexEntry); } else if (key2Value instanceof CachedIndexEntry) { // adding a second entry CachedIndexEntry entry = (CachedIndexEntry) key2Value; if (CharOperation.equals(key3, entry.signature)) { index = entry.index; } else { CharArrayCache charArrayCache = new CharArrayCache(); charArrayCache.putIfAbsent(entry.signature, entry.index); index = charArrayCache.putIfAbsent(key3, value); key1Value.put(key2, charArrayCache); } } else { CharArrayCache charArrayCache = (CharArrayCache) key2Value; index = charArrayCache.putIfAbsent(key3, value); } |
| |||
if ( [[#variablebccfc300]]== null) { CachedIndexEntry cachedIndexEntry = new CachedIndexEntry( [[#variablebccfc200]], value); index = -value; [[#variablebccfc1c0]].put( [[#variablebccfc2a0]], cachedIndexEntry); } else if ( [[#variablebccfc300]]instanceof CachedIndexEntry) { // adding a second entry CachedIndexEntry entry = (CachedIndexEntry) [[#variablebccfc300]]; if (CharOperation.equals( [[#variablebccfc200]], entry.signature)) { index = entry.index; } else { CharArrayCache charArrayCache = new CharArrayCache(); charArrayCache.putIfAbsent(entry.signature, entry.index); index = charArrayCache.putIfAbsent( [[#variablebccfc200]], value); [[#variablebccfc1c0]].put( [[#variablebccfc2a0]], charArrayCache); } } else { CharArrayCache charArrayCache = (CharArrayCache) [[#variablebccfc300]]; index = charArrayCache.putIfAbsent( [[#variablebccfc200]], value); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bccfc300]] | key2Value |
1 | 2 | [[#bccfc300]] | key1Value |
2 | 1 | [[#bccfc200]] | key3 |
2 | 2 | [[#bccfc200]] | key2 |
3 | 1 | [[#bccfc1c0]] | key1Value |
3 | 2 | [[#bccfc1c0]] | this.nameAndTypeCacheForFieldsAndMethods |
4 | 1 | [[#bccfc2a0]] | key2 |
4 | 2 | [[#bccfc2a0]] | key1 |