From: Niki Roo Date: Fri, 22 Jun 2018 16:59:34 +0000 (+0000) Subject: Fix SerialTest : X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=15c2dc9f79bd9f96bb7f877f360b5761778469ae;p=fanfix-jexer.git Fix SerialTest : Some optimization could replace the anonymous inner classes it used with their base classes, since nothing was done in said anonymous inner classes --- diff --git a/src/be/nikiroo/utils/test/SerialTest.java b/src/be/nikiroo/utils/test/SerialTest.java index 0221e65..8fb1722 100644 --- a/src/be/nikiroo/utils/test/SerialTest.java +++ b/src/be/nikiroo/utils/test/SerialTest.java @@ -37,6 +37,7 @@ class SerialTest extends TestLauncher { @Override public void test() throws Exception { Data data = new Data() { + int value = 42; }; String encoded = new Exporter().append(data).toString(false); @@ -56,6 +57,7 @@ class SerialTest extends TestLauncher { @Override public void test() throws Exception { Data[] data = new Data[] { new Data() { + int value = 42; } }; String encoded = new Exporter().append(data).toString(false);