Skip to content

Commit 2338473

Browse files
committed
Transient State fields, fix CHANGES
1 parent 387b14d commit 2338473

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13-
13+
### Added
14+
* Clang and Black no longer break the build when the binary is unavailable, if they will not be run during that build ([#1257](https://github.com/diffplug/spotless/pull/1257))
1415
## [2.27.0] - 2022-06-30
1516
### Added
1617
* Support for `MAC_CLASSIC` (`\r`) line ending ([#1243](https://github.com/diffplug/spotless/pull/1243) fixes [#1196](https://github.com/diffplug/spotless/issues/1196))
@@ -20,7 +21,6 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
2021
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
2122
* Minimum supported version also bumped to `1.2.1` (diktat is based on ktlint and has the same backward compatibility issues).
2223
* Bump default `ktfmt` version to latest `0.37` -> `0.39` ([#1240](https://github.com/diffplug/spotless/pull/1240))
23-
* Clang and Black no longer break the build when the binary is unavailable, if they will not be run during that build ([#1257](https://github.com/diffplug/spotless/pull/1257))
2424

2525
## [2.26.2] - 2022-06-11
2626
### Fixed

lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ static class State implements Serializable {
9191
// used for up-to-date checks and caching
9292
final String version;
9393
final @Nullable String style;
94-
final ForeignExe exe;
94+
final transient ForeignExe exe;
9595
// used for executing
96-
private @Nullable List<String> args;
96+
private transient @Nullable List<String> args;
9797

9898
State(ClangFormatStep step, ForeignExe pathToExe) {
9999
this.version = step.version;

lib/src/main/java/com/diffplug/spotless/python/BlackStep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ static class State implements Serializable {
7474
private static final long serialVersionUID = -1825662356883926318L;
7575
// used for up-to-date checks and caching
7676
final String version;
77-
final ForeignExe exe;
77+
final transient ForeignExe exe;
7878
// used for executing
79-
private @Nullable String[] args;
79+
private transient @Nullable String[] args;
8080

8181
State(BlackStep step, ForeignExe exeAbsPath) {
8282
this.version = step.version;

0 commit comments

Comments
 (0)