mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Remove unused configuration map
Remove the configuration map defined in `GroovyTemplateProperties` which isn't used. Ironically, that configuration map was exposed with the exact same prefix as `GroovyMarkupConfigurer`, which broke IDEs support since two entries had the exact same prefix. Fixes gh-2840
This commit is contained in:
parent
337673b31d
commit
326bdf29c2
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2014 the original author or authors.
|
* Copyright 2012-2015 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
package org.springframework.boot.autoconfigure.groovy.template;
|
package org.springframework.boot.autoconfigure.groovy.template;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties;
|
import org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
|
||||||
@ -45,11 +42,6 @@ public class GroovyTemplateProperties extends AbstractViewResolverProperties {
|
|||||||
*/
|
*/
|
||||||
private String suffix = DEFAULT_SUFFIX;
|
private String suffix = DEFAULT_SUFFIX;
|
||||||
|
|
||||||
/**
|
|
||||||
* Configuration to pass to TemplateConfiguration.
|
|
||||||
*/
|
|
||||||
private Map<String, Object> configuration = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
public String getPrefix() {
|
public String getPrefix() {
|
||||||
return this.prefix;
|
return this.prefix;
|
||||||
}
|
}
|
||||||
@ -66,12 +58,4 @@ public class GroovyTemplateProperties extends AbstractViewResolverProperties {
|
|||||||
this.suffix = suffix;
|
this.suffix = suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConfiguration(Map<String, Object> configuration) {
|
|
||||||
this.configuration = configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<String, Object> getConfiguration() {
|
|
||||||
return this.configuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user