Property Deprecation.Level values are spelled in lowercase

This commit is contained in:
Kris De Volder
2019-02-07 09:15:20 -08:00
parent ee7aa8139e
commit 9ddd234790
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ import java.io.Serializable;
@SuppressWarnings("serial")
public class Deprecation implements Serializable {
private Level level = Level.WARNING;
private Level level = Level.warning;
private String reason;
@@ -102,12 +102,12 @@ public class Deprecation implements Serializable {
/**
* The property is still bound.
*/
WARNING,
warning,
/**
* The property has been removed and is no longer bound.
*/
ERROR
error
}
}

View File

@@ -4026,7 +4026,7 @@ public class ApplicationYamlEditorTest extends AbstractPropsEditorTest {
data("spring.devtools.remote.debug.local-port", "java.lang.Integer",
8000, "Local remote debug server port."
);
deprecate("spring.devtools.remote.debug.local-port", null, "No longer supported", Level.ERROR);
deprecate("spring.devtools.remote.debug.local-port", null, "No longer supported", Level.error);
Editor editor = harness.newEditor(
"spring:\n" +