Update regarding "2002-present" pattern for copyright headers

master
Sam Brannen 9 months ago
parent
commit
9343c8f9b6
  1. 14
      Code-Style.md

14
Code-Style.md

@ -34,7 +34,7 @@ Each source file must specify the following license at the very top of the file:
```java ```java
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-present the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -50,18 +50,6 @@ Each source file must specify the following license at the very top of the file:
*/ */
``` ```
Always check the date range in the license header. For example, if you've modified a file in 2022 whose header still reads:
```
* Copyright 2002-2018 the original author or authors.
```
Then be sure to update it to 2023 accordingly:
```
* Copyright 2002-2023 the original author or authors.
```
### Import statements ### Import statements
The import statements are structured as follow: The import statements are structured as follow:

Loading…
Cancel
Save