diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/util/JandexHelper.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/util/JandexHelper.java index e01ba582c7..4c82b10699 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/util/JandexHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/util/JandexHelper.java @@ -363,11 +363,11 @@ public class JandexHelper { if ( val != null ) { // Annotation parameters of type Class are handled using Strings if ( val instanceof Class ) { - val = ( ( Class ) val).getName(); + val = ( ( Class ) val ).getName(); } } DEFAULT_VALUES_BY_ELEMENT.put( fqElement, val ); - return val == null ? null : val; + return val; } catch ( RuntimeException error ) { throw error;