Skip to content

Commit

Permalink
Fix SonarLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jfree committed Jun 23, 2024
1 parent 9d0649b commit 6a072f8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
/**
* Tests for the {@link XYBezierRenderer} class.
*/
public class XYBezierRendererTest {
class XYBezierRendererTest {

/**
* Test that the equals() method distinguishes all fields.
*/
@Test
public void testEquals() {
void testEquals() {
XYBezierRenderer r1 = new XYBezierRenderer();
XYBezierRenderer r2 = new XYBezierRenderer();
assertEquals(r1, r2);
Expand Down Expand Up @@ -53,7 +53,7 @@ public void testEquals() {
* Two objects that are equal are required to return the same hashCode.
*/
@Test
public void testHashcode() {
void testHashcode() {
XYBezierRenderer r1 = new XYBezierRenderer();
XYBezierRenderer r2 = new XYBezierRenderer();
assertEquals(r1, r2);
Expand All @@ -66,7 +66,7 @@ public void testHashcode() {
* Confirm that cloning works.
*/
@Test
public void testCloning() throws CloneNotSupportedException {
void testCloning() throws CloneNotSupportedException {
Rectangle2D legendShape = new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0);
XYBezierRenderer r1 = new XYBezierRenderer();
r1.setLegendLine(legendShape);
Expand All @@ -80,7 +80,7 @@ public void testCloning() throws CloneNotSupportedException {
* Verify that this class implements {@link PublicCloneable}.
*/
@Test
public void testPublicCloneable() {
void testPublicCloneable() {
XYBezierRenderer r1 = new XYBezierRenderer();
assertTrue(r1 instanceof PublicCloneable);
}
Expand All @@ -89,7 +89,7 @@ public void testPublicCloneable() {
* Serialize an instance, restore it, and check for equality.
*/
@Test
public void testSerialization() {
void testSerialization() {
XYBezierRenderer r1 = new XYBezierRenderer();
XYBezierRenderer r2 = TestUtils.serialised(r1);
assertEquals(r1, r2);
Expand Down

0 comments on commit 6a072f8

Please sign in to comment.