donaldp 01/11/09 13:34:55
Modified: src/java/org/apache/avalon/framework/configuration
AbstractConfiguration.java
DefaultConfiguration.java
Log:
Readd " at end of element/attribute name in exception strings.
Submitted By: Sylvain Wallez <[EMAIL PROTECTED]>
Revision Changes Path
1.8 +9 -9
jakarta-avalon/src/java/org/apache/avalon/framework/configuration/AbstractConfiguration.java
Index: AbstractConfiguration.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/configuration/AbstractConfiguration.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AbstractConfiguration.java 2001/11/01 21:04:47 1.7
+++ AbstractConfiguration.java 2001/11/09 21:34:54 1.8
@@ -15,7 +15,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Pierpaolo Fumagalli</a>
- * @version CVS $Revision: 1.7 $ $Date: 2001/11/01 21:04:47 $
+ * @version CVS $Revision: 1.8 $ $Date: 2001/11/09 21:34:54 $
*/
public abstract class AbstractConfiguration
implements Configuration
@@ -56,7 +56,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as an integer in the
configuration element \"" +
- getName() + " at " +
getLocation() );
+ getName() + "\" at " +
getLocation() );
}
}
@@ -117,7 +117,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as a long in the
configuration element \"" +
- getName() + " at " +
getLocation() );
+ getName() + "\" at " +
getLocation() );
}
}
@@ -160,7 +160,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as a float in the
configuration element \"" +
- getName() + " at " +
getLocation() );
+ getName() + "\" at " +
getLocation() );
}
}
@@ -204,7 +204,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as a boolean in the
configuration element \"" +
- getName() + " at " +
getLocation() );
+ getName() + "\" at " +
getLocation() );
}
}
@@ -282,7 +282,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as an integer in the
attribute \"" +
- name + " at " + getLocation()
);
+ name + "\" at " +
getLocation() );
}
}
@@ -348,7 +348,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as a long in the attribute
\"" +
- name + " at " + getLocation()
);
+ name + "\" at " +
getLocation() );
}
}
@@ -395,7 +395,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as a float in the
attribute \"" +
- name + " at " + getLocation()
);
+ name + "\" at " +
getLocation() );
}
}
@@ -444,7 +444,7 @@
{
throw new ConfigurationException( "Cannot parse the value \"" +
value +
"\" as a boolean in the
attribute \"" +
- name + " at " + getLocation()
);
+ name + "\" at " +
getLocation() );
}
}
1.8 +2 -2
jakarta-avalon/src/java/org/apache/avalon/framework/configuration/DefaultConfiguration.java
Index: DefaultConfiguration.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/configuration/DefaultConfiguration.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- DefaultConfiguration.java 2001/11/01 09:13:56 1.7
+++ DefaultConfiguration.java 2001/11/09 21:34:54 1.8
@@ -90,7 +90,7 @@
{
throw new ConfigurationException( "No value is associated with
the "+
"configuration element \"" +
getName() +
- " at " + getLocation() );
+ "\" at " + getLocation() );
}
}
@@ -147,7 +147,7 @@
{
throw new ConfigurationException( "No attribute named \"" + name
+ "\" is " +
"associated with the
configuration element \"" +
- getName() + " at " +
getLocation() );
+ getName() + "\" at " +
getLocation() );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>