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) {
return new DirectInstantiationManagedBeanImpl<>( beanContract );
}
}
}

View File

@ -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();
}

View File

@ -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(" ")