mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 00:59:02 +00:00
deps: Refactor dependencies (#3224)
* remove spring dep move junit, logging, mockito under dep mgmt * upgrade anti-corruption-layer deps * async method invocation * balking, bloc * bridge to bytecode * caching * callback - cqrs * component - health check * hexagonal - metadata mapping * rest of the patterns * remove checkstyle, take spotless into use
This commit is contained in:
@@ -27,9 +27,7 @@ package com.iluwatar.doubledispatch;
|
||||
import com.iluwatar.doubledispatch.constants.AppConstants;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* Space station Mir game object.
|
||||
*/
|
||||
/** Space station Mir game object. */
|
||||
@Slf4j
|
||||
public class SpaceStationMir extends GameObject {
|
||||
|
||||
@@ -44,10 +42,12 @@ public class SpaceStationMir extends GameObject {
|
||||
|
||||
@Override
|
||||
public void collisionResolve(FlamingAsteroid asteroid) {
|
||||
LOGGER.info(AppConstants.HITS + " {} is damaged! {} is set on fire!", asteroid.getClass()
|
||||
.getSimpleName(),
|
||||
this.getClass().getSimpleName(), this.getClass().getSimpleName(), this.getClass()
|
||||
.getSimpleName());
|
||||
LOGGER.info(
|
||||
AppConstants.HITS + " {} is damaged! {} is set on fire!",
|
||||
asteroid.getClass().getSimpleName(),
|
||||
this.getClass().getSimpleName(),
|
||||
this.getClass().getSimpleName(),
|
||||
this.getClass().getSimpleName());
|
||||
setDamaged(true);
|
||||
setOnFire(true);
|
||||
}
|
||||
@@ -71,7 +71,11 @@ public class SpaceStationMir extends GameObject {
|
||||
}
|
||||
|
||||
private void logHits(GameObject gameObject) {
|
||||
LOGGER.info(AppConstants.HITS, " {} is damaged!", gameObject.getClass().getSimpleName(),
|
||||
this.getClass().getSimpleName(), this.getClass().getSimpleName());
|
||||
LOGGER.info(
|
||||
AppConstants.HITS,
|
||||
" {} is damaged!",
|
||||
gameObject.getClass().getSimpleName(),
|
||||
this.getClass().getSimpleName(),
|
||||
this.getClass().getSimpleName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user