Java-Compiler-String-Optimierung
Posted: 25 Dec 2024, 21:36
Es scheint mir vernünftig, dass der Compiler so etwas annehmen wird:
und kompilieren Sie die beiden Strings zu einem. Ich bin mir ziemlich sicher, dass das wahr ist, aber ich würde gerne
meine Enten hintereinander haben, falls jemand das zur Sprache bringt.
Code: Select all
log.info("A really long logger message that is kind of a pain in the tucous " +
"and violates formatting standards by making the line to long");
meine Enten hintereinander haben, falls jemand das zur Sprache bringt.