Use Supplier variants of Assert
See gh-19864
This commit is contained in:
committed by
Stephane Nicoll
parent
9fbaf7611b
commit
d8e2349e47
@@ -69,7 +69,7 @@ class IndexedLayers implements Layers {
|
||||
Matcher matcher = LAYER_PATTERN.matcher(name);
|
||||
if (matcher.matches()) {
|
||||
String layer = matcher.group(1);
|
||||
Assert.state(this.layers.contains(layer), "Unexpected layer '" + layer + "'");
|
||||
Assert.state(this.layers.contains(layer), () -> "Unexpected layer '" + layer + "'");
|
||||
return layer;
|
||||
}
|
||||
return this.layers.contains(APPLICATION_LAYER) ? APPLICATION_LAYER : SPRING_BOOT_APPLICATION_LAYER;
|
||||
|
||||
Reference in New Issue
Block a user