File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/manytomanyassociationclass/Group.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/manytomanyassociationclass/User.java | |||
Method name:
|
Method name:
|
|||
Number of AST nodes: 0 | Number of AST nodes: 0 | |||
1 | public boolean equals(Object obj) {↵ | 1 | public boolean equals(Object obj) {↵ | |
2 | if ( this == obj ) {↵ | 2 | if ( this == obj ) {↵ | |
3 | return true;↵ | 3 | return true;↵ | |
4 | }↵ | 4 | }↵ | |
5 | if ( obj instanceof Group ) {↵ | 5 | if ( obj instanceof User ) {↵ | |
6 | Group grp = ( Group ) obj;↵ | 6 | User user = ( User ) obj;↵ | |
7 | if ( grp.getName() != null && name != null ) {↵ | 7 | if ( user.getName() != null && name != null ) {↵ | |
8 | return grp.getName().equals( name );↵ | 8 | return user.getName().equals( name );↵ | |
9 | }↵ | 9 | }↵ | |
10 | else {↵ | 10 | else {↵ | |
11 | return super.equals( obj );↵ | 11 | return super.equals( obj );↵ | |
12 | }↵ | 12 | }↵ | |
13 | }↵ | 13 | }↵ | |
14 | else {↵ | 14 | else {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | | 16 |
| |
See real code fragment | See real code fragment |
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.0 |
Clones location | |
Number of node comparisons | 0 |