Skip to content

Commit d26aed6

Browse files
committed
AbstractSingletonService: add final keywords
1 parent 6b1fd5f commit d26aed6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/scijava/plugin/AbstractSingletonService.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public ArrayList<Object> get() {
102102
* @param list the initial list of instances
103103
* @return the filtered list of instances
104104
*/
105-
protected List<? extends PT> filterInstances(List<PT> list) {
105+
protected List<? extends PT> filterInstances(final List<PT> list) {
106106
return list;
107107
}
108108

@@ -117,9 +117,10 @@ private synchronized void initInstances() {
117117

118118
instanceMap = new HashMap<Class<? extends PT>, PT>();
119119

120-
for (PT plugin : instances) {
120+
for (final PT plugin : instances) {
121121
@SuppressWarnings("unchecked")
122-
Class<? extends PT> ptClass = (Class<? extends PT>) plugin.getClass();
122+
final Class<? extends PT> ptClass =
123+
(Class<? extends PT>) plugin.getClass();
123124
instanceMap.put(ptClass, plugin);
124125
}
125126

0 commit comments

Comments
 (0)