From 6c0e550b866abd7001de54232634d92a37cdb79e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 10 Aug 2019 14:07:15 +0200 Subject: [PATCH] Polish contribution See gh-23445 --- .../org/springframework/util/xml/AbstractStaxXMLReader.java | 5 +++-- .../jdbc/datasource/DataSourceTransactionManager.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/xml/AbstractStaxXMLReader.java b/spring-core/src/main/java/org/springframework/util/xml/AbstractStaxXMLReader.java index d8b3d9a6fb..d8adad9a63 100644 --- a/spring-core/src/main/java/org/springframework/util/xml/AbstractStaxXMLReader.java +++ b/spring-core/src/main/java/org/springframework/util/xml/AbstractStaxXMLReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 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. @@ -72,7 +72,8 @@ abstract class AbstractStaxXMLReader extends AbstractXMLReader { case IS_STANDALONE_FEATURE_NAME: if (this.isStandalone != null) { return this.isStandalone; - } else { + } + else { throw new SAXNotSupportedException("startDocument() callback not completed yet"); } default: diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java index f6a7a8b494..879b8330d8 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 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.