Fixes for test(@JvmStatic -> const), fix for prototype assign
This commit is contained in:
@@ -311,7 +311,7 @@ class Converter private constructor(
|
|||||||
//TODO: annotations from getter/setter?
|
//TODO: annotations from getter/setter?
|
||||||
val annotations = field?.let { convertAnnotations(it) } ?: Annotations.Empty
|
val annotations = field?.let { convertAnnotations(it) } ?: Annotations.Empty
|
||||||
|
|
||||||
val modifiers = propertyInfo.modifiers + (field?.let{ specialModifiersCase(field) } ?: Modifiers.Empty)
|
val modifiers = (propertyInfo.modifiers + (field?.let{ specialModifiersCase(field) } ?: Modifiers.Empty))
|
||||||
|
|
||||||
val name = propertyInfo.identifier
|
val name = propertyInfo.identifier
|
||||||
if (field is PsiEnumConstant) {
|
if (field is PsiEnumConstant) {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class Modifiers(modifiers: Collection<Modifier>) : Element() {
|
|||||||
fun accessModifier(): Modifier? = modifiers.firstOrNull { it in ACCESS_MODIFIERS }
|
fun accessModifier(): Modifier? = modifiers.firstOrNull { it in ACCESS_MODIFIERS }
|
||||||
|
|
||||||
operator fun plus(other: Modifiers): Modifiers {
|
operator fun plus(other: Modifiers): Modifiers {
|
||||||
return Modifiers(this.modifiers + other.modifiers).assignNoPrototype()
|
return Modifiers(this.modifiers + other.modifiers).assignPrototypesFrom(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
+1
-1
@@ -11,6 +11,6 @@ class Language(protected var code: String) : Serializable {
|
|||||||
companion object {
|
companion object {
|
||||||
var ENGLISH = Language("en")
|
var ENGLISH = Language("en")
|
||||||
var SWEDISH = Language("sv")
|
var SWEDISH = Language("sv")
|
||||||
@JvmStatic private val serialVersionUID = -2442762969929206780L
|
private const val serialVersionUID = -2442762969929206780L
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user