Skip to content

Use Java8 features in APIs now #108

Closed
@jboynes

Description

@jboynes

There have been a couple of issues recently where more elegant solutions could be provided using features from Java 8. These have included

  • use of lambda functions for datastore transaction
  • direct use of standard function classes rather than Guava equivalents
  • use of new Time classes
  • use of Optional rather than JSR-305 annotations

To do this we would need to raise the minimum JDK version from 7 to 8 which cause may problems for users who still use older Java runtimes. However, Oracle have already EOLed their public version of Java 7.

The main advantage of doing this now rather than waiting is that it avoids needing to rev a new version of the API to make use of these idioms and avoids having to support two API versions.

Metadata

Metadata

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions