Skip to content

Commit 5a052d2

Browse files
committed
AbstractSingletonService: fix method order
See: http://imagej.net/Coding_style#Ordering_of_code_blocks
1 parent 2f5e13c commit 5a052d2

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ public ArrayList<Object> get() {
9494
});
9595
}
9696

97+
// -- Internal methods --
98+
99+
/**
100+
* Allows subclasses to exclude instances.
101+
*
102+
* @param list the initial list of instances
103+
* @return the filtered list of instances
104+
*/
105+
protected List<? extends PT> filterInstances(List<PT> list) {
106+
return list;
107+
}
108+
97109
// -- Helper methods --
98110

99111
private synchronized void initInstances() {
@@ -115,14 +127,4 @@ private synchronized void initInstances() {
115127
getPluginType().getSimpleName() + " plugins.");
116128
}
117129

118-
/**
119-
* Allows subclasses to exclude instances.
120-
*
121-
* @param list the initial list of instances
122-
* @return the filtered list of instances
123-
*/
124-
protected List<? extends PT> filterInstances(List<PT> list) {
125-
return list;
126-
}
127-
128130
}

0 commit comments

Comments
 (0)