Skip to content

Commit 949b5f6

Browse files
authored
Merge pull request #820 from solven-eu/cleanthat/headfor-refs_heads_master-2024-07-19
Cleanthat
2 parents d166e1d + 6f972be commit 949b5f6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CHANGES.MD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format
1919

2020
* `ModifierOrder` shall not prevent further modifiers mutators to operate correctly.
2121

22-
2322
## [2.19]
2423

2524
### Changes

java/src/main/java/eu/solven/cleanthat/engine/java/refactorer/mutators/UseTextBlocks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected boolean processNotRecursively(NodeAndSymbolSolver<?> node) {
8080
return false;
8181
}
8282

83-
String concat = listString.stream().collect(Collectors.joining());
83+
var concat = listString.stream().collect(Collectors.joining());
8484

8585
// TextBlocks are '\n'-based
8686
List<String> rows = Arrays.asList(concat.split("\n"));

java/src/test/java/eu/solven/cleanthat/engine/java/refactorer/javaparser/TestMutatorOnFiles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Benoit Lacelle - SOLVEN
2+
* Copyright 2023-2024 Benoit Lacelle - SOLVEN
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -154,7 +154,7 @@ private void testSourceWithMutator(IWalkingMutator<Node, Node> mutator, String a
154154
public void testWithDedicatedMutator() throws IOException {
155155
LOGGER.info("Processing: {}", resource);
156156

157-
if (resource.getFilename().equals("Issue807.java")) {
157+
if ("Issue807.java".equals(resource.getFilename())) {
158158
LOGGER.warn("We skip {} because JavaParser produces an invalid Java file", resource.getFilename());
159159
return;
160160
}
@@ -168,7 +168,7 @@ public void testWithDedicatedMutator() throws IOException {
168168
public void testWithAllMutators() throws IOException {
169169
LOGGER.info("Processing: {}", resource);
170170

171-
if (resource.getFilename().equals("Issue807.java")) {
171+
if ("Issue807.java".equals(resource.getFilename())) {
172172
LOGGER.warn("We skip {} because JavaParser produces an invalid Java file", resource.getFilename());
173173
return;
174174
}

0 commit comments

Comments
 (0)