Skip to content

Commit

Permalink
Migrate LineWrapper from JVM to common
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet authored and Egorand committed Dec 16, 2024
1 parent 9ae7939 commit 0c9372a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
package com.squareup.kotlinpoet

import java.io.Closeable

/**
* Implements soft line wrapping on an appendable. To use, append characters using
* [LineWrapper.append], which will handle formatting characters as necessary. Use
Expand All @@ -26,7 +24,7 @@ internal class LineWrapper(
private val out: Appendable,
private val indent: String,
private val columnLimit: Int,
) : Closeable {
) : AutoCloseable {

private var closed = false

Expand Down

0 comments on commit 0c9372a

Please sign in to comment.