diff --git a/ion-tests b/ion-tests index fd84d44d1..ef0451a72 160000 --- a/ion-tests +++ b/ion-tests @@ -1 +1 @@ -Subproject commit fd84d44d1e2879be4800115f7b5dfa663d1d532c +Subproject commit ef0451a72a39f572175ad8e90b1a77110e9aec4c diff --git a/src/main/java/com/amazon/ion/impl/IonRawTextWriter_1_1.kt b/src/main/java/com/amazon/ion/impl/IonRawTextWriter_1_1.kt index 12aaed0f1..f320f5a75 100644 --- a/src/main/java/com/amazon/ion/impl/IonRawTextWriter_1_1.kt +++ b/src/main/java/com/amazon/ion/impl/IonRawTextWriter_1_1.kt @@ -25,7 +25,7 @@ import java.math.BigInteger class IonRawTextWriter_1_1 internal constructor( private val options: _Private_IonTextWriterBuilder_1_1, private val output: _Private_IonTextAppender, -) : IonRawWriter_1_1, `PrivateIonRawWriter_1_1` { +) : IonRawWriter_1_1, PrivateIonRawWriter_1_1 { companion object { const val IVM = "\$ion_1_1" diff --git a/src/main/java/com/amazon/ion/impl/bin/IonManagedWriter_1_1.kt b/src/main/java/com/amazon/ion/impl/bin/IonManagedWriter_1_1.kt index 4d8b9440f..1d3dec3e8 100644 --- a/src/main/java/com/amazon/ion/impl/bin/IonManagedWriter_1_1.kt +++ b/src/main/java/com/amazon/ion/impl/bin/IonManagedWriter_1_1.kt @@ -133,7 +133,14 @@ internal class IonManagedWriter_1_1( */ private var sidTransformer: IntTransformer? = null - private fun intern(text: String): Int { + /** + * Adds a new symbol to the table for this writer, or finds an existing definition of it. This writer does not + * implement [IonWriter.getSymbolTable], so this method supplies some of that functionality. + * + * @return an SID for the given symbol text + * @see SymbolTable.intern + */ + fun intern(text: String): Int { // Check the current symbol table var sid = symbolTable[text] if (sid != null) return sid