move this method above other code

Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/f4d3e015
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/f4d3e015
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/f4d3e015

Branch: refs/heads/tomee-7.0.x
Commit: f4d3e01563bf9e37f32b9231d6a4b4a8bb0c3aa2
Parents: 460ba29
Author: Jonathan S. Fisher <exabr...@gmail.com>
Authored: Mon Oct 8 13:25:03 2018 -0500
Committer: Jonathan S. Fisher <exabr...@gmail.com>
Committed: Mon Oct 8 13:25:03 2018 -0500

----------------------------------------------------------------------
 .../eclipselink/OpenEJBServerPlatform.java          | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/f4d3e015/container/openejb-jpa-integration/src/main/java/org/apache/openejb/jpa/integration/eclipselink/OpenEJBServerPlatform.java
----------------------------------------------------------------------
diff --git 
a/container/openejb-jpa-integration/src/main/java/org/apache/openejb/jpa/integration/eclipselink/OpenEJBServerPlatform.java
 
b/container/openejb-jpa-integration/src/main/java/org/apache/openejb/jpa/integration/eclipselink/OpenEJBServerPlatform.java
index cd73c26..bca85fc 100644
--- 
a/container/openejb-jpa-integration/src/main/java/org/apache/openejb/jpa/integration/eclipselink/OpenEJBServerPlatform.java
+++ 
b/container/openejb-jpa-integration/src/main/java/org/apache/openejb/jpa/integration/eclipselink/OpenEJBServerPlatform.java
@@ -46,9 +46,16 @@ public class OpenEJBServerPlatform extends 
JMXServerPlatformBase implements JMXE
     }
 
     @Override
-    public Class getExternalTransactionControllerClass() {
+    public Class<?> getExternalTransactionControllerClass() {
         return OpenEJBJTATransactionController.class;
     }
+    
+    @Override
+    public void prepareServerSpecificServicesMBean() {
+        if (isRuntimeServicesEnabledDefault() && getDatabaseSession() != null 
&& shouldRegisterRuntimeBean) {
+            this.setRuntimeServicesMBean(new 
MBeanOpenEJBRuntimeServices(getDatabaseSession()));
+        }
+    }
 
     public static class OpenEJBJTATransactionController extends 
JTATransactionController {
         @Override
@@ -65,11 +72,4 @@ public class OpenEJBServerPlatform extends 
JMXServerPlatformBase implements JMXE
             transaction.registerInterposedSynchronization(synchronization);
         }
     }
-
-        @Override
-        public void prepareServerSpecificServicesMBean() {
-            if (isRuntimeServicesEnabledDefault() && getDatabaseSession() != 
null && shouldRegisterRuntimeBean) {
-                 this.setRuntimeServicesMBean(new 
MBeanOpenEJBRuntimeServices(getDatabaseSession()));
-            }
-        }
 }

Reply via email to