@@ -796,6 +796,7 @@ private void typeWarning(String key, Object value, String className,
796796 * no mapping of the desired type exists for the given key.
797797 *
798798 * @param key a String
799+ * @param defaultValue Value to return if key does not exist
799800 * @return a boolean value
800801 */
801802 public boolean getBoolean (String key , boolean defaultValue ) {
@@ -829,6 +830,7 @@ public byte getByte(String key) {
829830 * no mapping of the desired type exists for the given key.
830831 *
831832 * @param key a String
833+ * @param defaultValue Value to return if key does not exist
832834 * @return a byte value
833835 */
834836 public Byte getByte (String key , byte defaultValue ) {
@@ -846,7 +848,7 @@ public Byte getByte(String key, byte defaultValue) {
846848 }
847849
848850 /**
849- * Returns the value associated with the given key, or false if
851+ * Returns the value associated with the given key, or (char) 0 if
850852 * no mapping of the desired type exists for the given key.
851853 *
852854 * @param key a String
@@ -858,10 +860,11 @@ public char getChar(String key) {
858860 }
859861
860862 /**
861- * Returns the value associated with the given key, or (char) 0 if
863+ * Returns the value associated with the given key, or defaultValue if
862864 * no mapping of the desired type exists for the given key.
863865 *
864866 * @param key a String
867+ * @param defaultValue Value to return if key does not exist
865868 * @return a char value
866869 */
867870 public char getChar (String key , char defaultValue ) {
@@ -895,6 +898,7 @@ public short getShort(String key) {
895898 * no mapping of the desired type exists for the given key.
896899 *
897900 * @param key a String
901+ * @param defaultValue Value to return if key does not exist
898902 * @return a short value
899903 */
900904 public short getShort (String key , short defaultValue ) {
@@ -928,6 +932,7 @@ public int getInt(String key) {
928932 * no mapping of the desired type exists for the given key.
929933 *
930934 * @param key a String
935+ * @param defaultValue Value to return if key does not exist
931936 * @return an int value
932937 */
933938 public int getInt (String key , int defaultValue ) {
@@ -961,6 +966,7 @@ public long getLong(String key) {
961966 * no mapping of the desired type exists for the given key.
962967 *
963968 * @param key a String
969+ * @param defaultValue Value to return if key does not exist
964970 * @return a long value
965971 */
966972 public long getLong (String key , long defaultValue ) {
@@ -994,6 +1000,7 @@ public float getFloat(String key) {
9941000 * no mapping of the desired type exists for the given key.
9951001 *
9961002 * @param key a String
1003+ * @param defaultValue Value to return if key does not exist
9971004 * @return a float value
9981005 */
9991006 public float getFloat (String key , float defaultValue ) {
@@ -1027,6 +1034,7 @@ public double getDouble(String key) {
10271034 * no mapping of the desired type exists for the given key.
10281035 *
10291036 * @param key a String
1037+ * @param defaultValue Value to return if key does not exist
10301038 * @return a double value
10311039 */
10321040 public double getDouble (String key , double defaultValue ) {
0 commit comments