diff -r 74139325d305 -r a788bf0e1080 src/org/sonews/config/AbstractConfig.java --- a/src/org/sonews/config/AbstractConfig.java Sun Aug 29 18:17:37 2010 +0200 +++ b/src/org/sonews/config/AbstractConfig.java Thu Oct 20 10:50:58 2011 +0200 @@ -15,7 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - package org.sonews.config; /** @@ -23,19 +22,16 @@ * @author Christian Lins * @since sonews/0.5.0 */ -public abstract class AbstractConfig -{ +public abstract class AbstractConfig { public abstract String get(String key, String defVal); - public int get(final String key, final int defVal) - { + public int get(final String key, final int defVal) { return Integer.parseInt( - get(key, Integer.toString(defVal))); + get(key, Integer.toString(defVal))); } - public boolean get(String key, boolean defVal) - { + public boolean get(String key, boolean defVal) { String val = get(key, Boolean.toString(defVal)); return Boolean.parseBoolean(val); } @@ -46,8 +42,7 @@ * @param defVal * @return */ - public long get(String key, long defVal) - { + public long get(String key, long defVal) { String val = get(key, Long.toString(defVal)); return Long.parseLong(val); }