Skip to content

Commit 8ea186c

Browse files
committed
fix: add readResolve for LicenseExpression objects
1 parent 25b1f63 commit 8ea186c

File tree

1 file changed

+8
-2
lines changed
  • plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/api

1 file changed

+8
-2
lines changed

plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/api/LicenseExpression.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ sealed class LicenseExpression : LicenseExpressionSet, java.io.Serializable {
5454
}
5555
}
5656

57-
object NONE : LicenseExpression()
58-
object NOASSERTION : LicenseExpression()
57+
object NONE : LicenseExpression() {
58+
private fun readResolve(): Any =
59+
NONE
60+
}
61+
object NOASSERTION : LicenseExpression() {
62+
private fun readResolve(): Any =
63+
NONE
64+
}
5965
}
6066

6167
private fun List<URI>.asString() =

0 commit comments

Comments
 (0)