Skip to content

Commit

Permalink
Make IonMangedWriter_1_1.intern public
Browse files Browse the repository at this point in the history
  • Loading branch information
jobarr-amzn committed Oct 9, 2024
1 parent ab1e041 commit a9608e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ion-tests
Submodule ion-tests updated 657 files
2 changes: 1 addition & 1 deletion src/main/java/com/amazon/ion/impl/IonRawTextWriter_1_1.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9608e6

Please sign in to comment.