Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Oct 3, 2024
1 parent 76cd6d3 commit 820f108
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public static <T> T getNewInstanceFromFactory(Class<? extends Supplier<T>> clazz
ServiceLoader::load);
if (sl.stream().count() != 1) {
throw new IllegalArgumentException(
String.format("Expected exactly one implementation of %s. Found %d.", clazz.getName(), sl.stream().count()));
String.format("Expected exactly one implementation of %s. Found %d.", clazz.getName(),
sl.stream().count()));
}
return sl.iterator().next().get();
}
Expand Down

0 comments on commit 820f108

Please sign in to comment.