Skip to content

Commit

Permalink
[gradle] Use bufferedReader instead of RandomAccessFile for parsing C…
Browse files Browse the repository at this point in the history
…VR files.
  • Loading branch information
terrakok committed Apr 3, 2024
1 parent 30a2826 commit 2160bea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ internal abstract class GenerateResClassTask : DefaultTask() {

private fun getValueResourceItems(dataFile: File, qualifiers: List<String>, path: Path) : List<ResourceItem> {
val result = mutableListOf<ResourceItem>()
RandomAccessFile(dataFile, "r").use { f ->
dataFile.bufferedReader().use { f ->
var offset = 0L
var line: String? = f.readLine()
while (line != null) {
Expand Down

0 comments on commit 2160bea

Please sign in to comment.