rspec/rules/S2275/description.adoc

2 lines
532 B
Plaintext
Raw Normal View History

2020-12-23 14:59:06 +01:00
Because ``printf``-style format strings are interpreted at runtime, rather than validated by the Java compiler, they can contain errors that lead to unexpected behavior or runtime errors. This rule statically validates the good behavior of ``printf``-style formats when calling the ``format(...)`` methods of ``java.util.Formatter``, ``java.lang.String``, ``java.io.PrintStream``, ``MessageFormat``, and ``java.io.PrintWriter`` classes and the ``printf(...)`` methods of ``java.io.PrintStream`` or ``java.io.PrintWriter`` classes.