mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add BeeCP support
This commit is contained in:
@@ -28,7 +28,6 @@ public class ServiceLoaderUtil {
|
||||
*/
|
||||
public static <T> T loadFirstAvailable(Class<T> clazz) {
|
||||
final Iterator<T> iterator = load(clazz).iterator();
|
||||
//noinspection WhileLoopReplaceableByForEach
|
||||
while(iterator.hasNext()){
|
||||
try {
|
||||
return iterator.next();
|
||||
|
Reference in New Issue
Block a user