You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2003/03/24 08:07:34 UTC
cvs commit: avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n Resources.java
donaldp 2003/03/23 23:07:32
Modified: i18n/src/java/org/apache/avalon/excalibur/i18n
Resources.java
Log:
Put null checks prior to assignments
Revision Changes Path
1.20 +3 -5 avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n/Resources.java
Index: Resources.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n/Resources.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Resources.java 20 Feb 2003 19:45:22 -0000 1.19
+++ Resources.java 24 Mar 2003 07:07:32 -0000 1.20
@@ -126,19 +126,17 @@
final Locale locale,
final ClassLoader classLoader )
{
- m_baseName = baseName;
- m_locale = locale;
- m_classLoader = classLoader;
-
if( null == baseName )
{
throw new NullPointerException( "baseName property is null" );
}
-
if( null == locale )
{
throw new NullPointerException( "locale property is null" );
}
+ m_baseName = baseName;
+ m_locale = locale;
+ m_classLoader = classLoader;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org