diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/TableSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/TableSourceImpl.java index 20702da07e..f1ac5f13f9 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/TableSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/TableSourceImpl.java @@ -34,7 +34,7 @@ class TableSourceImpl implements TableSource { this.schema = schema; this.catalog = catalog; // for some reason annotations passing in "" sometimes :( - this.tableName = tableName.equals( "" ) ? null : tableName; + this.tableName = "".equals( tableName ) ? null : tableName; } @Override