commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration CompositeConfiguration.java
Date Tue, 11 Mar 2003 18:03:44 GMT
epugh       2003/03/11 10:03:44

  Modified:    configuration/src/java/org/apache/commons/configuration
                        CompositeConfiguration.java
  Log:
  inadvertantly added an infinite loop.  darn () characters!
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration/CompositeConfiguration.java
  
  Index: CompositeConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration/CompositeConfiguration.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CompositeConfiguration.java	11 Mar 2003 17:38:54 -0000	1.2
  +++ CompositeConfiguration.java	11 Mar 2003 18:03:44 -0000	1.3
  @@ -302,7 +302,7 @@
   	 */
   	public boolean getBoolean(String key, boolean defaultValue)
   	{
  -		return getBoolean(key, new Boolean(defaultValue).booleanValue());
  +		return getBoolean(key, new Boolean(defaultValue)).booleanValue();
   
   	}
   
  @@ -458,7 +458,7 @@
   	 */
   	public float getFloat(String key, float defaultValue)
   	{
  -		return getFloat(key, new Float(defaultValue).floatValue());
  +		return getFloat(key, new Float(defaultValue)).floatValue();
   	}
   
   	/**
  @@ -516,7 +516,7 @@
   	 */
   	public int getInt(String key, int defaultValue)
   	{
  -		return getInt(key, new Integer(defaultValue).intValue());
  +		return getInteger(key, new Integer(defaultValue)).intValue();
   	}
   
   	/**
  @@ -574,7 +574,7 @@
   	 */
   	public long getLong(String key, long defaultValue)
   	{
  -		return getLong(key, new Long(defaultValue).longValue());
  +		return getLong(key, new Long(defaultValue)).longValue();
   	}
   
   	/**
  @@ -632,7 +632,7 @@
   	 */
   	public short getShort(String key, short defaultValue)
   	{
  -		return getShort(key, new Short(defaultValue).shortValue());
  +		return getShort(key, new Short(defaultValue)).shortValue();
   
   	}
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message