Skip to content

Commit ed2196f

Browse files
committed
Merge pull request #20708 from dreis2211
* gh-20708: Polish GroovyTemplateAutoConfiguration Closes gh-20708
2 parents e35bf8f + 798e21f commit ed2196f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -74,8 +74,7 @@ public static class GroovyMarkupConfiguration {
7474

7575
private final GroovyTemplateProperties properties;
7676

77-
public GroovyMarkupConfiguration(ApplicationContext applicationContext, GroovyTemplateProperties properties,
78-
ObjectProvider<MarkupTemplateEngine> templateEngine) {
77+
public GroovyMarkupConfiguration(ApplicationContext applicationContext, GroovyTemplateProperties properties) {
7978
this.applicationContext = applicationContext;
8079
this.properties = properties;
8180
}
@@ -96,8 +95,8 @@ public void checkTemplateLocationExists() {
9695
/**
9796
* MarkupTemplateEngine could be loaded from groovy-templates or groovy-all.
9897
* Unfortunately it's quite common for people to use groovy-all and not actually
99-
* need templating support. This method check attempts to check the source jar so
100-
* that we can skip the {@code /template} folder check for such cases.
98+
* need templating support. This method attempts to check the source jar so that
99+
* we can skip the {@code /template} folder check for such cases.
101100
* @return true if the groovy-all jar is used
102101
*/
103102
private boolean isUsingGroovyAllJar() {

0 commit comments

Comments
 (0)