diff --git a/src/it/test-projects/creedengo-java-plugin-test-project/src/main/java/org/greencodeinitiative/creedengo/java/checks/UseOptionalOrElseGetVsOrElse.java b/src/it/test-projects/creedengo-java-plugin-test-project/src/main/java/org/greencodeinitiative/creedengo/java/checks/UseOptionalOrElseGetVsOrElse.java index 93a29f7..20a0dec 100644 --- a/src/it/test-projects/creedengo-java-plugin-test-project/src/main/java/org/greencodeinitiative/creedengo/java/checks/UseOptionalOrElseGetVsOrElse.java +++ b/src/it/test-projects/creedengo-java-plugin-test-project/src/main/java/org/greencodeinitiative/creedengo/java/checks/UseOptionalOrElseGetVsOrElse.java @@ -1,5 +1,3 @@ -import java.util.Optional; - /* * creedengo - Java language - Provides rules to reduce the environmental footprint of your Java programs * Copyright © 2024 Green Code Initiative (https://green-code-initiative.org/) @@ -17,6 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + +import java.util.Optional; + class UseOptionalOrElseGetVsOrElse { private static Optional variable = Optional.empty(); diff --git a/src/test/files/UseOptionalOrElseGetVsOrElse.java b/src/test/files/UseOptionalOrElseGetVsOrElse.java index 93a29f7..20a0dec 100644 --- a/src/test/files/UseOptionalOrElseGetVsOrElse.java +++ b/src/test/files/UseOptionalOrElseGetVsOrElse.java @@ -1,5 +1,3 @@ -import java.util.Optional; - /* * creedengo - Java language - Provides rules to reduce the environmental footprint of your Java programs * Copyright © 2024 Green Code Initiative (https://green-code-initiative.org/) @@ -17,6 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + +import java.util.Optional; + class UseOptionalOrElseGetVsOrElse { private static Optional variable = Optional.empty();