refactoring #1012: Format specifiers should be used instead of string concatenation. (#2715)

* refactoring #1012: Format specifiers should be used instead of string concatenation.

* refactoring #1012: Format specifiers should be used instead of string concatenation.

* refactoring #1012: Remove isInfoEnabled check
This commit is contained in:
kongleong86
2023-12-02 12:25:00 +00:00
committed by GitHub
parent a82966f202
commit 301317533e
9 changed files with 19 additions and 19 deletions
@@ -47,7 +47,7 @@ public abstract class Superpower {
* @param z Z coordinate.
*/
protected void move(double x, double y, double z) {
logger.info("Move to ( " + x + ", " + y + ", " + z + " )");
logger.info("Move to ( {}, {}, {} )", x, y, z);
}
/**
@@ -56,7 +56,7 @@ public abstract class Superpower {
* @param volume Value of volume.
*/
protected void playSound(String soundName, int volume) {
logger.info("Play " + soundName + " with volume " + volume);
logger.info("Play {} with volume {}", soundName, volume);
}
/**
@@ -65,6 +65,6 @@ public abstract class Superpower {
* @param count Count of particles to be spawned.
*/
protected void spawnParticles(String particleType, int count) {
logger.info("Spawn " + count + " particle with type " + particleType);
logger.info("Spawn {} particle with type {}", count, particleType);
}
}