Skip to content

Commit 2c09289

Browse files
committed
Apply mvn formatter:format
1 parent c720bf0 commit 2c09289

File tree

778 files changed

+11574
-10482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

778 files changed

+11574
-10482
lines changed

src/main/java/org/scijava/AbstractBasicDetails.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -36,7 +36,7 @@
3636

3737
/**
3838
* Abstract superclass of {@link BasicDetails} implementations.
39-
*
39+
*
4040
* @author Curtis Rueden
4141
*/
4242
public abstract class AbstractBasicDetails implements BasicDetails {

src/main/java/org/scijava/AbstractContextual.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -35,11 +35,11 @@
3535
/**
3636
* Abstract base class for {@link Contextual} objects.
3737
* <p>
38-
* Delegates to {@link Context#inject(Object)} to do the actual work of
39-
* setting the context, injecting service parameters, and registering
38+
* Delegates to {@link Context#inject(Object)} to do the actual work of setting
39+
* the context, injecting service parameters, and registering
4040
* {@link EventHandler} methods as event subscribers.
4141
* </p>
42-
*
42+
*
4343
* @author Curtis Rueden
4444
* @see Context#inject(Object)
4545
*/

src/main/java/org/scijava/AbstractGateway.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -67,7 +67,7 @@
6767

6868
/**
6969
* Abstract superclass for {@link Gateway} implementations.
70-
*
70+
*
7171
* @author Mark Hiner
7272
* @author Curtis Rueden
7373
*/
@@ -191,7 +191,7 @@ public InputService input() {
191191
public IOService io() {
192192
return get(IOService.class);
193193
}
194-
194+
195195
@Override
196196
public LocationService location() {
197197
return get(LocationService.class);

src/main/java/org/scijava/AbstractUIDetails.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -33,10 +33,12 @@
3333

3434
/**
3535
* Abstract superclass of {@link UIDetails} implementations.
36-
*
36+
*
3737
* @author Curtis Rueden
3838
*/
39-
public abstract class AbstractUIDetails extends AbstractBasicDetails implements UIDetails {
39+
public abstract class AbstractUIDetails extends AbstractBasicDetails implements
40+
UIDetails
41+
{
4042

4143
/** Path to this object's suggested position in the menu structure. */
4244
private MenuPath menuPath;

src/main/java/org/scijava/BasicDetails.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -32,7 +32,7 @@
3232
/**
3333
* An interface defining basic characteristics including name, label,
3434
* description, and a table of key/value pairs.
35-
*
35+
*
3636
* @author Curtis Rueden
3737
*/
3838
public interface BasicDetails extends Named {

src/main/java/org/scijava/Cancelable.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* An operation that can be canceled.
34-
*
34+
*
3535
* @author Curtis Rueden
3636
*/
3737
public interface Cancelable {
@@ -48,14 +48,14 @@ public interface Cancelable {
4848
* during execution, and stop doing whatever it is doing if the flag has been
4949
* tripped.
5050
* </p>
51-
*
51+
*
5252
* @param reason A message describing why the operation is being canceled.
5353
*/
5454
void cancel(String reason);
5555

5656
/**
5757
* Gets a message describing why the operation was canceled.
58-
*
58+
*
5959
* @return The reason for cancelation, which may be null if no reason was
6060
* given, or if the operation was not in fact canceled.
6161
*/

src/main/java/org/scijava/Context.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -110,8 +110,8 @@ public class Context implements Disposable, AutoCloseable {
110110
private boolean strict;
111111

112112
/**
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.
115115
*/
116116
private boolean disposed;
117117

@@ -270,8 +270,8 @@ public Context(final Collection<Class<? extends Service>> serviceClasses,
270270
* NB: Instiantiation of a Context has an implied requirement of a
271271
* corresponding call to {@link Context#dispose()} at the end of the SciJava
272272
* 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}.
275275
* </p>
276276
*
277277
* @param serviceClasses A collection of types that implement the
@@ -442,7 +442,7 @@ public void inject(final Object o) {
442442
* values would not, without needing to hardcode type comparison checks
443443
* against the {@link Service} and {@link Context} types.
444444
* </p>
445-
*
445+
*
446446
* @param type The type of the @{@link Parameter}-annotated field.
447447
* @return True iff a member field of the given type would have its value
448448
* assigned.
@@ -483,7 +483,7 @@ public static List<Class<? extends Service>> serviceClassList(
483483
/**
484484
* Gets the class loader to use. This will be the current thread's context
485485
* class loader if non-null; otherwise it will be the system class loader.
486-
*
486+
*
487487
* @see Thread#getContextClassLoader()
488488
* @see ClassLoader#getSystemClassLoader()
489489
*/
@@ -615,7 +615,8 @@ private synchronized void doDispose(final boolean announce) {
615615
CONTEXTS.remove(this);
616616
if (announce) {
617617
final EventService eventService = getService(EventService.class);
618-
if (eventService != null) eventService.publish(new ContextDisposingEvent());
618+
if (eventService != null) eventService.publish(
619+
new ContextDisposingEvent());
619620
}
620621

621622
// NB: Dispose services in reverse order.

src/main/java/org/scijava/Contextual.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -34,15 +34,15 @@
3434

3535
/**
3636
* An object that belongs to a SciJava application context.
37-
*
37+
*
3838
* @author Lee Kamentsky
3939
* @author Curtis Rueden
4040
*/
4141
public interface Contextual {
4242

4343
/**
4444
* Gets the application context to which the object belongs.
45-
*
45+
*
4646
* @see #getContext()
4747
* @throws NullContextException if the context has not yet been set via
4848
* {@link #setContext(Context)}.
@@ -52,7 +52,7 @@ public interface Contextual {
5252
/**
5353
* Gets the application context to which the object belongs, or null if
5454
* {@link #setContext(Context)} has not yet been called on this object.
55-
*
55+
*
5656
* @see #context()
5757
*/
5858
Context getContext();
@@ -65,7 +65,7 @@ public interface Contextual {
6565
* objects do not support later alteration of the context, and will throw
6666
* {@link IllegalStateException} if this method is invoked again.
6767
* </p>
68-
*
68+
*
6969
* @see Context#inject(Object)
7070
* @throws IllegalStateException If the object already has a context.
7171
* @throws IllegalArgumentException If the object has a required
@@ -76,5 +76,4 @@ default void setContext(final Context context) {
7676
context.inject(this);
7777
}
7878

79-
8079
}

src/main/java/org/scijava/Disposable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* An object that knows how to clean up after itself.
34-
*
34+
*
3535
* @author Curtis Rueden
3636
*/
3737
public interface Disposable {

0 commit comments

Comments
 (0)