]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5793: Further localize scope of three variables.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 21 Apr 2015 23:15:48 +0000 (16:15 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 21 Apr 2015 23:15:48 +0000 (16:15 -0700)
3rdparty/nuxeo/nuxeo-platform-listener/updateobjectlocationonmove/src/main/java/org/collectionspace/services/listener/AbstractUpdateObjectLocationValues.java

index 09bf099b4ffbb676e396e081c0a40d7bdb85a409..5c2cc9cf813324a8231e05c159ca89650ac76578 100644 (file)
@@ -54,9 +54,6 @@ public abstract class AbstractUpdateObjectLocationValues implements EventListene
     private final static String ACTIVE_DOCUMENT_WHERE_CLAUSE_FRAGMENT =
             "AND (ecm:currentLifeCycleState <> 'deleted') "
             + NONVERSIONED_NONPROXY_DOCUMENT_WHERE_CLAUSE_FRAGMENT;
-    private boolean isAboutToBeRemovedEvent;
-    private String movementCsidToFilter;
-    private String eventType;
     
     public enum EventNotificationDocumentType {
         // Document type about which we've received a notification
@@ -66,6 +63,10 @@ public abstract class AbstractUpdateObjectLocationValues implements EventListene
 
     @Override
     public void handleEvent(Event event) throws ClientException {
+    
+        boolean isAboutToBeRemovedEvent = false;
+        String movementCsidToFilter = "";
+        String eventType = "";
 
         logger.trace("In handleEvent in UpdateObjectLocationOnMove ...");
 
@@ -84,7 +85,6 @@ public abstract class AbstractUpdateObjectLocationValues implements EventListene
         if (logger.isTraceEnabled()) {
             logger.trace("A(n) " + eventType + " event was received by UpdateObjectLocationOnMove ...");
         }
-        isAboutToBeRemovedEvent = false;
         if (eventType.equals(DocumentEventTypes.ABOUT_TO_REMOVE)) {
             isAboutToBeRemovedEvent = true;
         }