Lines Matching defs:value
34 /** Thrown when two different constants have the same value. */
37 public DuplicateConstantError(String name1, String name2, int value) {
38 super(String.format("Duplicate constant value: both %s and %s = %d",
39 name1, name2, value));
83 // Fetch the constant's value.
84 int value;
86 value = field.getInt(null);
89 // initializer failed and we have no idea what its value is.
95 String previousName = messageNames.get(value);
97 throw new DuplicateConstantError(name, previousName, value);
100 messageNames.put(value, name);
103 className, name, value));