Skip to content

[Hacktoberfest] Ensure the code compiled with java 11 and find places to use new API's from java 11. #332

@ahmetoz

Description

@ahmetoz

Situation
We migrated the app from java 8 to java 11, on: https://github.com/commercetools/commercetools-project-sync/releases/tag/3.12.0

Complication
As we could use java 11, we might benefit of new apis from java 11 in the project.
Also we are not sure if the project is compiling with java 11:

sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}

Resolution
Ensure the code compiled with java 11 and find places to use API's from java 11. If possible refactor code to use new APIs from java 11.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions