From 6d7f497ab3e51d0c64ba46ce76e16aaf693bd327 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 6 Apr 2016 14:14:51 +0200 Subject: [PATCH] Fix single quote formatting issues in the reference manual --- src/asciidoc/core-aop.adoc | 2 +- src/asciidoc/core-beans.adoc | 4 ++-- src/asciidoc/data-access.adoc | 4 ++-- src/asciidoc/integration.adoc | 6 +++--- src/asciidoc/testing.adoc | 10 +++++----- src/asciidoc/web-mvc.adoc | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/asciidoc/core-aop.adoc b/src/asciidoc/core-aop.adoc index 5fc62fb460b..7b435d20596 100644 --- a/src/asciidoc/core-aop.adoc +++ b/src/asciidoc/core-aop.adoc @@ -1991,7 +1991,7 @@ proceed with the method call: the presence of this parameter is an indication th public class SimpleProfiler { public Object profile(ProceedingJoinPoint call, String name, int age) throws Throwable { - StopWatch clock = new StopWatch("Profiling for ''" + name + "'' and ''" + age + "''"); + StopWatch clock = new StopWatch("Profiling for '" + name + "' and '" + age + "'"); try { clock.start(call.toShortString()); return call.proceed(); diff --git a/src/asciidoc/core-beans.adoc b/src/asciidoc/core-beans.adoc index 08d8e13506d..ba6fe773ec6 100644 --- a/src/asciidoc/core-beans.adoc +++ b/src/asciidoc/core-beans.adoc @@ -3707,7 +3707,7 @@ Find below the custom `BeanPostProcessor` implementation class definition: public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { - System.out.println("Bean ''" + beanName + "'' created : " + bean.toString()); + System.out.println("Bean '" + beanName + "' created : " + bean.toString()); return bean; } @@ -7499,7 +7499,7 @@ hierarchy of property sources. To explain fully, consider the following: ApplicationContext ctx = new GenericApplicationContext(); Environment env = ctx.getEnvironment(); boolean containsFoo = env.containsProperty("foo"); -System.out.println("Does my environment contain the ''foo'' property? " + containsFoo); +System.out.println("Does my environment contain the 'foo' property? " + containsFoo); ---- In the snippet above, we see a high-level way of asking Spring whether the `foo` property is diff --git a/src/asciidoc/data-access.adoc b/src/asciidoc/data-access.adoc index aeccb844bdc..3e0ad7d58fe 100644 --- a/src/asciidoc/data-access.adoc +++ b/src/asciidoc/data-access.adoc @@ -1778,7 +1778,7 @@ a transaction. You then pass an instance of your custom `TransactionCallback` to // use constructor-injection to supply the PlatformTransactionManager public SimpleService(PlatformTransactionManager transactionManager) { - Assert.notNull(transactionManager, "The ''transactionManager'' argument must not be null."); + Assert.notNull(transactionManager, "The 'transactionManager' argument must not be null."); this.transactionTemplate = new TransactionTemplate(transactionManager); } @@ -1845,7 +1845,7 @@ a specific `TransactionTemplate:` private final TransactionTemplate transactionTemplate; public SimpleService(PlatformTransactionManager transactionManager) { - Assert.notNull(transactionManager, "The ''transactionManager'' argument must not be null."); + Assert.notNull(transactionManager, "The 'transactionManager' argument must not be null."); this.transactionTemplate = new TransactionTemplate(transactionManager); // the transaction settings can be set here explicitly if so desired diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index 8f4891c4d19..33f410eedff 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -6007,7 +6007,7 @@ along with an inline image. helper.setTo("test@host.com"); // use the true flag to indicate the text included is HTML - helper.setText("", true); + helper.setText("", true); // let's include the infamous windows Sample file (this time copied to c:/) FileSystemResource res = new FileSystemResource(new File("c:/Sample.jpg")); @@ -7366,7 +7366,7 @@ message is surrounded by quotes. Below are the changes that I (the author) make public String getMessage() { // change the implementation to surround the message in quotes - return "''" + this.message + "''" + return "'" + this.message + "'" } public void setMessage(String message) { @@ -7773,7 +7773,7 @@ will want to do with this callback, and you can see an example of doing that bel DelegatingMetaClass metaClass = new DelegatingMetaClass(goo.getMetaClass()) { public Object invokeMethod(Object object, String methodName, Object[] arguments) { - System.out.println("Invoking ''" + methodName + "''."); + System.out.println("Invoking '" + methodName + "'."); return super.invokeMethod(object, methodName, arguments); } }; diff --git a/src/asciidoc/testing.adoc b/src/asciidoc/testing.adoc index 3c531a2ce73..95de03cb5ec 100644 --- a/src/asciidoc/testing.adoc +++ b/src/asciidoc/testing.adoc @@ -2949,8 +2949,8 @@ framework. c:loginAction-ref="loginAction" /> @@ -3011,7 +3011,7 @@ framework. @@ -4160,7 +4160,7 @@ be verified using JsonPath expressions: [subs="verbatim,quotes"] ---- mockMvc.perform(get("/people").accept(MediaType.APPLICATION_JSON)) - .andExpect(jsonPath("$.links[?(@.rel == ''self'')].href").value("http://localhost:8080/people")); + .andExpect(jsonPath("$.links[?(@.rel == 'self')].href").value("http://localhost:8080/people")); ---- When XML response content contains hypermedia links created with @@ -4172,7 +4172,7 @@ be verified using XPath expressions: ---- Map ns = Collections.singletonMap("ns", "http://www.w3.org/2005/Atom"); mockMvc.perform(get("/handle").accept(MediaType.APPLICATION_XML)) - .andExpect(xpath("/person/ns:link[@rel=''self'']/@href", ns).string("http://localhost:8080/people")); + .andExpect(xpath("/person/ns:link[@rel='self']/@href", ns).string("http://localhost:8080/people")); ---- [[spring-mvc-test-server-filters]] diff --git a/src/asciidoc/web-mvc.adoc b/src/asciidoc/web-mvc.adoc index 05ce810ec7b..95e471bc73e 100644 --- a/src/asciidoc/web-mvc.adoc +++ b/src/asciidoc/web-mvc.adoc @@ -3376,7 +3376,7 @@ You can prepare a link from a JSP as follows: ---- <%@ taglib uri="http://www.springframework.org/tags" prefix="s" %> ... -Get Address +Get Address ---- The above example relies on the `mvcUrl` JSP function declared in the Spring tag library @@ -3574,9 +3574,9 @@ defined in the previous example to customize the look and feel: <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> - + - + ...