Skip to content

Commit 623304a

Browse files
committed
Cleanup vom JvmField
1 parent dc161cd commit 623304a

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

app/src/main/kotlin/info/appdev/chartexample/listviewitems/ChartItem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.github.mikephil.charting.data.ChartData
88
* Base class of the Chart ListView items
99
*/
1010
@Suppress("unused")
11-
abstract class ChartItem internal constructor(@JvmField var chartData: ChartData<*>) {
11+
abstract class ChartItem internal constructor(var chartData: ChartData<*>) {
1212
abstract val itemType: Int
1313

1414
abstract fun getView(position: Int, convertView: View?, c: Context?): View?
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
package info.appdev.chartexample.notimportant
22

33
class ContentItem<T : DemoBase> {
4-
@JvmField
54
val name: String
6-
@JvmField
75
val desc: String
8-
@JvmField
96
var isSection = false
10-
@JvmField
117
var clazz: Class<T>? = null
128

139
constructor(n: String) {
@@ -16,9 +12,9 @@ class ContentItem<T : DemoBase> {
1612
isSection = true
1713
}
1814

19-
constructor(n: String, d: String, clazzName: Class<T>) {
20-
name = n
21-
desc = d
15+
constructor(name: String, description: String, clazzName: Class<T>) {
16+
this.name = name
17+
desc = description
2218
clazz = clazzName
2319
}
2420
}

app/src/main/kotlin/info/appdev/chartexample/notimportant/DemoBase.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,15 @@ import androidx.core.view.get
2323

2424
abstract class DemoBase : AppCompatActivity(), ActivityCompat.OnRequestPermissionsResultCallback {
2525

26-
@JvmField
2726
protected val parties: Array<String> = arrayOf(
2827
"Party A", "Party B", "Party C", "Party D", "Party E", "Party F", "Party G", "Party H",
2928
"Party I", "Party J", "Party K", "Party L", "Party M", "Party N", "Party O", "Party P",
3029
"Party Q", "Party R", "Party S", "Party T", "Party U", "Party V", "Party W", "Party X",
3130
"Party Y", "Party Z"
3231
)
3332

34-
@JvmField
3533
protected var tfRegular: Typeface? = null
3634

37-
@JvmField
3835
protected var tfLight: Typeface? = null
3936

4037
override fun onCreate(savedInstanceState: Bundle?) {

0 commit comments

Comments
 (0)