From 3dabf7aec12f5bd25a6011a6c1d3d4c9548b49a1 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 15 Nov 2021 12:21:52 -0500 Subject: [PATCH] Fix Checkstyle violations * Make version block for dependencies as code-switcher in the XML, ZeroMQ and Zookeeper docs --- .../integration/xml/transformer/MarshallingTransformer.java | 1 - src/reference/asciidoc/xml.adoc | 4 ++-- src/reference/asciidoc/zeromq.adoc | 4 ++-- src/reference/asciidoc/zookeeper.adoc | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/MarshallingTransformer.java b/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/MarshallingTransformer.java index c7989bc680..dd3fd17f51 100644 --- a/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/MarshallingTransformer.java +++ b/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/MarshallingTransformer.java @@ -18,7 +18,6 @@ package org.springframework.integration.xml.transformer; import java.io.IOException; -import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.Result; import org.springframework.messaging.Message; diff --git a/src/reference/asciidoc/xml.adoc b/src/reference/asciidoc/xml.adoc index e4512023d8..8453083c2e 100644 --- a/src/reference/asciidoc/xml.adoc +++ b/src/reference/asciidoc/xml.adoc @@ -17,8 +17,8 @@ Spring Integration's XML support extends the core of Spring Integration with the You need to include this dependency into your project: ==== +[source, xml, subs="normal", role="primary"] .Maven -[source, xml, subs="normal"] ---- org.springframework.integration @@ -27,8 +27,8 @@ You need to include this dependency into your project: ---- +[source, groovy, subs="normal", role="secondary"] .Gradle -[source, groovy, subs="normal"] ---- compile "org.springframework.integration:spring-integration-xml:{project-version}" ---- diff --git a/src/reference/asciidoc/zeromq.adoc b/src/reference/asciidoc/zeromq.adoc index 84dfdad75a..0bab4d9a11 100644 --- a/src/reference/asciidoc/zeromq.adoc +++ b/src/reference/asciidoc/zeromq.adoc @@ -8,8 +8,8 @@ All components encapsulate ZeroMQ socket lifecycles and manage threads for them You need to include this dependency into your project: ==== +[source, xml, subs="normal", role="primary"] .Maven -[source, xml, subs="normal"] ---- org.springframework.integration @@ -18,8 +18,8 @@ You need to include this dependency into your project: ---- +[source, groovy, subs="normal", role="secondary"] .Gradle -[source, groovy, subs="normal"] ---- compile "org.springframework.integration:spring-integration-zeromq:{project-version}" ---- diff --git a/src/reference/asciidoc/zookeeper.adoc b/src/reference/asciidoc/zookeeper.adoc index d4129f9ff7..b86de555ff 100644 --- a/src/reference/asciidoc/zookeeper.adoc +++ b/src/reference/asciidoc/zookeeper.adoc @@ -10,8 +10,8 @@ Version 4.2 added https://zookeeper.apache.org/[Zookeeper] support to the framew You need to include this dependency into your project: ==== +[source, xml, subs="normal", role="primary"] .Maven -[source, xml, subs="normal"] ---- org.springframework.integration @@ -20,8 +20,8 @@ You need to include this dependency into your project: ---- +[source, groovy, subs="normal", role="secondary"] .Gradle -[source, groovy, subs="normal"] ---- compile "org.springframework.integration:spring-integration-zookeeper:{project-version}" ----