From 8274d50e9d3ab81325a8bfb5e4ea28dc3e7423a0 Mon Sep 17 00:00:00 2001 From: Willem Date: Sun, 22 Dec 2024 00:43:18 +0100 Subject: [PATCH] Removed unsed imports --- .../x4o/xml/o2o/io/sax3/ContentWriterXmlAttributeTest.java | 1 - .../org/x4o/xml/o2o/io/sax3/ContentWriterXmlCDataTest.java | 1 - .../java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlTest.java | 1 - .../org/x4o/xml/o2o/io/sax3/xdbx/XDBXReaderXmlTest.java | 6 ++---- .../x4o/xml/o2o/octal/PrimordialOctalOrangeSexWordTest.java | 2 -- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlAttributeTest.java b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlAttributeTest.java index bbf8ca3..6f41225 100644 --- a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlAttributeTest.java +++ b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlAttributeTest.java @@ -33,7 +33,6 @@ import javax.xml.parsers.SAXParserFactory; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.x4o.xml.o2o.io.sax3.ContentWriterXml; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; diff --git a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlCDataTest.java b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlCDataTest.java index 23a4e15..4e7a4b8 100644 --- a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlCDataTest.java +++ b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlCDataTest.java @@ -26,7 +26,6 @@ import java.io.StringWriter; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.x4o.xml.o2o.io.sax3.ContentWriterXml; /** * ContentWriterXmlCDataTest tests cdata xml escaping. diff --git a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlTest.java b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlTest.java index 0470257..a8f109d 100644 --- a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlTest.java +++ b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/ContentWriterXmlTest.java @@ -26,7 +26,6 @@ import java.io.StringWriter; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.x4o.xml.o2o.io.sax3.ContentWriterXml; import org.xml.sax.SAXException; import org.xml.sax.helpers.AttributesImpl; diff --git a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/xdbx/XDBXReaderXmlTest.java b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/xdbx/XDBXReaderXmlTest.java index 784ada8..7b96d21 100644 --- a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/xdbx/XDBXReaderXmlTest.java +++ b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/io/sax3/xdbx/XDBXReaderXmlTest.java @@ -34,8 +34,6 @@ import javax.xml.parsers.SAXParserFactory; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.x4o.xml.o2o.io.sax3.ContentWriterXml; -import org.x4o.xml.o2o.io.sax3.xdbx.XDBXReaderXml; -import org.x4o.xml.o2o.io.sax3.xdbx.XDBXWriterXml; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import org.xml.sax.helpers.AttributesImpl; @@ -96,8 +94,8 @@ public class XDBXReaderXmlTest { Assertions.assertTrue(output.length() > 0); Assertions.assertTrue(output.contains("nx01-x4o-driver"), output); - int sizePom = new FileInputStream(new File("../pom.xml")).readAllBytes().length; - int sizeXDBX = baos.toByteArray().length; + long sizePom = new File("../pom.xml").length(); + long sizeXDBX = baos.toByteArray().length; System.out.println("size-pom.xml:: " + sizePom); System.out.println("size-pom.xdbx: " + sizeXDBX); diff --git a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/octal/PrimordialOctalOrangeSexWordTest.java b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/octal/PrimordialOctalOrangeSexWordTest.java index 8b3a30f..7271a81 100644 --- a/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/octal/PrimordialOctalOrangeSexWordTest.java +++ b/nx01-x4o-o2o/src/test/java/org/x4o/xml/o2o/octal/PrimordialOctalOrangeSexWordTest.java @@ -24,8 +24,6 @@ package org.x4o.xml.o2o.octal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.x4o.xml.o2o.octal.PrimordialOctal; -import org.x4o.xml.o2o.octal.PrimordialOctalOrangeSexWord; /** * X4OLanguagePropertyTest test static enum code.