commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmitch...@apache.org
Subject svn commit: r161946 - in jakarta/commons/sandbox/i18n/trunk: project.xml src/java/org/apache/commons/i18n/ResourceBundleMessageProvider.java src/java/org/apache/commons/i18n/XMLMessageProvider.java
Date Tue, 19 Apr 2005 18:39:12 GMT
Author: jmitchell
Date: Tue Apr 19 11:39:11 2005
New Revision: 161946

URL: http://svn.apache.org/viewcvs?view=rev&rev=161946
Log:
add 2 new reports, remove needless object creation

Modified:
    jakarta/commons/sandbox/i18n/trunk/project.xml
    jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/ResourceBundleMessageProvider.java
    jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/XMLMessageProvider.java

Modified: jakarta/commons/sandbox/i18n/trunk/project.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/i18n/trunk/project.xml?view=diff&r1=161945&r2=161946
==============================================================================
--- jakarta/commons/sandbox/i18n/trunk/project.xml (original)
+++ jakarta/commons/sandbox/i18n/trunk/project.xml Tue Apr 19 11:39:11 2005
@@ -114,5 +114,19 @@
     <report>maven-jxr-plugin</report>
     <report>maven-license-plugin</report>
     <report>maven-tasklist-plugin</report>
+    <report>maven-jcoverage-plugin</report>
+    
+    <!--
+    if you have trouble with findbugs plugin, execute this from the command line
+     (all on one line)
+    maven plugin:download
+	     -Dmaven.repo.remote=http://www.ibiblio.org/maven/
+	     -DgroupId=maven-plugins
+	     -DartifactId=maven-findbugs-plugin
+	     -Dversion=0.8.4
+
+    -->
+    <report>maven-findbugs-plugin</report>
+    
   </reports>
 </project>

Modified: jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/ResourceBundleMessageProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/ResourceBundleMessageProvider.java?view=diff&r1=161945&r2=161946
==============================================================================
--- jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/ResourceBundleMessageProvider.java
(original)
+++ jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/ResourceBundleMessageProvider.java
Tue Apr 19 11:39:11 2005
@@ -46,7 +46,6 @@
      * @see org.apache.commons.i18n.MessageProvider#getText(java.lang.String, java.lang.String,
java.util.Locale)
      */
     public String getText(String id, String entry, Locale locale) throws MessageNotFoundException
{
-        String text = null;
         for ( Iterator i = installedResourceBundles.iterator(); i.hasNext(); ) {
             String baseName = (String)i.next();
             try {

Modified: jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/XMLMessageProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/XMLMessageProvider.java?view=diff&r1=161945&r2=161946
==============================================================================
--- jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/XMLMessageProvider.java
(original)
+++ jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/XMLMessageProvider.java
Tue Apr 19 11:39:11 2005
@@ -138,7 +138,6 @@
     }
 
     static class ConfigurationHandler extends DefaultHandler {
-        private Map messages = new HashMap();
         private String id, key;
         private Message message;
         private StringBuffer cData;



---------------------------------------------------------------------
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