Fix checkstyle violations

This commit is contained in:
Sanne Grinovero 2017-12-19 10:02:43 +00:00
parent 981eb41d79
commit 5c43ad571f
3 changed files with 8 additions and 6 deletions

View File

@ -31,4 +31,4 @@ public class ManagedBeanRegistryDirectImpl extends AbstractManagedBeanRegistry {
protected <T> ManagedBean<T> createBean(String beanName, Class<T> beanContract) { protected <T> ManagedBean<T> createBean(String beanName, Class<T> beanContract) {
return new DirectInstantiationManagedBeanImpl<>( beanContract ); return new DirectInstantiationManagedBeanImpl<>( beanContract );
} }
} }

View File

@ -10,9 +10,10 @@ package org.hibernate.jpamodelgen.model;
* @author Hardy Ferentschik * @author Hardy Ferentschik
*/ */
public interface MetaAttribute { public interface MetaAttribute {
String getAttributeDeclarationString();
String getAttributeNameDeclarationString(); String getAttributeDeclarationString();
String getAttributeNameDeclarationString();
String getMetaType(); String getMetaType();
@ -21,4 +22,5 @@ public interface MetaAttribute {
String getTypeDeclaration(); String getTypeDeclaration();
MetaEntity getHostingEntity(); MetaEntity getHostingEntity();
} }

View File

@ -28,7 +28,7 @@ public abstract class XmlMetaAttribute implements MetaAttribute {
this.type = type; this.type = type;
} }
@Override @Override
public String getAttributeDeclarationString() { public String getAttributeDeclarationString() {
return "public static volatile " + hostingEntity.importType( getMetaType() ) return "public static volatile " + hostingEntity.importType( getMetaType() )
+ "<" + hostingEntity.importType( hostingEntity.getQualifiedName() ) + "<" + hostingEntity.importType( hostingEntity.getQualifiedName() )
@ -36,8 +36,8 @@ public abstract class XmlMetaAttribute implements MetaAttribute {
+ "> " + getPropertyName() + ";"; + "> " + getPropertyName() + ";";
} }
@Override @Override
public String getAttributeNameDeclarationString(){ public String getAttributeNameDeclarationString(){
return new StringBuilder().append("public static final ") return new StringBuilder().append("public static final ")
.append(hostingEntity.importType(String.class.getName())) .append(hostingEntity.importType(String.class.getName()))
.append(" ") .append(" ")