fix Precoditions.checkValueArg()

This commit is contained in:
Ben Gruver
2012-10-21 21:40:42 -07:00
parent 90a1ffeda1
commit 0aeaeecb11

View File

@ -145,7 +145,7 @@ public class Preconditions {
}
public static void checkValueArg(int valueArg, int maxValue) {
if (valueArg > 0) {
if (valueArg > maxValue) {
throw new IllegalArgumentException(
String.format("Invalid value_arg value %d for an encoded_value. Expecting 0..%d, inclusive",
valueArg, maxValue));