Polish
This commit is contained in:
@@ -43,7 +43,7 @@ public abstract class TransformerObjectSupport {
|
||||
*/
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
|
||||
private TransformerHelper transformerHelper = new TransformerHelper();
|
||||
private final TransformerHelper transformerHelper = new TransformerHelper();
|
||||
|
||||
/**
|
||||
* Specify the {@code TransformerFactory} class to use.
|
||||
|
||||
@@ -50,7 +50,7 @@ abstract class Jaxp13ValidatorFactory {
|
||||
|
||||
private static final class Jaxp13Validator implements XmlValidator {
|
||||
|
||||
private Schema schema;
|
||||
private final Schema schema;
|
||||
|
||||
Jaxp13Validator(Schema schema) {
|
||||
this.schema = schema;
|
||||
@@ -84,7 +84,7 @@ abstract class Jaxp13ValidatorFactory {
|
||||
*/
|
||||
private static final class DefaultValidationErrorHandler implements ValidationErrorHandler {
|
||||
|
||||
private List<SAXParseException> errors = new ArrayList<>();
|
||||
private final List<SAXParseException> errors = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public SAXParseException[] getErrors() {
|
||||
|
||||
@@ -58,7 +58,7 @@ abstract class Jaxp15ValidatorFactory {
|
||||
|
||||
private static final class Jaxp15Validator implements XmlValidator {
|
||||
|
||||
private Schema schema;
|
||||
private final Schema schema;
|
||||
|
||||
Jaxp15Validator(Schema schema) {
|
||||
this.schema = schema;
|
||||
@@ -113,7 +113,7 @@ abstract class Jaxp15ValidatorFactory {
|
||||
*/
|
||||
private static final class DefaultValidationErrorHandler implements ValidationErrorHandler {
|
||||
|
||||
private List<SAXParseException> errors = new ArrayList<>();
|
||||
private final List<SAXParseException> errors = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public SAXParseException[] getErrors() {
|
||||
|
||||
@@ -77,7 +77,7 @@ abstract class JaxenXPathExpressionFactory {
|
||||
/** Jaxen implementation of the {@code XPathExpression} interface. */
|
||||
private static final class JaxenXpathExpression implements XPathExpression {
|
||||
|
||||
private XPath xpath;
|
||||
private final XPath xpath;
|
||||
|
||||
private final String expression;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.xml.namespace.SimpleNamespaceContext;
|
||||
*/
|
||||
abstract class Jaxp13XPathExpressionFactory {
|
||||
|
||||
private static XPathFactory xpathFactory = XPathFactory.newInstance();
|
||||
private static final XPathFactory xpathFactory = XPathFactory.newInstance();
|
||||
|
||||
/**
|
||||
* Creates a JAXP 1.3 {@code XPathExpression} from the given string expression.
|
||||
|
||||
@@ -50,7 +50,7 @@ import org.springframework.xml.validation.XmlValidatorFactory;
|
||||
*/
|
||||
public class SimpleXsdSchema implements XsdSchema, InitializingBean {
|
||||
|
||||
private static DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
|
||||
private static final DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
|
||||
|
||||
private static final String SCHEMA_NAMESPACE = "http://www.w3.org/2001/XMLSchema";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user