error if path is missing and default is not supplied

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@391644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-04-05 15:44:14 +00:00
parent 431d3b7518
commit 022a7db1a4
1 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ public class Config {
}
public int getInt(String path) {
return Integer.parseInt(getVal(path, false));
return Integer.parseInt(getVal(path, true));
}
public int getInt(String path, int def) {
@ -153,7 +153,7 @@ public class Config {
}
public boolean getBool(String path) {
return Boolean.parseBoolean(getVal(path, false));
return Boolean.parseBoolean(getVal(path, true));
}
public boolean getBool(String path, boolean def) {
@ -162,7 +162,7 @@ public class Config {
}
public float getFloat(String path) {
return Float.parseFloat(getVal(path, false));
return Float.parseFloat(getVal(path, true));
}
public float getFloat(String path, float def) {