Use Supplier variants of Assert
See gh-19864
This commit is contained in:
committed by
Stephane Nicoll
parent
9fbaf7611b
commit
d8e2349e47
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -371,7 +371,7 @@ public class PropertiesLauncher extends Launcher {
|
||||
if (classLoader == null) {
|
||||
classLoader = newClassLoader(type, NO_PARAMS);
|
||||
}
|
||||
Assert.notNull(classLoader, "Unable to create class loader for " + className);
|
||||
Assert.notNull(classLoader, () -> "Unable to create class loader for " + className);
|
||||
return classLoader;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user