From bbf4e3d833445cd0d58f73db2774e666940a16ba Mon Sep 17 00:00:00 2001 From: Steve Davidson Date: Wed, 6 Jul 2022 10:53:29 -0500 Subject: [PATCH] Sonarqube updates https://github.com/x-stream/xstream/issues/298 Use Charsequence and StringBuilder rather than StringBuffer With assist from Honor Systems Updater. Signed-off-by: Steve Davidson --- .../xstream/tools/benchmark/model/FiveBean.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/model/FiveBean.java b/xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/model/FiveBean.java index 7e0d819ee..6c5408d9b 100644 --- a/xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/model/FiveBean.java +++ b/xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/model/FiveBean.java @@ -23,7 +23,7 @@ public class FiveBean extends OneBean { private int two; private boolean three; private char four; - private StringBuffer five; + private CharSequence five; public int getTwo() { return this.two; @@ -49,11 +49,11 @@ public void setFour(char four) { this.four = four; } - public StringBuffer getFive() { + public CharSequence getFive() { return this.five; } - public void setFive(StringBuffer five) { + public void setFive(CharSequence five) { this.five = five; }