Fix checkstyle violations
This commit is contained in:
parent
981eb41d79
commit
5c43ad571f
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(" ")
|
||||||
|
|
Loading…
Reference in New Issue