Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
Make code style like rest of optaplanner-examples: static field up
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0ffrey committed Mar 24, 2013
1 parent dbb4689 commit 064b095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -7,6 +7,8 @@

public class Project {

private static final double TMD_MULTIPLIER = 4;

private static Collection<Integer> getStartDates(final int start, final double length) {
final int actualLength = (int) Math.ceil(length);
final Collection<Integer> startDates = new ArrayList<Integer>(actualLength);
Expand All @@ -24,8 +26,6 @@ private static Collection<Integer> getStartDates(final int start, final double l

private final List<Job> jobs;

private static final double TMD_MULTIPLIER = 4;

private final int criticalPathDuration;

private ProblemInstance parentInstance;
Expand Down
Expand Up @@ -4,6 +4,8 @@

public class Resource {

private static final AtomicInteger idGenerator = new AtomicInteger(0);

public static enum ResourceType {

RENEWABLE, NONRENEWABLE, DOUBLE_CONSTRAINED;
Expand All @@ -13,8 +15,6 @@ public static enum ResourceType {
private final int id;
private final int uniqueId;

private static final AtomicInteger idGenerator = new AtomicInteger(0);

private int capacity = -1;
private final boolean isGlobal;
private final boolean isRenewable;
Expand Down

0 comments on commit 064b095

Please sign in to comment.