Return-Path: Delivered-To: apmail-xerces-commits-archive@www.apache.org Received: (qmail 83922 invoked from network); 20 May 2008 21:51:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 21:51:12 -0000 Received: (qmail 31131 invoked by uid 500); 20 May 2008 21:51:13 -0000 Delivered-To: apmail-xerces-commits-archive@xerces.apache.org Received: (qmail 31112 invoked by uid 500); 20 May 2008 21:51:13 -0000 Mailing-List: contact commits-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@xerces.apache.org Received: (qmail 31103 invoked by uid 99); 20 May 2008 21:51:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 14:51:13 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 21:50:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 634602388990; Tue, 20 May 2008 14:50:49 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r658453 - /xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java Date: Tue, 20 May 2008 21:50:49 -0000 To: commits@xerces.apache.org From: mrglavas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080520215049.634602388990@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mrglavas Date: Tue May 20 14:50:48 2008 New Revision: 658453 URL: http://svn.apache.org/viewvc?rev=658453&view=rev Log: Fixing JIRA Issue #1309: http://issues.apache.org/jira/browse/XERCESJ-1309 For xs:anyType return an empty XSObjectList instead of null from XSComplexTypeDefinition.getAnnotations(). Also changed getAttributeUses() so that it returns a singleton instance of the XSObjectList instead of creating a new one every time. Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=658453&r1=658452&r2=658453&view=diff ============================================================================== --- xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java (original) +++ xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java Tue May 20 14:50:48 2008 @@ -889,7 +889,7 @@ } public XSObjectList getAttributeUses() { - return new XSObjectListImpl(null, 0); + return XSObjectListImpl.EMPTY_LIST; } public XSAttributeGroupDecl getAttrGrp() { @@ -932,7 +932,7 @@ } public XSObjectList getAnnotations() { - return null; + return XSObjectListImpl.EMPTY_LIST; } public XSNamespaceItem getNamespaceItem() { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org For additional commands, e-mail: commits-help@xerces.apache.org