diff --git a/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceImpl.java b/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceImpl.java index aa96d57150..418d2e85f6 100644 --- a/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceImpl.java +++ b/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceImpl.java @@ -124,9 +124,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService { this.resourcesClassLoader = resourcesClassLoader; } - /** - * {@inheritDoc} - */ + @Override public Class classForName(String className) { for ( ClassLoader classLoader : classLoadingClassLoaders ) { try { @@ -138,9 +136,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService { throw new ClassLoadingException( "Unable to load class [" + className + "]" ); } - /** - * {@inheritDoc} - */ + @Override public URL locateResource(String name) { // first we try name as a URL try { @@ -158,9 +154,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService { return null; } - /** - * {@inheritDoc} - */ + @Override public InputStream locateResourceStream(String name) { // first we try name as a URL try { @@ -178,9 +172,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService { return null; } - /** - * {@inheritDoc} - */ + @Override public List locateResources(String name) { try { Enumeration urlEnumeration = resourcesClassLoader.getResources( name ); diff --git a/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceInitiator.java b/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceInitiator.java index 6ce8f84006..d515e8d090 100644 --- a/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceInitiator.java +++ b/core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceInitiator.java @@ -38,16 +38,12 @@ import org.hibernate.service.spi.ServicesRegistry; public class ClassLoaderServiceInitiator implements ServiceInitiator { public static final ClassLoaderServiceInitiator INSTANCE = new ClassLoaderServiceInitiator(); - /** - * {@inheritDoc} - */ + @Override public Class getServiceInitiated() { return ClassLoaderService.class; } - /** - * {@inheritDoc} - */ + @Override public ClassLoaderService initiateService(Map configurationValues, ServicesRegistry registry) { return new ClassLoaderServiceImpl( configurationValues ); } diff --git a/core/src/main/java/org/hibernate/service/internal/ServicesRegistryImpl.java b/core/src/main/java/org/hibernate/service/internal/ServicesRegistryImpl.java index 5af363c9e5..ac0f916e8d 100644 --- a/core/src/main/java/org/hibernate/service/internal/ServicesRegistryImpl.java +++ b/core/src/main/java/org/hibernate/service/internal/ServicesRegistryImpl.java @@ -83,6 +83,7 @@ public class ServicesRegistryImpl implements ServicesRegistry { serviceMap = null; } + @Override @SuppressWarnings({ "unchecked" }) public T getService(Class serviceRole) { T service = internalGetService( serviceRole ); diff --git a/core/src/main/java/org/hibernate/service/jmx/internal/JmxServiceInitiator.java b/core/src/main/java/org/hibernate/service/jmx/internal/JmxServiceInitiator.java index e971a8caf4..25b45e9832 100644 --- a/core/src/main/java/org/hibernate/service/jmx/internal/JmxServiceInitiator.java +++ b/core/src/main/java/org/hibernate/service/jmx/internal/JmxServiceInitiator.java @@ -39,16 +39,12 @@ public class JmxServiceInitiator implements ServiceInitiator { public static final String JMX_ENABLED = "hibernate.jmx.enabled"; public static final JmxServiceInitiator INSTANCE = new JmxServiceInitiator(); - /** - * {@inheritDoc} - */ + @Override public Class getServiceInitiated() { return JmxService.class; } - /** - * {@inheritDoc} - */ + @Override public JmxService initiateService(Map configValues, ServicesRegistry registry) { return ConfigurationHelper.getBoolean( JMX_ENABLED, configValues, false ) ? new JmxServiceImpl( configValues ) diff --git a/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceImpl.java b/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceImpl.java index 46d7491012..246ae370dc 100644 --- a/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceImpl.java +++ b/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceImpl.java @@ -50,6 +50,7 @@ public class JndiServiceImpl implements JndiService { this.initialContextSettings = JndiHelper.extractJndiProperties( configurationValues ); } + @Override public Object locate(String jndiName) { InitialContext initialContext = buildInitialContext(); try { @@ -74,6 +75,7 @@ public class JndiServiceImpl implements JndiService { } } + @Override public void bind(String jndiName, Object value) { InitialContext initialContext = buildInitialContext(); try { diff --git a/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceInitiator.java b/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceInitiator.java index 5160b76d5a..a338a7fafa 100644 --- a/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceInitiator.java +++ b/core/src/main/java/org/hibernate/service/jndi/internal/JndiServiceInitiator.java @@ -37,16 +37,12 @@ import org.hibernate.service.spi.ServicesRegistry; public class JndiServiceInitiator implements ServiceInitiator { public static final JndiServiceInitiator INSTANCE = new JndiServiceInitiator(); - /** - * {@inheritDoc} - */ + @Override public Class getServiceInitiated() { return JndiService.class; } - /** - * {@inheritDoc} - */ + @Override public JndiService initiateService(Map configurationValues, ServicesRegistry registry) { return new JndiServiceImpl( configurationValues ); }