Use Supplier variants of Assert

See gh-19864
This commit is contained in:
dreis2211
2020-01-23 07:44:54 +01:00
committed by Stephane Nicoll
parent 9fbaf7611b
commit d8e2349e47
18 changed files with 28 additions and 27 deletions

View File

@@ -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;
}