From 6ef288f45b3715621930b132b0fabb24329e376c Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sun, 2 Feb 2020 09:45:27 +0900 Subject: [PATCH] Polish samples in doc See gh-20004 --- .../spring-boot-docs/src/main/asciidoc/howto.adoc | 4 ++-- .../src/main/asciidoc/spring-boot-features.adoc | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index bb75921732..2abd6be15b 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -864,8 +864,8 @@ You can add an `org.apache.catalina.connector.Connector` to the `TomcatServletWe return connector; } catch (IOException ex) { - throw new IllegalStateException("can't access keystore: [" + "keystore" - + "] or truststore: [" + "keystore" + "]", ex); + throw new IllegalStateException("can't access keystore: [" + keystore + + "] or truststore: [" + truststore + "]", ex); } } ---- diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 7984b08f1c..9085cecd92 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -4305,7 +4305,6 @@ The following code listing shows how to inject a Cassandra bean: private CassandraTemplate template; - @Autowired public MyBean(CassandraTemplate template) { this.template = template; }