From f551e2aa58e4f604cae61f11fe9175fc915cec5e Mon Sep 17 00:00:00 2001 From: Alberto Fernandez Date: Fri, 19 Jan 2024 20:21:01 +0100 Subject: [PATCH] Make setCharset protected. Extrange things can happen if charset is changed once records have been appended --- src/main/java/com/linuxense/javadbf/DBFBase.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/linuxense/javadbf/DBFBase.java b/src/main/java/com/linuxense/javadbf/DBFBase.java index 4939f08..c817444 100644 --- a/src/main/java/com/linuxense/javadbf/DBFBase.java +++ b/src/main/java/com/linuxense/javadbf/DBFBase.java @@ -51,6 +51,7 @@ protected DBFBase() { public Charset getCharset() { return this.charset; } + /** * Sets the charset to use to read and write files. * @@ -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; }