Skip to content

Commit c260e4b

Browse files
committed
Add SpringHeaderCheck to enforce using "2012-present"
This commit also fixes copyright headers that don't follow it. Signed-off-by: Johnny Lim <[email protected]>
1 parent 7fb5369 commit c260e4b

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<property name="file" value="${config_loc}/checkstyle-suppressions.xml"/>
88
</module>
99
<module name="io.spring.javaformat.checkstyle.SpringChecks" />
10+
<module name="io.spring.javaformat.checkstyle.check.SpringHeaderCheck">
11+
<property name="headerCopyrightPattern" value="2012-present" />
12+
</module>
1013
<module name="com.puppycrawl.tools.checkstyle.TreeWalker">
1114
<module name="io.spring.javaformat.checkstyle.check.SpringDeprecatedCheck" />
1215
<module name="io.spring.javaformat.checkstyle.check.SpringJUnit5Check" />

core/spring-boot/src/main/java/org/springframework/boot/context/metrics/buffering/BufferedStartupStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core/spring-boot/src/main/java/org/springframework/boot/context/metrics/buffering/BufferingApplicationStartup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core/spring-boot/src/main/java/org/springframework/boot/context/metrics/buffering/StartupTimeline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core/spring-boot/src/main/java/org/springframework/boot/context/properties/ConstructorBound.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core/spring-boot/src/main/java/org/springframework/boot/convert/PeriodStyle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core/spring-boot/src/main/java/org/springframework/boot/convert/PeriodToStringConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/web/graphql/runtimewiring/GreetingController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-present the original author or authors.
2+
* Copyright 2012-present the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)