-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update to Java 8 regarding the library/API usage #1154
Copy link
Copy link
Closed
Labels
dev: code-qualityIssues related to code or architecture decisionsIssues related to code or architecture decisions
Description
simonharrer
opened on Apr 9, 2016
Issue body actions
- Java IO with Java NIO (File -> Path) (available since Java 7)
- Reason: more type checking instead of String parsing, more exceptions instead of indicating failure through a boolean return type
- Date/Calendar with java.time (available since Java 8)
- Reason: java.time uses immutable constructs, whereas Date/Calendar has state and is probably the worst Java api ever
- Use prepared statements instead of simple Strings (available since quite a long time) of the JDBC API
- Use Optional instead of returning null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dev: code-qualityIssues related to code or architecture decisionsIssues related to code or architecture decisions
Type
Fields
Give feedbackNo fields configured for issues without a type.