All Downloads are FREE. Search and download functionalities are using the official Maven repository.

errorprone.bugpattern.FloggerArgumentToString.md Maven / Gradle / Ivy

The newest version!
Prefer to let Flogger transform your arguments to strings, instead of calling
`toString()` explicitly.

For example, prefer the following:

```java
logger.atInfo().log("hello '%s'", world);
```

instead of this, which eagerly calls `world.toString()` even if `INFO` level
logging is disabled.

```java
logger.atInfo().log("hello '%s'", world.toString());
```




© 2015 - 2025 Weber Informatics LLC | Privacy Policy