Property Deprecation.Level values are spelled in lowercase
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user