Skip to content

Commit

Permalink
Make setCharset protected.
Browse files Browse the repository at this point in the history
Extrange things can happen if charset is changed once records have been appended
  • Loading branch information
albfernandez committed Jan 19, 2024
1 parent 95ea267 commit f551e2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/linuxense/javadbf/DBFBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ protected DBFBase() {
public Charset getCharset() {
return this.charset;
}

/**
* Sets the charset to use to read and write files.
*
Expand All @@ -62,9 +63,7 @@ public Charset getCharset() {
* @param charset charset to use
* @deprecated set the charset in DBFWriter or DBFReader constructors
*/
// TODO set this metdhod protected in 2.0
@Deprecated
public void setCharset(Charset charset) {
protected void setCharset(Charset charset) {
this.charset = charset;
}

Expand Down

0 comments on commit f551e2a

Please sign in to comment.