diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-08-03 11:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-03 11:28:43 +0200 |
commit | aa1d25470bec254f0013f7fa7014e0ba7c37c654 (patch) | |
tree | 330fa58ed42792c5d9aefe5fa617332b1f277830 /vdslib | |
parent | f230096ade05c1f494371c5bca0f0996976f2fa7 (diff) |
Revert "Add maxRedundancy to exception message."
Diffstat (limited to 'vdslib')
-rw-r--r-- | vdslib/src/main/java/com/yahoo/vdslib/distribution/Group.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vdslib/src/main/java/com/yahoo/vdslib/distribution/Group.java b/vdslib/src/main/java/com/yahoo/vdslib/distribution/Group.java index 680021893f7..e3caaeb455c 100644 --- a/vdslib/src/main/java/com/yahoo/vdslib/distribution/Group.java +++ b/vdslib/src/main/java/com/yahoo/vdslib/distribution/Group.java @@ -237,9 +237,7 @@ public class Group implements Comparable<Group> { } this.distributionSpec = distributionSpec; // Create the pre calculated results - if (maxRedundancy <= 0 || maxRedundancy > 255) { - throw new IllegalArgumentException("The max redundancy (" + maxRedundancy + ") must be a positive number in the range 1-255."); - } + if (maxRedundancy <= 0 || maxRedundancy > 255) throw new IllegalArgumentException("The max redundancy must be a positive number in the range 1-255."); int asterixCount = distributionSpec.length - firstAsterix; int[][] preCalculations = new int[maxRedundancy + 1][]; for (int i=1; i<=maxRedundancy; ++i) { |