HHH-13496 Review string appending styles

This commit is contained in:
Sanne Grinovero 2019-07-05 16:22:49 +01:00
parent 9196a4e01e
commit cdcd6bfe76
2 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ public class PersistentAttributesEnhancer extends EnhancerImpl {
try {
boolean declared = persistentField.getDeclaringClass().equals( managedCtClass );
String declaredReadFragment = "this." + fieldName + "";
String declaredReadFragment = "this." + fieldName;
String superReadFragment = "super." + readerName + "()";
if ( !declared ) {

View File

@ -80,7 +80,7 @@ public class CopyIdentifierComponentSecondPass implements SecondPass {
if ( columnByReferencedName.isEmpty() ) {
isExplicitReference = false;
for ( Ejb3JoinColumn joinColumn : joinColumns ) {
columnByReferencedName.put( "" + index.get(), joinColumn );
columnByReferencedName.put( String.valueOf( index.get() ), joinColumn );
index.getAndIncrement();
}
index.set( 0 );
@ -184,7 +184,7 @@ public class CopyIdentifierComponentSecondPass implements SecondPass {
joinColumn = columnByReferencedName.get( logicalColumnName.toLowerCase(Locale.ROOT ) );
}
else {
joinColumn = columnByReferencedName.get( "" + index.get() );
joinColumn = columnByReferencedName.get( String.valueOf( index.get() ) );
index.getAndIncrement();
}
if ( joinColumn == null && ! joinColumns[0].isNameDeferred() ) {