|
6 | 6 | * %% |
7 | 7 | * Redistribution and use in source and binary forms, with or without |
8 | 8 | * modification, are permitted provided that the following conditions are met: |
9 | | - * |
| 9 | + * |
10 | 10 | * 1. Redistributions of source code must retain the above copyright notice, |
11 | 11 | * this list of conditions and the following disclaimer. |
12 | 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
13 | 13 | * this list of conditions and the following disclaimer in the documentation |
14 | 14 | * and/or other materials provided with the distribution. |
15 | | - * |
| 15 | + * |
16 | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
17 | 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
18 | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
@@ -110,8 +110,8 @@ public class Context implements Disposable, AutoCloseable { |
110 | 110 | private boolean strict; |
111 | 111 |
|
112 | 112 | /** |
113 | | - * False if the context is currently active; true if the context |
114 | | - * has already been disposed, or is in the process of being disposed. |
| 113 | + * False if the context is currently active; true if the context has already |
| 114 | + * been disposed, or is in the process of being disposed. |
115 | 115 | */ |
116 | 116 | private boolean disposed; |
117 | 117 |
|
@@ -270,8 +270,8 @@ public Context(final Collection<Class<? extends Service>> serviceClasses, |
270 | 270 | * NB: Instiantiation of a Context has an implied requirement of a |
271 | 271 | * corresponding call to {@link Context#dispose()} at the end of the SciJava |
272 | 272 | * applicaton's lifecycle. This cleans up any remaining resources and allows |
273 | | - * the JVM to exit gracefully. This is called automatically when constructed as |
274 | | - * an {@link AutoCloseable}. |
| 273 | + * the JVM to exit gracefully. This is called automatically when constructed |
| 274 | + * as an {@link AutoCloseable}. |
275 | 275 | * </p> |
276 | 276 | * |
277 | 277 | * @param serviceClasses A collection of types that implement the |
@@ -442,7 +442,7 @@ public void inject(final Object o) { |
442 | 442 | * values would not, without needing to hardcode type comparison checks |
443 | 443 | * against the {@link Service} and {@link Context} types. |
444 | 444 | * </p> |
445 | | - * |
| 445 | + * |
446 | 446 | * @param type The type of the @{@link Parameter}-annotated field. |
447 | 447 | * @return True iff a member field of the given type would have its value |
448 | 448 | * assigned. |
@@ -483,7 +483,7 @@ public static List<Class<? extends Service>> serviceClassList( |
483 | 483 | /** |
484 | 484 | * Gets the class loader to use. This will be the current thread's context |
485 | 485 | * class loader if non-null; otherwise it will be the system class loader. |
486 | | - * |
| 486 | + * |
487 | 487 | * @see Thread#getContextClassLoader() |
488 | 488 | * @see ClassLoader#getSystemClassLoader() |
489 | 489 | */ |
@@ -615,7 +615,8 @@ private synchronized void doDispose(final boolean announce) { |
615 | 615 | CONTEXTS.remove(this); |
616 | 616 | if (announce) { |
617 | 617 | final EventService eventService = getService(EventService.class); |
618 | | - if (eventService != null) eventService.publish(new ContextDisposingEvent()); |
| 618 | + if (eventService != null) eventService.publish( |
| 619 | + new ContextDisposingEvent()); |
619 | 620 | } |
620 | 621 |
|
621 | 622 | // NB: Dispose services in reverse order. |
|
0 commit comments