Skip to content

Commit a6d3de6

Browse files
authored
Merge branch 'main' into DDC_JDK11
2 parents 540d204 + fc16144 commit a6d3de6

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ updates:
1414
- dependency-name: "org.sonarsource.java:sonar-java-plugin"
1515
# Ignore all versions : cf pom.xml comments
1616
- dependency-name: "com.mycila:license-maven-plugin"
17+
- dependency-name: "org.springframework.data:spring-data-commons"
18+
update-types: ["version-update:semver-patch", "version-update:semver-minor"]

pom.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@
219219
<plugin>
220220
<groupId>org.apache.maven.plugins</groupId>
221221
<artifactId>maven-compiler-plugin</artifactId>
222-
<version>3.13.0</version>
222+
<version>3.14.0</version>
223223
</plugin>
224224
<plugin>
225225
<groupId>org.apache.maven.plugins</groupId>
226226
<artifactId>maven-surefire-plugin</artifactId>
227-
<version>3.5.2</version>
227+
<version>3.5.3</version>
228228
</plugin>
229229
<plugin>
230230
<groupId>org.jacoco</groupId>
@@ -357,13 +357,13 @@
357357
<artifactItem>
358358
<groupId>org.springframework</groupId>
359359
<artifactId>spring-webmvc</artifactId>
360-
<version>5.2.3.RELEASE</version>
360+
<version>6.2.10</version>
361361
<type>jar</type>
362362
</artifactItem>
363363
<artifactItem>
364364
<groupId>org.springframework</groupId>
365365
<artifactId>spring-web</artifactId>
366-
<version>5.2.3.RELEASE</version>
366+
<version>6.2.10</version>
367367
<type>jar</type>
368368
</artifactItem>
369369
<artifactItem>
@@ -381,7 +381,11 @@
381381
<artifactItem>
382382
<groupId>org.springframework.data</groupId>
383383
<artifactId>spring-data-commons</artifactId>
384-
<version>2.2.4.RELEASE</version>
384+
<!-- <version>2.2.4.RELEASE</version> -->
385+
<version>2.7.18</version>
386+
<!-- KO with version 3.x -->
387+
<!-- <version>3.0.0</version> -->
388+
<!-- <version>3.5.3</version> -->
385389
<type>jar</type>
386390
</artifactItem>
387391
</artifactItems>
@@ -465,7 +469,7 @@
465469
<!-- Execute integration tests -->
466470
<groupId>org.apache.maven.plugins</groupId>
467471
<artifactId>maven-failsafe-plugin</artifactId>
468-
<version>3.5.2</version>
472+
<version>3.5.3</version>
469473
<executions>
470474
<execution>
471475
<goals>

src/main/java/org/greencodeinitiative/creedengo/java/checks/MakeNonReassignedVariablesConstants.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ public List<Kind> nodesToVisit() {
2525
@Override
2626
public void visitNode(@Nonnull Tree tree) {
2727
VariableTree variableTree = (VariableTree) tree;
28-
LOGGER.debug("Variable > " + getVariableNameForLogger(variableTree));
29-
LOGGER.debug(" => isNotFinalAndNotStatic(variableTree) = " + isNotFinalAndNotStatic(variableTree));
30-
LOGGER.debug(" => usages = " + variableTree.symbol().usages().size());
31-
LOGGER.debug(" => isNotReassigned = " + isNotReassigned(variableTree));
32-
LOGGER.debug(" => isPassedAsNonFinalParameter = " + isPassedAsNonFinalParameter(variableTree));
33-
28+
if (LOGGER.isDebugEnabled()) {
29+
LOGGER.debug("Variable > {}", getVariableNameForLogger(variableTree));
30+
LOGGER.debug(" => isNotFinalAndNotStatic(variableTree) = {}", isNotFinalAndNotStatic(variableTree));
31+
LOGGER.debug(" => usages = {}", variableTree.symbol().usages().size());
32+
LOGGER.debug(" => isNotReassigned = {}", isNotReassigned(variableTree));
33+
LOGGER.debug(" => isPassedAsNonFinalParameter = {}", isPassedAsNonFinalParameter(variableTree));
34+
}
3435
if (isNotFinalAndNotStatic(variableTree) && isNotReassigned(variableTree)) {
3536
reportIssue(tree, MESSAGE_RULE);
3637
} else {

0 commit comments

Comments
 (0)