From b3268706c27f6a65f5788a8bba6d63b23d6ecbab Mon Sep 17 00:00:00 2001 From: tejaspathak Date: Tue, 3 Nov 2015 20:34:27 +0900 Subject: [PATCH] Fixes the return type of apis --- paldb/src/main/java/com/linkedin/paldb/api/Configuration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paldb/src/main/java/com/linkedin/paldb/api/Configuration.java b/paldb/src/main/java/com/linkedin/paldb/api/Configuration.java index a28647b..1298da4 100644 --- a/paldb/src/main/java/com/linkedin/paldb/api/Configuration.java +++ b/paldb/src/main/java/com/linkedin/paldb/api/Configuration.java @@ -195,7 +195,7 @@ public boolean getBoolean(String key) { * @param defaultValue default value if key not found * @return value or defaultValue if not found */ - public long getShort(String key, short defaultValue) { + public short getShort(String key, short defaultValue) { if (containsKey(key)) { return Short.parseShort(get(key)); } else { @@ -210,7 +210,7 @@ public long getShort(String key, short defaultValue) { * @throws java.lang.IllegalArgumentException if the key is not found * @return value */ - public long getShort(String key) { + public short getShort(String key) { if (containsKey(key)) { return Short.parseShort(get(key)); } else {