From 2c274cf0aaa02ec7d4dd23dac61537a018587d78 Mon Sep 17 00:00:00 2001 From: diguage Date: Fri, 7 Aug 2020 07:25:05 +0800 Subject: [PATCH] Use Groovy syntax highlighting in reference manual Closes gh-25554 --- src/docs/asciidoc/languages/dynamic-languages.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/docs/asciidoc/languages/dynamic-languages.adoc b/src/docs/asciidoc/languages/dynamic-languages.adoc index b2f88f4a36..5b2eda2b41 100644 --- a/src/docs/asciidoc/languages/dynamic-languages.adoc +++ b/src/docs/asciidoc/languages/dynamic-languages.adoc @@ -67,7 +67,7 @@ The following example defines a class that has a dependency on the `Messenger` i The following example implements the `Messenger` interface in Groovy: -[source,java,indent=0] +[source,groovy,indent=0] [subs="verbatim,quotes"] ---- // from the file 'Messenger.groovy' @@ -282,7 +282,7 @@ surrounded by quotation marks. The following listing shows the changes that you (the developer) should make to the `Messenger.groovy` source file when the execution of the program is paused: -[source,java,indent=0] +[source,groovy,indent=0] [subs="verbatim,quotes"] ---- package org.springframework.scripting @@ -371,7 +371,7 @@ constructors and properties 100% clear, the following mixture of code and config does not work: .An approach that cannot work -[source,java,indent=0] +[source,groovy,indent=0] [subs="verbatim,quotes"] ---- // from the file 'Messenger.groovy' @@ -697,7 +697,7 @@ beans, you have to enable the "`refreshable beans`" functionality. See The following example shows an `org.springframework.web.servlet.mvc.Controller` implemented by using the Groovy dynamic language: -[source,java,indent=0] +[source,groovy,indent=0] [subs="verbatim,quotes"] ---- // from the file '/WEB-INF/groovy/FortuneController.groovy'