if (e.hash == hash) {
Object old = e.value;
e.value = value;
return old;
}
Encoding enc = value.encoding;
if (enc.isDummy()) throw getRuntime().newEncodingCompatibilityError(
"incompatible encoding with this operation: " + enc);
return enc;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/util/collections/IntHashMap.java
|
|
File path: /jruby-1.4.0/src/org/jruby/RubyString.java
|
Method name: Object put(int, Object)
|
|
Method name: Encoding checkDummyEncoding()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (e.hash == hash) {↵ | | |
|
2 | Object old = e.value;↵ | | |
|
3 | e.value = value;↵ | | |
|
4 | return old;↵ | | |
|
5 | } | | 1 | Encoding enc = value.encoding;↵
|
| | | 2 | if (enc.isDummy()) throw getRuntime().newEncodingCompatibilityError(↵
|
| | | 3 | "incompatible encoding with this operation: " + enc);↵
|
| | | 4 | return enc;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |