#KT-13750 fix (#951)

This commit is contained in:
Simon Ogorodnik
2016-09-13 18:12:22 +03:00
committed by Dmitry Jemerov
parent 19ef29e96c
commit 115d63a2f3
6 changed files with 70 additions and 10 deletions
@@ -0,0 +1,12 @@
import java.io.Serializable;
public class Bar implements Serializable {
private static final long serialVersionUID = 0;
int foobar = 0;
}
public class Foo {
private static final long serialVersionUID = 0;
int foobar = 0;
}
@@ -0,0 +1,17 @@
import java.io.Serializable
class Bar : Serializable {
internal var foobar = 0
companion object {
@JvmStatic private val serialVersionUID: Long = 0
}
}
class Foo {
internal var foobar = 0
companion object {
private val serialVersionUID: Long = 0
}
}
+1 -1
View File
@@ -11,6 +11,6 @@ class Language(protected var code: String) : Serializable {
companion object {
var ENGLISH = Language("en")
var SWEDISH = Language("sv")
private val serialVersionUID = -2442762969929206780L
@JvmStatic private val serialVersionUID = -2442762969929206780L
}
}