Skip to content

Commit

Permalink
refactor: Refaster rules related to expressions dealing with Strings (
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie and TeamModerne authored Feb 21, 2024
1 parent 35efea3 commit 45e00d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rewrite-core/src/main/java/org/eclipse/jgit/util/FS.java
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ private static class GobblerThread extends Thread {
GobblerThread(Process p, String[] command, File dir) {
this.p = p;
this.desc = Arrays.toString(command);
this.dir = Objects.toString(dir);
this.dir = String.valueOf(dir);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import static java.util.Objects.requireNonNull;

Expand Down Expand Up @@ -153,7 +152,7 @@ private ValueNode mapValue(@Nullable Object value) {
} else if (value == null) {
return JsonNodeFactory.instance.nullNode();
}
throw new IllegalArgumentException(Objects.toString(value));
throw new IllegalArgumentException(String.valueOf(value));
}
});
}
Expand Down

0 comments on commit 45e00d7

Please sign in to comment.