Author: dkulp Date: Tue Sep 11 19:54:38 2012 New Revision: 1383589 URL: http://svn.apache.org/viewvc?rev=1383589&view=rev Log: Merged revisions 1378311 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/branches/2.5.x-fixes
........ r1378311 | dkulp | 2012-08-28 16:26:59 -0400 (Tue, 28 Aug 2012) | 18 lines Merged revisions 1378299 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes ........ r1378299 | dkulp | 2012-08-28 16:19:31 -0400 (Tue, 28 Aug 2012) | 10 lines Merged revisions 1378288 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/trunk ........ r1378288 | dkulp | 2012-08-28 16:13:27 -0400 (Tue, 28 Aug 2012) | 2 lines Update a couple of tests so that they will compile if xerces 2.10 is pulled in instead of 2.9 ........ ........ ........ Modified: cxf/branches/2.4.x-fixes/common/common/src/test/java/org/apache/cxf/common/xmlschema/ImportRepairTest.java cxf/branches/2.4.x-fixes/common/xerces-xsd-validation/src/main/java/org/apache/cxf/xsdvalidation/XercesSchemaValidationUtils.java Modified: cxf/branches/2.4.x-fixes/common/common/src/test/java/org/apache/cxf/common/xmlschema/ImportRepairTest.java URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/common/common/src/test/java/org/apache/cxf/common/xmlschema/ImportRepairTest.java?rev=1383589&r1=1383588&r2=1383589&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/common/common/src/test/java/org/apache/cxf/common/xmlschema/ImportRepairTest.java (original) +++ cxf/branches/2.4.x-fixes/common/common/src/test/java/org/apache/cxf/common/xmlschema/ImportRepairTest.java Tue Sep 11 19:54:38 2012 @@ -69,19 +69,21 @@ public class ImportRepairTest extends As static boolean dumpSchemas; - private static final class ListLSInput implements LSInputList { - private final List<DOMLSInput> inputs; - - private ListLSInput(List<DOMLSInput> inputs) { - this.inputs = inputs; + @SuppressWarnings("rawtypes") + private static final class ListLSInput extends ArrayList implements LSInputList { + private static final long serialVersionUID = 1L; + + @SuppressWarnings("unchecked") + private ListLSInput(List inputs) { + super(inputs); } public int getLength() { - return inputs.size(); + return size(); } public LSInput item(int index) { - return inputs.get(index); + return (LSInput)get(index); } } Modified: cxf/branches/2.4.x-fixes/common/xerces-xsd-validation/src/main/java/org/apache/cxf/xsdvalidation/XercesSchemaValidationUtils.java URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/common/xerces-xsd-validation/src/main/java/org/apache/cxf/xsdvalidation/XercesSchemaValidationUtils.java?rev=1383589&r1=1383588&r2=1383589&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/common/xerces-xsd-validation/src/main/java/org/apache/cxf/xsdvalidation/XercesSchemaValidationUtils.java (original) +++ cxf/branches/2.4.x-fixes/common/xerces-xsd-validation/src/main/java/org/apache/cxf/xsdvalidation/XercesSchemaValidationUtils.java Tue Sep 11 19:54:38 2012 @@ -46,22 +46,24 @@ import org.apache.xerces.xs.XSLoader; */ class XercesSchemaValidationUtils { - private static final class ListLSInput implements LSInputList { - private final List<DOMLSInput> inputs; - - private ListLSInput(List<DOMLSInput> inputs) { - this.inputs = inputs; + @SuppressWarnings("rawtypes") + private static final class ListLSInput extends ArrayList implements LSInputList { + private static final long serialVersionUID = 1L; + + @SuppressWarnings("unchecked") + private ListLSInput(List inputs) { + super(inputs); } public int getLength() { - return inputs.size(); + return size(); } public LSInput item(int index) { - return inputs.get(index); + return (LSInput)get(index); } } - + private XSImplementation impl; XercesSchemaValidationUtils() {
