fix checkstyle
Change-Id: I94e51e898c5581ea5e246b0f0467d9417e208990
Showing
1 changed file
with
12 additions
and
9 deletions
... | @@ -45,9 +45,9 @@ import org.slf4j.Logger; | ... | @@ -45,9 +45,9 @@ import org.slf4j.Logger; |
45 | */ | 45 | */ |
46 | @Component(immediate = true) | 46 | @Component(immediate = true) |
47 | @Service | 47 | @Service |
48 | -public class DeviceManager extends | 48 | +public class DeviceManager |
49 | - AbstractProviderRegistry<DeviceProvider, DeviceProviderService> implements | 49 | + extends AbstractProviderRegistry<DeviceProvider, DeviceProviderService> |
50 | - DeviceService, DeviceAdminService, DeviceProviderRegistry { | 50 | + implements DeviceService, DeviceAdminService, DeviceProviderRegistry { |
51 | 51 | ||
52 | private static final String DEVICE_ID_NULL = "Device ID cannot be null"; | 52 | private static final String DEVICE_ID_NULL = "Device ID cannot be null"; |
53 | private static final String PORT_NUMBER_NULL = "Port number cannot be null"; | 53 | private static final String PORT_NUMBER_NULL = "Port number cannot be null"; |
... | @@ -57,7 +57,8 @@ public class DeviceManager extends | ... | @@ -57,7 +57,8 @@ public class DeviceManager extends |
57 | 57 | ||
58 | private final Logger log = getLogger(getClass()); | 58 | private final Logger log = getLogger(getClass()); |
59 | 59 | ||
60 | - protected final AbstractListenerRegistry<DeviceEvent, DeviceListener> listenerRegistry = new AbstractListenerRegistry<>(); | 60 | + protected final AbstractListenerRegistry<DeviceEvent, DeviceListener> listenerRegistry = |
61 | + new AbstractListenerRegistry<>(); | ||
61 | 62 | ||
62 | private final DeviceStoreDelegate delegate = new InternalStoreDelegate(); | 63 | private final DeviceStoreDelegate delegate = new InternalStoreDelegate(); |
63 | 64 | ||
... | @@ -174,9 +175,9 @@ public class DeviceManager extends | ... | @@ -174,9 +175,9 @@ public class DeviceManager extends |
174 | } | 175 | } |
175 | 176 | ||
176 | // Personalized device provider service issued to the supplied provider. | 177 | // Personalized device provider service issued to the supplied provider. |
177 | - private class InternalDeviceProviderService extends | 178 | + private class InternalDeviceProviderService |
178 | - AbstractProviderService<DeviceProvider> implements | 179 | + extends AbstractProviderService<DeviceProvider> |
179 | - DeviceProviderService { | 180 | + implements DeviceProviderService { |
180 | 181 | ||
181 | InternalDeviceProviderService(DeviceProvider provider) { | 182 | InternalDeviceProviderService(DeviceProvider provider) { |
182 | super(provider); | 183 | super(provider); |
... | @@ -258,7 +259,8 @@ public class DeviceManager extends | ... | @@ -258,7 +259,8 @@ public class DeviceManager extends |
258 | } | 259 | } |
259 | 260 | ||
260 | // Intercepts mastership events | 261 | // Intercepts mastership events |
261 | - private class InternalMastershipListener implements MastershipListener { | 262 | + private class InternalMastershipListener |
263 | + implements MastershipListener { | ||
262 | @Override | 264 | @Override |
263 | public void event(MastershipEvent event) { | 265 | public void event(MastershipEvent event) { |
264 | if (event.master().equals(clusterService.getLocalNode().id())) { | 266 | if (event.master().equals(clusterService.getLocalNode().id())) { |
... | @@ -273,7 +275,8 @@ public class DeviceManager extends | ... | @@ -273,7 +275,8 @@ public class DeviceManager extends |
273 | } | 275 | } |
274 | 276 | ||
275 | // Store delegate to re-post events emitted from the store. | 277 | // Store delegate to re-post events emitted from the store. |
276 | - private class InternalStoreDelegate implements DeviceStoreDelegate { | 278 | + private class InternalStoreDelegate |
279 | + implements DeviceStoreDelegate { | ||
277 | @Override | 280 | @Override |
278 | public void notify(DeviceEvent event) { | 281 | public void notify(DeviceEvent event) { |
279 | post(event); | 282 | post(event); | ... | ... |
-
Please register or login to post a comment