From 2c59809dd2ab8a607b032a5278ca63330988ef0d Mon Sep 17 00:00:00 2001 From: Sun Zhe <31067185+ZheSun88@users.noreply.github.com> Date: Tue, 9 Oct 2018 15:50:45 +0300 Subject: Run formatter to the code (#11227) --- .../osgi/resources/impl/VaadinResourceTrackerComponent.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'shared') diff --git a/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java b/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java index b05223052e..932de4e787 100644 --- a/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java +++ b/shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java @@ -204,9 +204,10 @@ public class VaadinResourceTrackerComponent { */ @Activate protected void activate() throws NamespaceException { - for(Delegate registration : resourceToRegistration.values()) { + for (Delegate registration : resourceToRegistration.values()) { registration.init(httpService); - httpService.registerResources(registration.alias, registration.path, registration); + httpService.registerResources(registration.alias, registration.path, + registration); } } @@ -215,10 +216,11 @@ public class VaadinResourceTrackerComponent { */ @Deactivate protected void deactivate() { - for(final Delegate registration : resourceToRegistration.values()) { + for (final Delegate registration : resourceToRegistration.values()) { unregisterResource(registration); } - for(List> registrations : contributorToRegistrations.values()) { + for (List> registrations : contributorToRegistrations + .values()) { for (ServiceRegistration reg : registrations) { reg.unregister(); } @@ -263,7 +265,8 @@ public class VaadinResourceTrackerComponent { private void registerResource(String alias, String path, Bundle bundle, Long serviceId) { - resourceToRegistration.put(serviceId, new Delegate(alias, path, bundle)); + resourceToRegistration.put(serviceId, + new Delegate(alias, path, bundle)); } private void unregisterResource(Long serviceId) { -- cgit v1.2.3