mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-02-11 03:30:00 +00:00
Reduce visibility of public methods on WriterContext
This commit is contained in:
parent
dbab02ce52
commit
1244fdbfb3
1 changed files with 9 additions and 9 deletions
|
@ -114,6 +114,15 @@ class WriterContext {
|
|||
return this;
|
||||
}
|
||||
|
||||
WriterContext setArrayKey(String arrayKey) {
|
||||
this.arrayKey = arrayKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
String getContextPath() {
|
||||
return key.isEmpty() ? arrayKey : key + "." + arrayKey;
|
||||
}
|
||||
|
||||
private String growIndent(WriterIndentationPolicy indentationPolicy) {
|
||||
return currentTableIndent + fillStringWithSpaces(indentationPolicy.getTableIndent());
|
||||
}
|
||||
|
@ -133,13 +142,4 @@ class WriterContext {
|
|||
this.datePolicy = datePolicy;
|
||||
this.currentFieldIndent = tableIndent + fillStringWithSpaces(this.indentationPolicy.getKeyValueIndent());
|
||||
}
|
||||
|
||||
public WriterContext setArrayKey(String arrayKey) {
|
||||
this.arrayKey = arrayKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getContextPath() {
|
||||
return key.isEmpty() ? arrayKey : key + "." + arrayKey;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue