Skip to content

Commit

Permalink
minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
dedece35 committed Jan 3, 2025
1 parent ee5d5f6 commit 38952d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- [#88](https://github.com/green-code-initiative/creedengo-java/pull/88) Add new Java rule GCI94 - Use orElseGet instead of orElse
- [#88](https://github.com/green-code-initiative/creedengo-java/pull/88) Add new Java rule GCI82 - Make non reassigned variables constants
- [#89](https://github.com/green-code-initiative/creedengo-java/pull/89) Add new Java rule GCI82 - Make non reassigned variables constants

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"GCI77",
"GCI78",
"GCI79",
"GCI82",
"GCI82",
"GCI94"
]
}
4 changes: 2 additions & 2 deletions src/test/files/MakeNonReassignedVariablesConstants.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import java.util.logging.Logger;

public class GCI82MakeNonReassignedVariablesConstants {
public class MakeNonReassignedVariablesConstants {

private final Logger logger = Logger.getLogger(""); // Compliant

Expand All @@ -14,7 +14,7 @@ public class GCI82MakeNonReassignedVariablesConstants {
private String varDefinedInClassReassigned = "0"; // Compliant
private String varDefinedInConstructorReassigned = "1"; // Compliant

public GCI82MakeNonReassignedVariablesConstants() {
public MakeNonReassignedVariablesConstants() {
varDefinedInConstructorReassigned = "3";
logger.info(varDefinedInConstructorReassigned);
}
Expand Down

0 comments on commit 38952d7

Please sign in to comment.