mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Avoid String allocations with Assert.state()
This commit is contained in:
+2
-1
@@ -116,7 +116,8 @@ final class HttpServiceMethod {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Assert.state(resolved, formatArgumentError(this.parameters[i], "No suitable resolver"));
|
||||
int index = i;
|
||||
Assert.state(resolved, () -> formatArgumentError(this.parameters[index], "No suitable resolver"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user