Skip to content

Commit

Permalink
Context: code formatting
Browse files Browse the repository at this point in the history
Using the ImageJ style preferences
  • Loading branch information
hinerm committed Aug 14, 2020
1 parent 6d6eec5 commit 9970cef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/scijava/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ public static List<Class<? extends Service>> serviceClassList(
* @see ClassLoader#getSystemClassLoader()
*/
public static ClassLoader getClassLoader() {
final ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
final ClassLoader contextCL = Thread.currentThread()
.getContextClassLoader();
return contextCL != null ? contextCL : ClassLoader.getSystemClassLoader();
}

Expand Down Expand Up @@ -570,8 +571,8 @@ private static PluginIndex plugins(final boolean empty) {
}

private static List<Class<? extends Service>> services(final boolean empty) {
if (empty) return Collections.<Class<? extends Service>>emptyList();
return Arrays.<Class<? extends Service>>asList(Service.class);
if (empty) return Collections.<Class<? extends Service>> emptyList();
return Arrays.<Class<? extends Service>> asList(Service.class);
}

private static boolean strict() {
Expand Down

0 comments on commit 9970cef

Please sign in to comment.