Avoid String allocations with Assert.isTrue()
This commit is contained in:
@@ -177,7 +177,7 @@ public abstract class DataBufferUtils {
|
||||
if (options.length > 0) {
|
||||
for (OpenOption option : options) {
|
||||
Assert.isTrue(!(option == StandardOpenOption.APPEND || option == StandardOpenOption.WRITE),
|
||||
"'" + option + "' not allowed");
|
||||
() -> "'" + option + "' not allowed");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user