We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b854ef0 commit 78b45cbCopy full SHA for 78b45cb
hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
@@ -265,8 +265,7 @@ public Configuration setProperties(Properties properties) {
265
* @return The value currently associated with that property name; may be null.
266
*/
267
public String getProperty(String propertyName) {
268
- Object o = properties.get( propertyName );
269
- return o instanceof String ? (String) o : null;
+ return properties.get( propertyName ) instanceof String property ? property : null;
270
}
271
272
/**
0 commit comments