CVS Update: xmlpull-api-v1/src/java/api/org/xmlpull/v1

Stefan Haustein <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
haustein    02/10/14 17:41:34

  Modified:    src/java/api/org/xmlpull/v1 XmlPullParserFactory.java
  Log:
  j2me compatibility issue fixed
  
  Revision  Changes    Path
  1.18      +3 -3      xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParserFactory.java
  
  Index: XmlPullParserFactory.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParserFactory.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -t -w -r1.17 -r1.18
  --- XmlPullParserFactory.java	2002/08/14 13:44:47	1.17
  +++ XmlPullParserFactory.java	2002/10/14 22:41:34	1.18
  @@ -316,15 +316,15 @@
   
               if (candidate != null) {
                   boolean recognized = false;
  -                if (XmlPullParser.class.isAssignableFrom(candidate) ) {
  +                if (instance instanceof XmlPullParser) {
                       parserClasses.addElement (candidate);
                       recognized = true;
                   }
  -                if (XmlSerializer.class.isAssignableFrom(candidate)) {
  +                if (instance instanceof XmlSerializer) {
                       serializerClasses.addElement (candidate);
                       recognized = true;
                   }
  -                if (XmlPullParserFactory.class.isAssignableFrom(candidate)) {
  +                if (instance instanceof XmlPullParserFactory) {
                       if (factory == null) {
                           factory = (XmlPullParserFactory) instance;
                       }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.