Skip to content

Commit

Permalink
Add final and maximum line length
Browse files Browse the repository at this point in the history
  • Loading branch information
JooHyukKim authored and cowtowncoder committed Dec 18, 2023
1 parent b50ba9e commit 7a246aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contribution/jackson-coding-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ import com.fasterxml.jackson.other.modules.*; // and some Component-specific imp
- **Internal Methods**: Prefix methods used within the class with an underscore.
- **Sub-Class Methods**: Optionally, use a leading underscore for methods intended for subclass use, but not for
external class calls.

## Use of `final` keyword

- **Fields**: Strongly encourage the use of `final` for fields, assigning them in the constructor to promote immutability.
- **Method Parameters**: Allowed but not necessarily encouraged.
- **Local Variables**: Encouraged where applicable.

## Maximum Line Length

- **Recommendation**: Lines should not exceed 100 characters.
- **Javadocs**: Strict adherence to a maximum of 100 characters per line is recommended.

0 comments on commit 7a246aa

Please sign in to comment.