You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/02/09 21:45:32 UTC

svn commit: r1069079 - /ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java

Author: mrisaliti
Date: Wed Feb  9 20:45:32 2011
New Revision: 1069079

URL: http://svn.apache.org/viewvc?rev=1069079&view=rev
Log:
Remove a compile warning/add some @SuprpressWarning("serial") in EntitySyncContext (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java

Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java?rev=1069079&r1=1069078&r2=1069079&view=diff
==============================================================================
--- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java (original)
+++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java Wed Feb  9 20:45:32 2011
@@ -1070,13 +1070,14 @@ public class EntitySyncContext {
     /**
      * Static method to obtain a list of entity names which will be synchronized
      */
-    public static Set getEntitySyncModelNamesToUse(LocalDispatcher dispatcher, String entitySyncId) throws SyncDataErrorException, SyncAbortException {
+    public static Set<String> getEntitySyncModelNamesToUse(LocalDispatcher dispatcher, String entitySyncId) throws SyncDataErrorException, SyncAbortException {
         DispatchContext dctx = dispatcher.getDispatchContext();
         EntitySyncContext ctx = new EntitySyncContext(dctx, UtilMisc.toMap("entitySyncId", entitySyncId));
         return ctx.makeEntityNameToUseSet();
     }
 
     /** This class signifies an abort condition, so the state and such of the EntitySync value in the datasource should not be changed */
+    @SuppressWarnings("serial")
     public static class SyncAbortException extends GeneralServiceException {
         public SyncAbortException() {
             super();
@@ -1099,6 +1100,7 @@ public class EntitySyncContext {
         }
     }
 
+    @SuppressWarnings("serial")
     public static abstract class SyncErrorException extends GeneralServiceException {
         public SyncErrorException() { super(); }
         public SyncErrorException(String str) { super(str); }
@@ -1109,6 +1111,7 @@ public class EntitySyncContext {
     }
 
     /** This class signifies an error condition, so the state of the EntitySync value and the EntitySyncHistory value in the datasource should be changed to reflect the error */
+    @SuppressWarnings("serial")
     public static class SyncOtherErrorException extends SyncErrorException {
         public SyncOtherErrorException() { super(); }
         public SyncOtherErrorException(String str) { super(str); }
@@ -1126,6 +1129,7 @@ public class EntitySyncContext {
     }
 
     /** This class signifies an error condition, so the state of the EntitySync value and the EntitySyncHistory value in the datasource should be changed to reflect the error */
+    @SuppressWarnings("serial")
     public static class SyncDataErrorException extends SyncErrorException {
         public SyncDataErrorException() { super(); }
         public SyncDataErrorException(String str) { super(str); }
@@ -1143,6 +1147,7 @@ public class EntitySyncContext {
     }
 
     /** This class signifies an error condition, so the state of the EntitySync value and the EntitySyncHistory value in the datasource should be changed to reflect the error */
+    @SuppressWarnings("serial")
     public static class SyncServiceErrorException extends SyncErrorException {
         public SyncServiceErrorException() { super(); }
         public SyncServiceErrorException(String str) { super(str); }