Skip to content

Commit c26af82

Browse files
committed
spring-projects#45 - Polishing.
Mostly trailing whitespace.
1 parent 764772c commit c26af82

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

core/src/main/java/org/springframework/plugin/core/OrderAwarePluginRegistry.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* orders {@link Plugin}s by regarding {@link org.springframework.core.Ordered} interface or
3030
* {@link org.springframework.core.annotation.Order} annotation. To alter ordering behaviour use one of the factory
3131
* methods accepting a {@link Comparator} as parameter.
32-
*
32+
*
3333
* @author Oliver Gierke
3434
*/
3535
public class OrderAwarePluginRegistry<T extends Plugin<S>, S> extends SimplePluginRegistry<T, S> {
@@ -49,7 +49,7 @@ public class OrderAwarePluginRegistry<T extends Plugin<S>, S> extends SimplePlug
4949

5050
/**
5151
* Creates a new {@link OrderAwarePluginRegistry} with the given {@link Plugin}s and {@link Comparator}.
52-
*
52+
*
5353
* @param plugins the {@link Plugin}s to be contained in the registry or {@literal null} if the registry shall be
5454
* empty initally.
5555
* @param comparator the {@link Comparator} to be used for ordering the {@link Plugin}s or {@literal null} if the
@@ -66,7 +66,7 @@ protected OrderAwarePluginRegistry(List<? extends T> plugins, Comparator<? super
6666

6767
/**
6868
* Creates a new {@link OrderAwarePluginRegistry} using the {@code #DEFAULT_COMPARATOR}.
69-
*
69+
*
7070
* @return
7171
* @since 2.0
7272
*/
@@ -77,7 +77,7 @@ public static <S, T extends Plugin<S>> OrderAwarePluginRegistry<T, S> empty() {
7777
/**
7878
* Creates a new {@link OrderAwarePluginRegistry} using the given {@link Comparator} for ordering contained
7979
* {@link Plugin}s.
80-
*
80+
*
8181
* @param comparator must not be {@literal null}.
8282
* @return
8383
* @since 2.0
@@ -91,6 +91,7 @@ public static <S, T extends Plugin<S>> OrderAwarePluginRegistry<T, S> of(Compara
9191

9292
/**
9393
* Creates a new {@link OrderAwarePluginRegistry} with the given plugins.
94+
*
9495
* @param plugins must not be {@literal null}.
9596
* @return
9697
* @since 2.0
@@ -114,7 +115,7 @@ public static <S, T extends Plugin<S>> OrderAwarePluginRegistry<T, S> of(List<?
114115
/**
115116
* Creates a new {@link OrderAwarePluginRegistry} with the given {@link Plugin}s and the order of the {@link Plugin}s
116117
* reverted.
117-
*
118+
*
118119
* @param plugins must not be {@literal null}.
119120
* @return
120121
* @since 2.0
@@ -125,7 +126,7 @@ public static <S, T extends Plugin<S>> OrderAwarePluginRegistry<T, S> ofReverse(
125126

126127
/**
127128
* Creates a new {@link OrderAwarePluginRegistry} with the given plugins.
128-
*
129+
*
129130
* @param plugins
130131
* @return
131132
* @since 2.0
@@ -219,7 +220,7 @@ protected List<T> initialize(List<T> plugins) {
219220

220221
/**
221222
* Returns a new {@link OrderAwarePluginRegistry} with the order of the plugins reverted.
222-
*
223+
*
223224
* @return
224225
*/
225226
public OrderAwarePluginRegistry<T, S> reverse() {

core/src/main/java/org/springframework/plugin/core/PluginRegistry.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Registry for {@link Plugin}s. Allows sophisticated typesafe access to implementations of interfaces extending {link
2929
* Plugin}.
30-
*
30+
*
3131
* @param <T> the concrete {@link Plugin} interface
3232
* @param <S> the delimiter type
3333
* @author Oliver Gierke
@@ -100,7 +100,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
100100
/**
101101
* Returns the first {@link Plugin} found for the given delimiter. Thus, further configured {@link Plugin}s are
102102
* ignored.
103-
*
103+
*
104104
* @param delimiter
105105
* @return a plugin for the given delimiter or {@link Optional#empty()} if none found.
106106
*/
@@ -109,7 +109,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
109109
/**
110110
* Returns the first {@link Plugin} found for the given delimiter. Thus, further configured {@link Plugin}s are
111111
* ignored.
112-
*
112+
*
113113
* @param delimiter
114114
* @return a {@link Plugin} for the given originating system or {@link Optional#empty()} if none found.
115115
* @throws IllegalArgumentException in case no {@link Plugin} for the given delimiter
@@ -119,7 +119,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
119119
/**
120120
* Returns the first {@link Plugin} found for the given delimiter. Thus, further configured {@link Plugin}s are
121121
* ignored.
122-
*
122+
*
123123
* @param delimiter
124124
* @param message a {@link Supplier} to produce an exception message in case no plugin is found.
125125
* @return a {@link Plugin} for the given originating system or {@link Optional#empty()} if none found.
@@ -129,7 +129,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
129129

130130
/**
131131
* Returns all plugins for the given delimiter.
132-
*
132+
*
133133
* @param delimiter
134134
* @return a list of plugins or an empty list if none found
135135
*/
@@ -138,7 +138,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
138138
/**
139139
* Retrieves a required plugin from the registry or throw the given exception if none can be found. If more than one
140140
* plugins are found the first one will be returned.
141-
*
141+
*
142142
* @param <E> the exception type to be thrown in case no plugin can be found.
143143
* @param delimiter
144144
* @param ex a lazy {@link Supplier} to produce an exception in case no plugin can be found.
@@ -149,7 +149,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
149149

150150
/**
151151
* Retrieves all plugins for the given delimiter or throws an exception if no plugin can be found.
152-
*
152+
*
153153
* @param <E> the exception type to be thrown.
154154
* @param delimiter
155155
* @param ex a lazy {@link Supplier} to produce an exception in case no plugin can be found.
@@ -160,7 +160,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
160160

161161
/**
162162
* Returns the first {@link Plugin} supporting the given delimiter or the given plugin if none can be found.
163-
*
163+
*
164164
* @param delimiter
165165
* @param plugin
166166
* @return a single {@link Plugin} supporting the given delimiter or the given {@link Plugin} if none found
@@ -170,7 +170,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
170170
/**
171171
* Returns the first {@link Plugin} supporting the given delimiter or the given lazily-provided plugin if none can be
172172
* found.
173-
*
173+
*
174174
* @param delimiter can be {@literal null}.
175175
* @param defaultSupplier must not be {@literal null}.
176176
* @return a single {@link Plugin} supporting the given delimiter or the given lazily provided {@link Plugin} if none
@@ -180,7 +180,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
180180

181181
/**
182182
* Returns all {@link Plugin}s supporting the given delimiter or the given plugins if none found.
183-
*
183+
*
184184
* @param delimiter
185185
* @param plugins
186186
* @return all {@link Plugin}s supporting the given delimiter or the given {@link Plugin}s if none found
@@ -189,22 +189,22 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
189189

190190
/**
191191
* Returns the number of registered plugins.
192-
*
192+
*
193193
* @return the number of plugins in the registry
194194
*/
195195
int countPlugins();
196196

197197
/**
198198
* Returns whether the registry contains a given plugin.
199-
*
199+
*
200200
* @param plugin
201201
* @return
202202
*/
203203
boolean contains(T plugin);
204204

205205
/**
206206
* Returns whether the registry contains a {@link Plugin} matching the given delimiter.
207-
*
207+
*
208208
* @param delimiter
209209
* @return
210210
*/
@@ -213,7 +213,7 @@ public static <S, T extends Plugin<S>> PluginRegistry<T, S> of(List<? extends T>
213213
/**
214214
* Returns all {@link Plugin}s contained in this registry. Will return an immutable {@link List} to prevent outside
215215
* modifications of the {@link PluginRegistry} content.
216-
*
216+
*
217217
* @return
218218
*/
219219
List<T> getPlugins();

core/src/test/java/org/springframework/plugin/core/OrderAwarePluginRegistryUnitTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/**
3434
* Unit test for {@link OrderAwarePluginRegistry} that especially concentrates on testing ordering functionality.
35-
*
35+
*
3636
* @author Oliver Gierke
3737
*/
3838
public class OrderAwarePluginRegistryUnitTest extends SimplePluginRegistryUnitTest {
@@ -126,7 +126,7 @@ private static class FirstImplementation implements TestPlugin {
126126

127127
/*
128128
* (non-Javadoc)
129-
*
129+
*
130130
* @see org.springframework.plugin.core.Plugin#supports(java.lang.Object)
131131
*/
132132
public boolean supports(String delimiter) {
@@ -140,7 +140,7 @@ private static class SecondImplementation implements TestPlugin {
140140

141141
/*
142142
* (non-Javadoc)
143-
*
143+
*
144144
* @see org.springframework.plugin.core.Plugin#supports(java.lang.Object)
145145
*/
146146
public boolean supports(String delimiter) {

0 commit comments

Comments
 (0)