diff --git a/hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryDirectImpl.java b/hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryDirectImpl.java index ecd219a682..1a54714b76 100644 --- a/hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryDirectImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryDirectImpl.java @@ -31,4 +31,4 @@ public class ManagedBeanRegistryDirectImpl extends AbstractManagedBeanRegistry { protected ManagedBean createBean(String beanName, Class beanContract) { return new DirectInstantiationManagedBeanImpl<>( beanContract ); } -} \ No newline at end of file +} diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/model/MetaAttribute.java b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/model/MetaAttribute.java index 4695b1884e..91b7c85546 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/model/MetaAttribute.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/model/MetaAttribute.java @@ -10,9 +10,10 @@ package org.hibernate.jpamodelgen.model; * @author Hardy Ferentschik */ public interface MetaAttribute { - String getAttributeDeclarationString(); - String getAttributeNameDeclarationString(); + String getAttributeDeclarationString(); + + String getAttributeNameDeclarationString(); String getMetaType(); @@ -21,4 +22,5 @@ public interface MetaAttribute { String getTypeDeclaration(); MetaEntity getHostingEntity(); + } diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/xml/XmlMetaAttribute.java b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/xml/XmlMetaAttribute.java index b320038668..dc3d13357b 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/xml/XmlMetaAttribute.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/xml/XmlMetaAttribute.java @@ -28,7 +28,7 @@ public abstract class XmlMetaAttribute implements MetaAttribute { this.type = type; } - @Override + @Override public String getAttributeDeclarationString() { return "public static volatile " + hostingEntity.importType( getMetaType() ) + "<" + hostingEntity.importType( hostingEntity.getQualifiedName() ) @@ -36,8 +36,8 @@ public abstract class XmlMetaAttribute implements MetaAttribute { + "> " + getPropertyName() + ";"; } - @Override - public String getAttributeNameDeclarationString(){ + @Override + public String getAttributeNameDeclarationString(){ return new StringBuilder().append("public static final ") .append(hostingEntity.importType(String.class.getName())) .append(" ")