Skip to content

Commit 73a34b6

Browse files
committed
Fix checkstyle issues
See gh-32582
1 parent e8363d2 commit 73a34b6

File tree

6 files changed

+25
-11
lines changed

6 files changed

+25
-11
lines changed

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/nativeimage/advanced/customhints/MyClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class MyClass {
2020

21-
public void sayHello(String name) {
21+
void sayHello(String name) {
2222
System.out.println("Hello " + name);
2323
}
2424

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/nativeimage/advanced/customhints/MyInterface.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
package org.springframework.boot.docs.nativeimage.advanced.customhints;
1818

19-
/**
20-
* @author Moritz Halbritter
21-
*/
22-
public interface MyInterface {
19+
interface MyInterface {
2320

2421
}

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/nativeimage/developingyourfirstapplication/sampleapplication/MyApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public static void main(String[] args) {
3434
SpringApplication.run(MyApplication.class, args);
3535
}
3636

37-
}
37+
}

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/nativeimage/introducinggraalvmnativeimages/understandingaotprocessing/sourcecodegeneration/MyConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ public MyBean myBean() {
2727
return new MyBean();
2828
}
2929

30-
}
30+
}

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/nativeimage/introducinggraalvmnativeimages/understandingaotprocessing/sourcecodegeneration/MyConfiguration__BeanDefinitions.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1+
/*
2+
* Copyright 2012-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.boot.docs.nativeimage.introducinggraalvmnativeimages.understandingaotprocessing.sourcecodegeneration;
218

319
import org.springframework.beans.factory.aot.BeanInstanceSupplier;
420
import org.springframework.beans.factory.config.BeanDefinition;
521
import org.springframework.beans.factory.support.RootBeanDefinition;
622

723
/**
8-
* Bean definitions for {@link MyConfiguration}
24+
* Bean definitions for {@link MyConfiguration}.
925
*/
1026
@SuppressWarnings("javadoc")
1127
public class MyConfiguration__BeanDefinitions {
1228

1329
/**
14-
* Get the bean definition for 'myConfiguration'
30+
* Get the bean definition for 'myConfiguration'.
1531
*/
1632
public static BeanDefinition getMyConfigurationBeanDefinition() {
1733
Class<?> beanType = MyConfiguration.class;
@@ -29,7 +45,7 @@ private static BeanInstanceSupplier<MyBean> getMyBeanInstanceSupplier() {
2945
}
3046

3147
/**
32-
* Get the bean definition for 'myBean'
48+
* Get the bean definition for 'myBean'.
3349
*/
3450
public static BeanDefinition getMyBeanBeanDefinition() {
3551
Class<?> beanType = MyBean.class;
@@ -38,4 +54,4 @@ public static BeanDefinition getMyBeanBeanDefinition() {
3854
return beanDefinition;
3955
}
4056

41-
}
57+
}

src/checkstyle/checkstyle-suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<suppress files="[\\/]spring-boot-docs[\\/]" checks="JavadocPackage|JavadocType|JavadocVariable|SpringDeprecatedCheck" />
3030
<suppress files="[\\/]spring-boot-docs[\\/]" checks="SpringJavadoc" message="\@since" />
3131
<suppress files="[\\/]spring-boot-docs[\\/].*jooq" checks="AvoidStaticImport" />
32+
<suppress files="[\\/]spring-boot-docs[\\/].*MyConfiguration__BeanDefinitions" checks="JavadocMethod|SpringHideUtilityClassConstructor" />
3233
<suppress files="[\\/]spring-boot-smoke-tests[\\/]" checks="JavadocPackage|JavadocType" />
3334
<suppress files="[\\/]spring-boot-smoke-tests[\\/]" checks="ImportControl" />
3435
<suppress files="[\\/]spring-boot-smoke-tests[\\/]" id="mainCodeIllegalImportCheck" />

0 commit comments

Comments
 (0)