Fix default encoding in CONTRIBUTING documentation
Sources should be using UTF-8.
Issue: SPR-14674
Cherry-picked from: d1f60e3de1
This commit is contained in:
parent
558a10b54f
commit
fcf3ccba98
|
|
@ -88,15 +88,14 @@ present in the framework.
|
||||||
1. Preserve existing formatting; i.e. do not reformat code for its own sake
|
1. Preserve existing formatting; i.e. do not reformat code for its own sake
|
||||||
1. Search the codebase using `git grep` and other tools to discover common
|
1. Search the codebase using `git grep` and other tools to discover common
|
||||||
naming conventions, etc.
|
naming conventions, etc.
|
||||||
1. Latin-1 (ISO-8859-1) encoding for Java sources; use `native2ascii` to convert
|
1. UTF-8 encoding for Java sources
|
||||||
if necessary
|
|
||||||
|
|
||||||
|
|
||||||
### Add Apache license header to all new classes
|
### Add Apache license header to all new classes
|
||||||
|
|
||||||
```java
|
```java
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2015 the original author or authors.
|
* Copyright 2002-2016 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.
|
||||||
|
|
@ -124,11 +123,11 @@ modified a file in 2015 whose header still reads:
|
||||||
* Copyright 2002-2011 the original author or authors.
|
* Copyright 2002-2011 the original author or authors.
|
||||||
```
|
```
|
||||||
|
|
||||||
Then be sure to update it to 2015 accordingly:
|
Then be sure to update it to 2016 accordingly:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2015 the original author or authors.
|
* Copyright 2002-2016 the original author or authors.
|
||||||
```
|
```
|
||||||
|
|
||||||
### Use @since tags for newly-added public API types and methods
|
### Use @since tags for newly-added public API types and methods
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue