Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.

This commit is contained in:
Ilkka Seppala
2015-12-25 23:49:28 +02:00
parent 9fbb085985
commit cec9a99410
167 changed files with 1242 additions and 969 deletions

View File

@ -23,6 +23,9 @@ import java.util.Stack;
*/
public class App {
/**
* Program entry point
*/
public static void main(String[] args) {
Stack<StarMemento> states = new Stack<>();

View File

@ -11,12 +11,18 @@ public class Star {
private int ageYears;
private int massTons;
/**
* Constructor
*/
public Star(StarType startType, int startAge, int startMass) {
this.type = startType;
this.ageYears = startAge;
this.massTons = startMass;
}
/**
* Makes time pass for the star
*/
public void timePasses() {
ageYears *= 2;
massTons *= 8;