aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorSun Zhe <31067185+ZheSun88@users.noreply.github.com>2018-10-09 15:50:45 +0300
committerGitHub <noreply@github.com>2018-10-09 15:50:45 +0300
commit2c59809dd2ab8a607b032a5278ca63330988ef0d (patch)
treecb1a6970f37e9a91e558889fae82b3fdefabd3f7 /shared
parent68fef02ce461427b9796bd16f7205eaf91fa4537 (diff)
downloadvaadin-framework-2c59809dd2ab8a607b032a5278ca63330988ef0d.tar.gz
vaadin-framework-2c59809dd2ab8a607b032a5278ca63330988ef0d.zip
Run formatter to the code (#11227)
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java13
1 files changed, 8 insertions, 5 deletions
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<ServiceRegistration<? extends OsgiVaadinResource>> registrations : contributorToRegistrations.values()) {
+ for (List<ServiceRegistration<? extends OsgiVaadinResource>> registrations : contributorToRegistrations
+ .values()) {
for (ServiceRegistration<? extends OsgiVaadinResource> 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) {