Add and enforce spring checkstyle configurations

This commit is contained in:
Simon DeMartini
2022-03-19 00:25:55 -07:00
committed by Dave Syer
parent 7254dc8be7
commit 57c54fad2f
46 changed files with 1397 additions and 956 deletions

View File

@@ -1,3 +1,19 @@
/*
* Copyright 2019-2022 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.guice;
import com.google.inject.AbstractModule;
@@ -346,7 +362,7 @@ public class SuperClassTests {
static class DisableJITConfig {
@Bean
public AbstractModule disableJITModule() {
AbstractModule disableJITModule() {
return new AbstractModule() {
@Override
protected void configure() {
@@ -362,27 +378,27 @@ public class SuperClassTests {
static class ModulesConfig extends DisableJITConfig {
@Bean
public IGrandChild iGrandChild() {
IGrandChild iGrandChild() {
return new IGrandChildImpl();
}
@Bean
public IGrandChildWithType<String> iChildString() {
IGrandChildWithType<String> iChildString() {
return new IGrandChildString();
}
@Bean
public IGrandChildWithType<Integer> iChildInteger() {
IGrandChildWithType<Integer> iChildInteger() {
return new IGrandChildInteger();
}
@Bean
public SubFoo subFoo() {
SubFoo subFoo() {
return new SubFoo();
}
@Bean
public SubStringFoo stringFoo() {
SubStringFoo stringFoo() {
return new SubStringFoo();
}