fix punctuation in error message

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-05-27 11:46:54 +02:00 committed by Steve Ebersole
parent a5f1925b69
commit 386e7542f9
1 changed files with 2 additions and 3 deletions

View File

@ -446,9 +446,8 @@ public class PropertyBinder {
final GeneratorCreator candidate = generatorCreator( property, usage, buildingContext );
if ( candidate != null ) {
if ( creator != null ) {
throw new AnnotationException( String.format(
"Property `%s` has multiple '@ValueGenerationType' annotations", qualify( holder.getPath(), name )
) );
throw new AnnotationException( "Property '" + qualify( holder.getPath(), name )
+ "' has multiple '@ValueGenerationType' annotations" );
}
else {
creator = candidate;