Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Feature: require Java ≥ 7 to reduce code redundancy #88

Open
rillig opened this issue Jun 5, 2017 · 0 comments
Open

Feature: require Java ≥ 7 to reduce code redundancy #88

rillig opened this issue Jun 5, 2017 · 0 comments

Comments

@rillig
Copy link
Contributor

rillig commented Jun 5, 2017

Currently, the required Java version for sfntly is not documented anywhere. By experimenting I found out that with the exception of the SafeVarargs annotation, sfntly currently targets Java 6.

Changing the minimally supported Java version to 7 would bring these benefits:

  • Less code to write for try-with-resources
  • Less code to write for generic types
  • Less code to write for implementing equals/hashCode

Changing the minimally supported Java version to 8 would bring these benefits:

  • Even less code to write for generic types

The required Java version should be documented somewhere.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant