mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 06:59:29 +00:00
* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user