Added in JDK 15 is the ability for call`formatted` on a String. https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html#formatted(java.lang.Object...) `"foo %s".formatted("bar");` It would be great if the https://errorprone.info/bugpattern/FormatString check was enforced on this.
Added in JDK 15 is the ability for call
formattedon a String.https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html#formatted(java.lang.Object...)
"foo %s".formatted("bar");It would be great if the https://errorprone.info/bugpattern/FormatString check was enforced on this.