X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2FAbstractLockedPlatformMBeanServerTest.java;h=ced512203e3a7b967fdbad0903cf0e5100c832db;hp=4c896e7e830cc67db4914495dba4d9bb8152dace;hb=f43b01b81319959b1907e3e04537f5169e7f33d8;hpb=597ffbbfe362fcea479b7fdb52f685289b7ea5fd diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/AbstractLockedPlatformMBeanServerTest.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/AbstractLockedPlatformMBeanServerTest.java index 4c896e7e83..ced512203e 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/AbstractLockedPlatformMBeanServerTest.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/impl/AbstractLockedPlatformMBeanServerTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -17,26 +17,23 @@ import org.junit.Before; * Each test that works with platform MBeanServer should extend this class. */ public abstract class AbstractLockedPlatformMBeanServerTest { - private static final ReentrantLock lock = new ReentrantLock(); + private static final ReentrantLock LOCK = new ReentrantLock(); protected static MBeanServer platformMBeanServer = ManagementFactory .getPlatformMBeanServer(); @Before public void acquireLock() { - lock.lock(); + LOCK.lock(); } @After public void unlock() { - lock.unlock(); + LOCK.unlock(); } public static class SimpleBean implements SimpleBeanMBean { - } - public static interface SimpleBeanMBean { - + public interface SimpleBeanMBean { } - }