minor code changes
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
9263a26270
commit
d938576fcc
|
@ -13,7 +13,6 @@ import java.util.Set;
|
|||
import org.hibernate.EntityNameResolver;
|
||||
import org.hibernate.MappingException;
|
||||
import org.hibernate.Metamodel;
|
||||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.metamodel.MappingMetamodel;
|
||||
import org.hibernate.persister.collection.CollectionPersister;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
|
|
|
@ -182,7 +182,6 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void close(Statement statement) {
|
||||
log.tracef( "Closing prepared statement [%s]", statement );
|
||||
|
||||
|
|
|
@ -642,7 +642,7 @@ public class HibernateProcessor extends AbstractProcessor {
|
|||
final TypeElement fieldType = (TypeElement) declaredType.asElement();
|
||||
if ( fieldType.getKind() == ElementKind.ENUM ) {
|
||||
for (Element enumMember : fieldType.getEnclosedElements() ) {
|
||||
if ( enumMember.getKind() == ElementKind.ENUM_CONSTANT) {
|
||||
if ( enumMember.getKind() == ElementKind.ENUM_CONSTANT ) {
|
||||
context.addEnumValue( fieldType.getQualifiedName().toString(),
|
||||
enumMember.getSimpleName().toString() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue