src/org/sonews/config/AbstractConfig.java
changeset 100 08c9fb6fb017
parent 37 74139325d305
     1.1 --- a/src/org/sonews/config/AbstractConfig.java	Sun Aug 29 18:17:37 2010 +0200
     1.2 +++ b/src/org/sonews/config/AbstractConfig.java	Wed Oct 19 17:23:53 2011 +0200
     1.3 @@ -15,7 +15,6 @@
     1.4   *   You should have received a copy of the GNU General Public License
     1.5   *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1.6   */
     1.7 -
     1.8  package org.sonews.config;
     1.9  
    1.10  /**
    1.11 @@ -23,19 +22,16 @@
    1.12   * @author Christian Lins
    1.13   * @since sonews/0.5.0
    1.14   */
    1.15 -public abstract class AbstractConfig
    1.16 -{
    1.17 +public abstract class AbstractConfig {
    1.18  
    1.19  	public abstract String get(String key, String defVal);
    1.20  
    1.21 -	public int get(final String key, final int defVal)
    1.22 -	{
    1.23 +	public int get(final String key, final int defVal) {
    1.24  		return Integer.parseInt(
    1.25 -			get(key, Integer.toString(defVal)));
    1.26 +				get(key, Integer.toString(defVal)));
    1.27  	}
    1.28  
    1.29 -	public boolean get(String key, boolean defVal)
    1.30 -	{
    1.31 +	public boolean get(String key, boolean defVal) {
    1.32  		String val = get(key, Boolean.toString(defVal));
    1.33  		return Boolean.parseBoolean(val);
    1.34  	}
    1.35 @@ -46,8 +42,7 @@
    1.36  	 * @param defVal
    1.37  	 * @return
    1.38  	 */
    1.39 -	public long get(String key, long defVal)
    1.40 -	{
    1.41 +	public long get(String key, long defVal) {
    1.42  		String val = get(key, Long.toString(defVal));
    1.43  		return Long.parseLong(val);
    1.44  	}