Skip to content

Commit 448cc03

Browse files
committed
Make Source a data class
1 parent bb4cca1 commit 448cc03

File tree

1 file changed

+2
-6
lines changed
  • adapter/src/main/kotlin/org/javacs/ktda/core

1 file changed

+2
-6
lines changed

adapter/src/main/kotlin/org/javacs/ktda/core/Source.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ package org.javacs.ktda.core
33
import java.nio.file.Path
44

55
/** A source unit descriptor (usually a file) */
6-
class Source(
6+
data class Source(
77
val name: String,
88
val filePath: Path
9-
) {
10-
override fun equals(other: Any?): Boolean {
11-
return (other is Source) && (name == other.name) && (filePath == other.filePath)
12-
}
13-
}
9+
)

0 commit comments

Comments
 (0)