remove unnecessary text from exception message
@@ -127,7 +127,7 @@ public abstract class FieldStats<T> implements Writeable, ToXContent {
case 5:
return "geo_point";
default:
- throw new IllegalArgumentException("Unknown type 1. " + type);
+ throw new IllegalArgumentException("Unknown type.");
}
}
@@ -768,7 +768,7 @@ public abstract class FieldStats<T> implements Writeable, ToXContent {
isSearchable, isAggregatable, min, max);
}
default:
- throw new IllegalArgumentException("Unknown type 2. " + type);
+ throw new IllegalArgumentException("Unknown type.");
}
}
