From 627393a1550403c8d928164f3f678a03a0cff571 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 24 Sep 2015 22:51:30 +0200 Subject: [PATCH] Reverted StrictMapAppenderConstructor constructor back to public Issue: SPR-13504 --- .../beans/factory/config/YamlProcessor.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java index 4680bb5693..ad17364edc 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java @@ -42,7 +42,7 @@ import org.springframework.util.Assert; import org.springframework.util.StringUtils; /** - * Base class for Yaml factories. + * Base class for YAML factories. * * @author Dave Syer * @since 4.1 @@ -65,7 +65,6 @@ public abstract class YamlProcessor { * some of the documents in a YAML resource. In YAML documents are * separated by --- lines, and each document is converted * to properties before the match is made. E.g. - * *
 	 * environment: dev
 	 * url: http://dev.bar.com
@@ -75,11 +74,9 @@ public abstract class YamlProcessor {
 	 * url:http://foo.bar.com
 	 * name: My Cool App
 	 * 
- * * when mapped with * documentMatchers = YamlProcessor.mapMatcher({"environment": "prod"}) * would end up as - * *
 	 * environment=prod
 	 * url=http://foo.bar.com
@@ -103,9 +100,9 @@ public abstract class YamlProcessor {
 	}
 
 	/**
-	 * Method to use for resolving resources. Each resource will be converted to a Map, so
-	 * this property is used to decide which map entries to keep in the final output from
-	 * this factory.
+	 * Method to use for resolving resources. Each resource will be converted to a Map,
+	 * so this property is used to decide which map entries to keep in the final output
+	 * from this factory.
 	 * @param resolutionMethod the resolution method to set (defaults to
 	 * {@link ResolutionMethod#OVERRIDE}).
 	 */
@@ -127,9 +124,9 @@ public abstract class YamlProcessor {
 	 * Provide an opportunity for subclasses to process the Yaml parsed from the supplied
 	 * resources. Each resource is parsed in turn and the documents inside checked against
 	 * the {@link #setDocumentMatchers(DocumentMatcher...) matchers}. If a document
-	 * matches it is passed into the callback, along with its representation as
-	 * Properties. Depending on the {@link #setResolutionMethod(ResolutionMethod)} not all
-	 * of the documents will be parsed.
+	 * matches it is passed into the callback, along with its representation as Properties.
+	 * Depending on the {@link #setResolutionMethod(ResolutionMethod)} not all of the
+	 * documents will be parsed.
 	 * @param callback a callback to delegate to once matching documents are found
 	 * @see #createYaml()
 	 */
@@ -393,6 +390,11 @@ public abstract class YamlProcessor {
 	 */
 	protected static class StrictMapAppenderConstructor extends Constructor {
 
+		// Declared as public for use in subclasses
+		public StrictMapAppenderConstructor() {
+			super();
+		}
+
 		@Override
 		protected Map constructMapping(MappingNode node) {
 			try {
@@ -421,7 +423,6 @@ public abstract class YamlProcessor {
 				}
 			};
 		}
-
 	}
 
 }