From: Aron Roberts Date: Fri, 17 Apr 2015 23:18:37 +0000 (-0700) Subject: CSPACE-5973: Reverted erroneous move of variable declaration inside logging block. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=2eac612f4b1b181861ed4339f3a3e23898b50e2f;p=tmp%2Fjakarta-migration.git CSPACE-5973: Reverted erroneous move of variable declaration inside logging block. --- 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 f300f9e5f..76ab41f6e 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 @@ -80,11 +80,10 @@ public abstract class AbstractUpdateObjectLocationValues implements EventListene DocumentEventContext docEventContext = (DocumentEventContext) eventContext; DocumentModel docModel = docEventContext.getSourceDocument(); + eventType = event.getName(); if (logger.isTraceEnabled()) { - eventType = event.getName(); logger.trace("A(n) " + eventType + " event was received by UpdateObjectLocationOnMove ..."); } - if (eventType.equals(DocumentEventTypes.ABOUT_TO_REMOVE)) { isAboutToBeRemovedEvent = true; }