Code improvements.

This commit is contained in:
Ilkka Seppala
2015-05-17 21:46:51 +03:00
parent 8b8b81f26d
commit 8cc843465b
4 changed files with 7 additions and 7 deletions

View File

@@ -9,10 +9,10 @@ public abstract class Task {
private static int nextId = 1;
private int id;
private int timeMs;
private final int id;
private final int timeMs;
public Task(int timeMs) {
public Task(final int timeMs) {
this.id = nextId++;
this.timeMs = timeMs;
}