Repository: tapestry-5
Updated Branches:
  refs/heads/master a4fe5cedc -> 6b4e7a04c


Minor code clean up


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/7152f8dc
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/7152f8dc
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/7152f8dc

Branch: refs/heads/master
Commit: 7152f8dceb0de8a8f0e0ae66aef16534406684f0
Parents: a4fe5ce
Author: Howard M. Lewis Ship <hls...@apache.org>
Authored: Sat Feb 15 14:19:39 2014 -0500
Committer: Howard M. Lewis Ship <hls...@apache.org>
Committed: Sat Feb 15 14:19:39 2014 -0500

----------------------------------------------------------------------
 .../java/org/apache/tapestry5/jpa/modules/JpaModule.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/7152f8dc/tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/modules/JpaModule.java
----------------------------------------------------------------------
diff --git 
a/tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/modules/JpaModule.java 
b/tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/modules/JpaModule.java
index ff4be4f..acb0db9 100644
--- a/tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/modules/JpaModule.java
+++ b/tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/modules/JpaModule.java
@@ -1,4 +1,4 @@
-// Copyright 2011-2013 The Apache Software Foundation
+// Copyright 2011-2014 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -180,10 +180,9 @@ public class JpaModule
     public static void startupEarly(final EntityManagerManager 
entityManagerManager, @Symbol(JpaSymbols.EARLY_START_UP)
     final boolean earlyStartup)
     {
-        if (!earlyStartup)
-            return;
-
-        entityManagerManager.getEntityManagers();
-
+        if (earlyStartup)
+        {
+            entityManagerManager.getEntityManagers();
+        }
     }
 }

Reply via email to