Polish
This commit is contained in:
parent
9b5febea20
commit
ea52ecc5e0
|
|
@ -205,30 +205,8 @@ class ExceptionHandlerTests {
|
|||
}
|
||||
}
|
||||
|
||||
static class Person {
|
||||
record Person(String name) {}
|
||||
|
||||
private final String name;
|
||||
|
||||
Person(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
static class Error {
|
||||
|
||||
private final String error;
|
||||
|
||||
Error(String error) {
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public String getError() {
|
||||
return error;
|
||||
}
|
||||
}
|
||||
record Error(String error) {}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -108,7 +108,7 @@ public class CustomRequestAttributesRequestContextHolderTests {
|
|||
static class WebConfig implements WebMvcConfigurer {
|
||||
|
||||
@Bean
|
||||
public SingletonController singletonController() {
|
||||
SingletonController singletonController() {
|
||||
return new SingletonController();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue