From: Aron Roberts Date: Tue, 21 Apr 2015 23:15:48 +0000 (-0700) Subject: CSPACE-5793: Further localize scope of three variables. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=54e3c9df45ef0f1f2d799b046c818cc556a809da;p=tmp%2Fjakarta-migration.git CSPACE-5793: Further localize scope of three variables. --- diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/updateobjectlocationonmove/src/main/java/org/collectionspace/services/listener/AbstractUpdateObjectLocationValues.java b/3rdparty/nuxeo/nuxeo-platform-listener/updateobjectlocationonmove/src/main/java/org/collectionspace/services/listener/AbstractUpdateObjectLocationValues.java index 09bf099b4..5c2cc9cf8 100644 --- a/3rdparty/nuxeo/nuxeo-platform-listener/updateobjectlocationonmove/src/main/java/org/collectionspace/services/listener/AbstractUpdateObjectLocationValues.java +++ b/3rdparty/nuxeo/nuxeo-platform-listener/updateobjectlocationonmove/src/main/java/org/collectionspace/services/listener/AbstractUpdateObjectLocationValues.java @@ -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; }