Skip to content

Commit a4b7cea

Browse files
committed
SWS-647 - PayloadValidatingInterceptor throws IllegalArgumentException when passed a schema collection
1 parent e2e1809 commit a4b7cea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

xml/src/main/java/org/springframework/xml/xsd/commons/CommonsXsdSchema.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2005-2010 the original author or authors.
2+
* Copyright 2005-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -95,8 +95,7 @@ public QName[] getElementNames() {
9595
public Source getSource() {
9696
// try to use the the package-friendly XmlSchemaSerializer first, fall back to slower stream-based version
9797
try {
98-
XmlSchemaSerializer serializer = (XmlSchemaSerializer) BeanUtils.instantiateClass(XmlSchemaSerializer.class)
99-
;
98+
XmlSchemaSerializer serializer = BeanUtils.instantiateClass(XmlSchemaSerializer.class);
10099
if (collection != null) {
101100
serializer.setExtReg(collection.getExtReg());
102101
}

0 commit comments

Comments
 (0)