[java-opensaml COMMIT] /trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/JPAStorageService.java

noreply at shibboleth.net noreply at shibboleth.net
Wed Feb 18 10:02:18 EST 2015


Author: dfisher
Date: Wed Feb 18 10:02:17 2015
New Revision: 4229

URL: http://svn.shibboleth.net/view/java-opensaml?rev=4229&view=rev
Log:
Incorrect variable initialization for a do while loop.

Modified:
    trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/JPAStorageService.java

Modified: trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/JPAStorageService.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/JPAStorageService.java?rev=4229&r1=4228&r2=4229&view=diff
==============================================================================
--- trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/JPAStorageService.java (original)
+++ trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/JPAStorageService.java Wed Feb 18 10:02:17 2015
@@ -111,7 +111,7 @@
             @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException {
         EntityManager manager = null;
         try {
-            int retry = 0;
+            int retry = -1;
             RollbackException lastThrown = null;
             do {
                 EntityTransaction transaction = null;
@@ -397,7 +397,7 @@
             @Nullable @Positive final Long expiration) throws IOException, VersionMismatchException {
         EntityManager manager = null;
         try {
-            int retry = 0;
+            int retry = -1;
             RollbackException lastThrown = null;
             do {
                 EntityTransaction transaction = null;
@@ -506,7 +506,7 @@
             @Nonnull @NotEmpty final String key) throws IOException, VersionMismatchException {
         EntityManager manager = null;
         try {
-            int retry = 0;
+            int retry = -1;
             RollbackException lastThrown = null;
             do {
                 EntityTransaction transaction = null;
@@ -573,7 +573,7 @@
             @Nullable @Positive final Long expiration) throws IOException {
         EntityManager manager = null;
         try {
-            int retry = 0;
+            int retry = -1;
             RollbackException lastThrown = null;
             do {
                 EntityTransaction transaction = null;
@@ -658,7 +658,7 @@
             throws IOException {
         EntityManager manager = null;
         try {
-            int retry = 0;
+            int retry = -1;
             RollbackException lastThrown = null;
             do {
                 EntityTransaction transaction = null;



More information about the commits mailing list