This commit is contained in:
Stéphane Nicoll 2024-02-02 18:56:41 +01:00
parent 9b5febea20
commit ea52ecc5e0
2 changed files with 4 additions and 26 deletions

View File

@ -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) {}
}

View File

@ -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();
}
}