if ( ! ReflectHelper.isPublic( ctor ) ) { try { // found a ctor, but it was not publicly accessible so try to request accessibility ctor.setAccessible( true ); } catch ( SecurityException e ) { ctor = null; } }
if ( ! ReflectHelper.isPublic( ctor ) ) { try { // found a ctor, but it was not publicly accessible so try to request accessibility ctor.setAccessible( true ); } catch ( SecurityException e ) { ctor = null; } }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tuple/entity/EntityTuplizerFactory.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tuple/component/ComponentTuplizerFactory.java
Method name: Constructor getProperConstructor(Class) Method name: Constructor getProperConstructor(Class)
Number of AST nodes: 3 Number of AST nodes: 3
1
if ( ! ReflectHelper.isPublic( ctor ) ) {
1
if ( ! ReflectHelper.isPublic( ctor ) ) {
2
				try {
2
				try {
3
					// found a ctor, but it was not publicly accessible so try to request accessibility
3
					// found a ctor, but it was not publicly accessible so try to request accessibility
4
					ctor.setAccessible( true );
4
					ctor.setAccessible( true );
5
				}
5
				}
6
				catch ( SecurityException e ) {
6
				catch ( SecurityException e ) {
7
					ctor = null;
7
					ctor = null;
8
				}
8
				}
9
			}
9
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes
Number of node comparisons6
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.4
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    4
    if (!ReflectHelper.isPublic(ctor))
    4
    if (!ReflectHelper.isPublic(ctor))
    5
    try
    5
    try
    6
    ctor.setAccessible(true);
    6
    ctor.setAccessible(true);
    Precondition Violations (0)
    Row Violation