tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject svn commit: r1607328 - in /tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config: WebModule.java WsDeployer.java
Date Wed, 02 Jul 2014 11:46:06 GMT
Author: andygumbrecht
Date: Wed Jul  2 11:46:05 2014
New Revision: 1607328

URL: http://svn.apache.org/r1607328
Log:
PMD

Modified:
    tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java
    tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java?rev=1607328&r1=1607327&r2=1607328&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WebModule.java
Wed Jul  2 11:46:05 2014
@@ -101,7 +101,7 @@ public class WebModule extends Module im
             webApp.setContextRoot(contextRoot);
         }
 
-        host = SystemInstance.get().getProperty(id.getName() + ".host", (String) null);
+        host = SystemInstance.get().getProperty(id.getName() + ".host", null);
     }
 
     @Override

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java?rev=1607328&r1=1607327&r2=1607328&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
Wed Jul  2 11:46:05 2014
@@ -236,7 +236,7 @@ public class WsDeployer implements Dynam
         }
     }
 
-    private void configMtomAnnotation(Class<?> clazz, PortComponent portComponent)
{
+    private void configMtomAnnotation(final Class<?> clazz, final PortComponent portComponent)
{
         final MTOM mtom = clazz.getAnnotation(MTOM.class);
         if (mtom != null) {
             if (portComponent.getEnableMtom() == null) {
@@ -265,7 +265,7 @@ public class WsDeployer implements Dynam
 
         final Map<String, EjbDeployment> deploymentsByEjbName = ejbModule.getOpenejbJar().getDeploymentsByEjbName();
 
-        WebserviceDescription webserviceDescription = null;
+        WebserviceDescription webserviceDescription;
         for (final EnterpriseBean enterpriseBean : ejbModule.getEjbJar().getEnterpriseBeans())
{
             // skip if this is not a webservices endpoint
             if (!(enterpriseBean instanceof SessionBean)) {
@@ -404,8 +404,7 @@ public class WsDeployer implements Dynam
 
         final Object object = module.getAltDDs().get(wsdlFile);
         if (object instanceof Definition) {
-            final Definition definition = (Definition) object;
-            return definition;
+            return (Definition) object;
         }
 
         try {



Mime
View raw message