HHH-12786 Properly indent the Bytebuddy DSL

It helps to understand what exactly these calls do.
This commit is contained in:
Guillaume Smet 2018-07-12 15:46:43 +02:00
parent 6e85dd82f3
commit 3759f776ab
4 changed files with 56 additions and 55 deletions

View File

@ -348,7 +348,8 @@ public class EnhancerImpl implements Enhancer {
String fieldName,
String getterName,
String setterName) {
return builder.defineField( fieldName, type, Visibility.PRIVATE, FieldPersistence.TRANSIENT )
return builder
.defineField( fieldName, type, Visibility.PRIVATE, FieldPersistence.TRANSIENT )
.annotateField( AnnotationDescription.Builder.ofType( Transient.class ).build() )
.defineMethod( getterName, type, Visibility.PUBLIC )
.intercept( FieldAccessor.ofField( fieldName ) )