Skip to content

Commit

Permalink
chore: suppressed replace lambda with method reference warning in Spr…
Browse files Browse the repository at this point in the history
…ingBootGenerator (#3371) (3443)

Replace lambda with method reference in SpringBootGenerator (#3371)
---
Merge branch 'eclipse-jkube:master' into 3371/refactor/replace-lambda-with-method-reference
---
fix: address Java 8 compatibility with suppressed method reference warning

               - Suppressed the Convert2MethodRef warning to avoid issues until the project baseline is upgraded to Java 11.
               - Added a TODO comment to revisit and remove this workaround once the project moves to Java 11 or higher.

               This ensures that the code remains compatible with Java 8 while avoiding unnecessary warnings.
---
fix: address Java 8 compatibility with suppressed method reference warning

               - Suppressed the Convert2MethodRef warning to avoid issues until the project baseline is upgraded to Java 11.
               - Added a TODO comment to revisit and remove this workaround once the project moves to Java 11 or higher.

               This ensures that the code remains compatible with Java 8 while avoiding unnecessary warnings.
  • Loading branch information
Aryant-Tripathi authored Oct 16, 2024
1 parent 82d13bc commit 1aeb58d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public List<ImageConfiguration> customize(List<ImageConfiguration> configs, bool

@Override
protected Map<String, String> getEnv(boolean prePackagePhase) {
//TODO: Java8 compatibility, remove warning.
// Remove annotation once baseline is set to Java11+
//noinspection Convert2MethodRef
return nestedGenerator.getEnv(ppp -> super.getEnv(ppp), prePackagePhase);
}

Expand Down

0 comments on commit 1aeb58d

Please sign in to comment.