HHH-15029 Small refactoring in JndiServiceImpl: no need to use a Properties for the context configuration
This commit is contained in:
parent
1b2508e4e0
commit
73e936b280
|
@ -8,7 +8,6 @@ package org.hibernate.engine.jndi.internal;
|
|||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
import javax.naming.Context;
|
||||
import javax.naming.InitialContext;
|
||||
|
@ -57,8 +56,8 @@ public class JndiServiceImpl implements JndiService {
|
|||
* @return The extracted JNDI specific properties.
|
||||
*/
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
private static Properties extractJndiProperties(Map configurationValues) {
|
||||
final Properties jndiProperties = new Properties();
|
||||
private static Hashtable extractJndiProperties(Map configurationValues) {
|
||||
final Hashtable jndiProperties = new Hashtable();
|
||||
|
||||
for ( Map.Entry entry : (Set<Map.Entry>) configurationValues.entrySet() ) {
|
||||
if ( !String.class.isInstance( entry.getKey() ) ) {
|
||||
|
|
Loading…
Reference in New Issue