OPENJPA-1700 FindBugs - ignore this warning and rollback previous changes in r956705

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@956959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-06-22 17:27:41 +00:00
parent e3075014f3
commit ee314e9586

View File

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