Skip to content

Commit

Permalink
Sonarqube updates
Browse files Browse the repository at this point in the history
x-stream#298
Use Charsequence and StringBuilder rather than StringBuffer

Also-by: Stephen Davidson <[email protected]>
Signed-off-by: Sanddust <[email protected]>
  • Loading branch information
sanddusttx committed Jul 4, 2022
1 parent eb21c8d commit 984eb9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2008, 2009, 2011, 2015 XStream Committers.
* Copyright (C) 2008, 2009, 2011, 2015, 2022 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
Expand All @@ -23,9 +23,9 @@ public class Five extends One {
private int two;
private boolean three;
private char four;
private StringBuffer five;
private CharSequence five;

public Five(String one, int two, boolean three, char four, StringBuffer five) {
public Five(String one, int two, boolean three, char four, CharSequence five) {
super(one);
this.two = two;
this.three = three;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2008, 2009, 2011, 2015 XStream Committers.
* Copyright (C) 2008, 2009, 2011, 2015, 2022 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
Expand Down Expand Up @@ -27,9 +27,9 @@ public class SerializableFive extends SerializableOne {
private int two;
private boolean three;
private char four;
private StringBuffer five;
private CharSequence five;

public SerializableFive(String one, int two, boolean three, char four, StringBuffer five) {
public SerializableFive(String one, int two, boolean three, char four, CharSequence five) {
super(one);
this.two = two;
this.three = three;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009, 2011, 2015 XStream Committers.
* Copyright (C) 2009, 2011, 2015, 2022 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
Expand Down Expand Up @@ -41,7 +41,7 @@ public JavaBeanTarget() {
five.setTwo(2);
five.setThree(true);
five.setFour('4');
five.setFive(new StringBuffer("5"));
five.setFive(new StringBuilder("5"));
list.add(five);
}

Expand Down

0 comments on commit 984eb9b

Please sign in to comment.