mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
This commit is contained in:
1 parent
9fbb085985
commit
cec9a99410
167 files changed
+1242
-969
No files matched your search
@@ -13,6 +13,9 @@ package com.iluwatar.state;
|
||||
*/
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
|
||||
Mammoth mammoth = new Mammoth();
|
||||
|
||||
@@ -13,6 +13,9 @@ public class Mammoth {
|
||||
state = new PeacefulState(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes time pass for the mammoth
|
||||
*/
|
||||
public void timePasses() {
|
||||
if (state.getClass().equals(PeacefulState.class)) {
|
||||
changeStateTo(new AngryState(this));
|
||||
|
||||
Reference in new issue
Block a user