You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by sc...@apache.org on 2009/04/01 17:59:46 UTC
svn commit: r760941 -
/incubator/etch/branches/config/services/config/src/main/java/org/apache/etch/services/config/YamlConfig.java
Author: sccomer
Date: Wed Apr 1 15:59:45 2009
New Revision: 760941
URL: http://svn.apache.org/viewvc?rev=760941&view=rev
Log:
small formatting change.
Modified:
incubator/etch/branches/config/services/config/src/main/java/org/apache/etch/services/config/YamlConfig.java
Modified: incubator/etch/branches/config/services/config/src/main/java/org/apache/etch/services/config/YamlConfig.java
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/src/main/java/org/apache/etch/services/config/YamlConfig.java?rev=760941&r1=760940&r2=760941&view=diff
==============================================================================
--- incubator/etch/branches/config/services/config/src/main/java/org/apache/etch/services/config/YamlConfig.java (original)
+++ incubator/etch/branches/config/services/config/src/main/java/org/apache/etch/services/config/YamlConfig.java Wed Apr 1 15:59:45 2009
@@ -712,24 +712,20 @@
Object value )
{
if (valueIsList( value ))
- {
return importList( c, parent, nameOrIndex, (List<?>) value );
- }
- else if (valueIsMap( value ))
- {
+
+ if (valueIsMap( value ))
return importMap( c, parent, nameOrIndex, (Map<?, ?>) value );
- }
- else if (valueIsScalar( value ))
+
+ if (valueIsScalar( value ))
{
int k = c.size();
c.add( new Conf( parent, nameOrIndex, value ) );
return k;
}
- else
- {
- throw new IllegalArgumentException(
- "don't know how to import type "+value.getClass() );
- }
+
+ throw new IllegalArgumentException(
+ "don't know how to import type "+value.getClass() );
}
private static boolean valueIsScalar( Object value )