Skip to content

Commit e6becba

Browse files
committed
Remove unnecessary fully qualified references in writeJson.kt
1 parent fabf3dc commit e6becba

File tree

2 files changed

+4
-4
lines changed
  • core
    • generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/io
    • src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/io

2 files changed

+4
-4
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/io/writeJson.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ internal fun AnyFrame.extractValueColumn(): DataColumn<*>? {
126126
return allColumns.filter { it.name.startsWith(valueColumnName) }
127127
.takeIf { isPossibleToFindUnnamedColumns }
128128
?.maxByOrNull { it.name }?.let { valueCol ->
129-
if (valueCol.kind() != org.jetbrains.kotlinx.dataframe.columns.ColumnKind.Value) { // check that value in this column is not null only when other values are null
129+
if (valueCol.kind() != ColumnKind.Value) { // check that value in this column is not null only when other values are null
130130
null
131131
} else {
132132
// check that value in this column is not null only when other values are null
@@ -156,7 +156,7 @@ internal fun AnyFrame.extractArrayColumn(): DataColumn<*>? {
156156
return columns().filter { it.name.startsWith(arrayColumnName) }
157157
.takeIf { isPossibleToFindUnnamedColumns }
158158
?.maxByOrNull { it.name }?.let { arrayCol ->
159-
if (arrayCol.kind() == org.jetbrains.kotlinx.dataframe.columns.ColumnKind.Group) null
159+
if (arrayCol.kind() == ColumnKind.Group) null
160160
else {
161161
// check that value in this column is not null only when other values are null
162162
val isValidArrayColumn = rows().all { row ->

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/io/writeJson.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ internal fun AnyFrame.extractValueColumn(): DataColumn<*>? {
126126
return allColumns.filter { it.name.startsWith(valueColumnName) }
127127
.takeIf { isPossibleToFindUnnamedColumns }
128128
?.maxByOrNull { it.name }?.let { valueCol ->
129-
if (valueCol.kind() != org.jetbrains.kotlinx.dataframe.columns.ColumnKind.Value) { // check that value in this column is not null only when other values are null
129+
if (valueCol.kind() != ColumnKind.Value) { // check that value in this column is not null only when other values are null
130130
null
131131
} else {
132132
// check that value in this column is not null only when other values are null
@@ -156,7 +156,7 @@ internal fun AnyFrame.extractArrayColumn(): DataColumn<*>? {
156156
return columns().filter { it.name.startsWith(arrayColumnName) }
157157
.takeIf { isPossibleToFindUnnamedColumns }
158158
?.maxByOrNull { it.name }?.let { arrayCol ->
159-
if (arrayCol.kind() == org.jetbrains.kotlinx.dataframe.columns.ColumnKind.Group) null
159+
if (arrayCol.kind() == ColumnKind.Group) null
160160
else {
161161
// check that value in this column is not null only when other values are null
162162
val isValidArrayColumn = rows().all { row ->

0 commit comments

Comments
 (0)