Sonar Fixes
- avoid parameter assignments
This commit is contained in:
committed by
Artem Bilan
parent
76439e3440
commit
1bafe89d49
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -85,11 +85,12 @@ public class XmlValidatingMessageSelector implements MessageSelector {
|
||||
* If no 'schemaType' is provided it will default to {@link XmlValidatorFactory#SCHEMA_W3C_XML};
|
||||
*
|
||||
* @param schema The schema.
|
||||
* @param schemaType The schema type.
|
||||
* @param schemaTypeArg The schema type.
|
||||
*
|
||||
* @throws IOException if the XmlValidatorFactory fails to create a validator
|
||||
*/
|
||||
public XmlValidatingMessageSelector(Resource schema, SchemaType schemaType) throws IOException {
|
||||
public XmlValidatingMessageSelector(Resource schema, SchemaType schemaTypeArg) throws IOException {
|
||||
SchemaType schemaType = schemaTypeArg;
|
||||
Assert.notNull(schema, "You must provide XML schema location to perform validation");
|
||||
if (schemaType == null) {
|
||||
schemaType = SchemaType.XML_SCHEMA;
|
||||
|
||||
Reference in New Issue
Block a user