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 e2c49f1 commit cb92f63
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 cb92f63

Please sign in to comment.