Skip to content

Commit

Permalink
Merge pull request #657 from cicirello/fix
Browse files Browse the repository at this point in the history
Fixed constants that should be static fields
  • Loading branch information
cicirello authored Aug 4, 2023
2 parents d4e7175 + 705a3b0 commit 49ba4f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Fixed double comparison in SolutionCostPair.compareTo(SolutionCostPair).
* Added missing equals and hashCode methods to SolutionCostPair.
* Fixed end of line characters when writing weighted static scheduling instances to file.
* WeightedStaticScheduling: fixed constants that should be static fields.

### Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public final class WeightedStaticScheduling implements SingleMachineSchedulingPr
private final int[] duedates;
private final int[] weights;

private final int PROCESS_TIME_SPAN = MAX_PROCESS_TIME - MIN_PROCESS_TIME + 1;
private final int WEIGHT_SPAN = MAX_WEIGHT - MIN_WEIGHT + 1;
private static final int PROCESS_TIME_SPAN = MAX_PROCESS_TIME - MIN_PROCESS_TIME + 1;
private static final int WEIGHT_SPAN = MAX_WEIGHT - MIN_WEIGHT + 1;

/**
* Generates random single machine scheduling problem instances.
Expand Down

0 comments on commit 49ba4f3

Please sign in to comment.