openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r956959 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Tue, 22 Jun 2010 17:27:41 GMT
Author: dwoods
Date: Tue Jun 22 17:27:41 2010
New Revision: 956959

URL: http://svn.apache.org/viewvc?rev=956959&view=rev
Log:
OPENJPA-1700 FindBugs - ignore this warning and rollback previous changes in r956705

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=956959&r1=956958&r2=956959&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Tue Jun 22 17:27:41 2010
@@ -4620,7 +4620,9 @@ public class DBDictionary
         // initialize the error codes
         SQLErrorCodeReader codeReader = new SQLErrorCodeReader();
         String rsrc = "sql-error-state-codes.xml";
-        InputStream stream = DBDictionary.class.getResourceAsStream(rsrc);
+        // We'll allow sub-classes to override the stream for custom err codes
+        // @edu.umd.cs.findbugs.annotations.SuppressWarnings(value={"UI"})
+        InputStream stream = getClass().getResourceAsStream(rsrc);
         String dictionaryClassName = getClass().getName();
         if (stream == null) { // User supplied dictionary but no error codes xml
             // use default



Mime
View raw message