[jboss-cvs] jboss-seam/src/main/org/jboss/seam/util ...
Gavin King
gavin.king at jboss.com
Wed Jul 25 10:40:31 EDT 2007
User: gavin
Date: 07/07/25 10:40:31
Modified: src/main/org/jboss/seam/util Conversions.java
Resources.java
Log:
fix some problems with test suite
Revision Changes Path
1.13 +1 -1 jboss-seam/src/main/org/jboss/seam/util/Conversions.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Conversions.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/util/Conversions.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- Conversions.java 28 Jan 2007 21:42:34 -0000 1.12
+++ Conversions.java 25 Jul 2007 14:40:31 -0000 1.13
@@ -272,7 +272,7 @@
{
if (string==null)
{
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("null value");
}
this.string = string;
}
1.13 +6 -3 jboss-seam/src/main/org/jboss/seam/util/Resources.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Resources.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/util/Resources.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- Resources.java 21 Jun 2007 04:07:15 -0000 1.12
+++ Resources.java 25 Jul 2007 14:40:31 -0000 1.13
@@ -41,11 +41,14 @@
URL url = null;
+ if (servletContext!=null)
+ {
try
{
url = servletContext.getResource(resource);
}
catch (Exception e) {}
+ }
if (url==null)
{
More information about the jboss-cvs-commits
mailing list