Fix SerialTest :
authorNiki Roo <niki@nikiroo.be>
Fri, 22 Jun 2018 16:59:34 +0000 (16:59 +0000)
committerNiki Roo <niki@nikiroo.be>
Fri, 22 Jun 2018 16:59:34 +0000 (16:59 +0000)
Some optimization could replace the anonymous inner classes it used with their base classes, since nothing was done in said anonymous inner classes

src/be/nikiroo/utils/test/SerialTest.java

index 0221e6523ee63219afda9529daddf19b9588a739..8fb17220a2d549171193104b4bfd81e17a55a682 100644 (file)
@@ -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);