Skip to content

Update to Java 8 regarding the library/API usage #1154

@simonharrer

Description

@simonharrer
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev: code-qualityIssues related to code or architecture decisions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions