[Java] Remove non-raylet code in Java. (#2828)

This commit is contained in:
Wang Qing
2018-09-06 14:54:13 +08:00
committed by Hao Chen
parent d81605e9e7
commit 7e13e1fd49
23 changed files with 159 additions and 785 deletions
@@ -324,9 +324,8 @@ public class ConfigReader {
String sv = getStringValue(section, fld.getName(), defaultFldValue.toString(), comment);
Object v;
try {
v = fld.getType().getConstructor(new Class<?>[] {String.class}).newInstance(sv);
} catch (NoSuchMethodException | SecurityException | InstantiationException
| InvocationTargetException e) {
v = UniqueId.fromHexString(sv);
} catch (IllegalArgumentException e) {
System.err.println(
section + "." + fld.getName() + "'s format (" + sv + ") is invalid, default to "
+ defaultFldValue.toString());