Skip to content

Commit

Permalink
Fix a document error. (apache#3084)
Browse files Browse the repository at this point in the history
  • Loading branch information
董宗磊 authored and terrymanu committed Sep 23, 2019
1 parent 6a21b11 commit d4f9b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- Return values are named with `result`; Variables in the loop structure are named with `each`; Replace `each` with `entry` in map.
- Exceptions when catch are named with `ex`; Exceptions when catch but do nothing are named with `ignored`.
- Name property files with camel-case and lowercase first letters.
- Have constants on the left and variable on the right in `=` and `equals` conditional expressions; Have variable on the left and constants on the right in `greater than` and `less than` conditional expressions.
- Have constants on the left and variable on the right in `==` and `equals` conditional expressions; Have variable on the left and constants on the right in `greater than` and `less than` conditional expressions.
- Use `LinkedList` in priority. Use `ArrayList` for use index to get element only.
- Use capacity based `Collection` such as `ArrayList`, `HashMap` must indicate initial capacity to avoid recalculate capacity.
- Design class as `final` class expect abstract class for extend.
Expand Down

0 comments on commit d4f9b7f

Please sign in to comment.