From 12875dee26faaa99ebbba0994c175603aef6c206 Mon Sep 17 00:00:00 2001 From: Peter Lawrey Date: Mon, 11 Dec 2023 13:09:08 +0000 Subject: [PATCH] Fix multiple and missing new lines (#786) * Fix multiple and missing new lines * Fix multiple and missing new lines --- README.adoc | 1 - .../java/run/chronicle/wire/demo/ListLookup.java | 2 -- jlbh-test.sh | 2 +- pom.xml | 1 - .../wire/AbstractGeneratedMethodReader.java | 1 - .../net/openhft/chronicle/wire/AbstractWire.java | 1 - .../net/openhft/chronicle/wire/ChronicleBitSet.java | 2 -- .../chronicle/wire/CommentAnnotationNotifier.java | 2 +- .../chronicle/wire/DocumentContextHolder.java | 2 +- .../net/openhft/chronicle/wire/ExcerptListener.java | 2 +- .../java/net/openhft/chronicle/wire/FieldInfo.java | 2 +- .../chronicle/wire/GenerateMethodWriter.java | 1 - .../java/net/openhft/chronicle/wire/JSONWire.java | 2 -- .../net/openhft/chronicle/wire/MessageHistory.java | 2 +- .../chronicle/wire/MicroDurationLongConverter.java | 1 - .../openhft/chronicle/wire/ReadDocumentContext.java | 2 +- .../net/openhft/chronicle/wire/ReflectionUtil.java | 2 +- .../chronicle/wire/SerializationStrategies.java | 2 +- .../chronicle/wire/SerializationStrategy.java | 2 +- .../openhft/chronicle/wire/TextMethodTester.java | 1 - .../net/openhft/chronicle/wire/TriConsumer.java | 2 +- .../java/net/openhft/chronicle/wire/ValueOut.java | 3 +-- .../openhft/chronicle/wire/VanillaMethodReader.java | 1 - .../java/net/openhft/chronicle/wire/WireCommon.java | 4 ++-- .../net/openhft/chronicle/wire/WireMarshaller.java | 3 +-- .../java/net/openhft/chronicle/wire/WireParser.java | 2 +- src/main/java/net/openhft/chronicle/wire/Wires.java | 3 --- .../chronicle/wire/WriteDocumentContext.java | 2 +- .../java/net/openhft/chronicle/wire/WriteValue.java | 2 +- .../java/net/openhft/chronicle/wire/YamlWire.java | 1 - .../chronicle/wire/channel/ChannelHandler.java | 1 - .../wire/channel/ChronicleGatewayMain.java | 1 - .../openhft/chronicle/wire/channel/HostPortCfg.java | 2 +- .../chronicle/wire/domestic/AutoTailers.java | 2 +- .../wire/domestic/extractor/DocumentExtractor.java | 2 +- .../extractor/ToDoubleDocumentExtractor.java | 2 +- .../domestic/extractor/ToLongDocumentExtractor.java | 2 +- .../chronicle/wire/domestic/package-info.java | 2 +- .../domestic/reduction/ConcurrentCollectors.java | 2 +- .../chronicle/wire/domestic/reduction/README.adoc | 1 - .../wire/domestic/reduction/Reduction.java | 2 +- .../wire/domestic/reduction/Reductions.java | 3 +-- .../chronicle/wire/domestic/stream/Streams.java | 2 +- .../wire/internal/HTTPMarshallableOut.java | 1 - .../wire/internal/InternalAutoTailers.java | 4 ++-- .../extractor/DocumentExtractorBuilder.java | 2 +- .../internal/extractor/DocumentExtractorUtil.java | 3 +-- .../wire/internal/reduction/ReductionUtil.java | 4 ++-- .../chronicle/wire/internal/stream/StreamsUtil.java | 2 +- .../wire/AbstractCommonMarshallableTest.java | 2 +- .../chronicle/wire/AbstractMarshallableCfgTest.java | 2 +- .../chronicle/wire/AbstractUntypedFieldTest.java | 1 - .../chronicle/wire/Base32LongConverterTest.java | 2 +- .../chronicle/wire/Base64LongConverterTest.java | 2 +- .../chronicle/wire/Base85LongConverterTest.java | 2 +- .../BinaryMethodWriterInvocationHandlerTest.java | 2 +- .../chronicle/wire/BinaryWireHighCodeTest.java | 2 +- .../openhft/chronicle/wire/BinaryWirePerfTest.java | 2 +- .../wire/BinaryWireStringInternerTest.java | 2 +- .../net/openhft/chronicle/wire/BinaryWireTest.java | 3 +-- .../java/net/openhft/chronicle/wire/BitSetTest.java | 2 +- .../net/openhft/chronicle/wire/CSVWireTest.java | 2 +- .../chronicle/wire/CharSequenceObjectMapTest.java | 2 +- .../openhft/chronicle/wire/ChronicleBitSetTest.java | 3 +-- .../java/net/openhft/chronicle/wire/EnumTest.java | 2 +- .../net/openhft/chronicle/wire/FlowMethodTest.java | 2 +- .../chronicle/wire/GenerateJsonSchemaMainTest.java | 2 +- .../chronicle/wire/GenerateMethodDelegateTest.java | 2 +- .../net/openhft/chronicle/wire/HashWireTest.java | 2 +- .../chronicle/wire/IdentifierLongConverterTest.java | 2 +- .../net/openhft/chronicle/wire/Issue341Test.java | 1 - .../chronicle/wire/JSONEmptySequencesTest.java | 3 ++- .../wire/JSONTypesWithEnumsAndBoxedTypesTest.java | 1 - .../chronicle/wire/JSONTypesWithMapsTest.java | 1 - .../openhft/chronicle/wire/JSONWireMiscTest.java | 3 --- .../chronicle/wire/JSONWireWithListsTest.java | 1 - .../java/net/openhft/chronicle/wire/JsonUtil.java | 1 - .../chronicle/wire/LongConversionExampleA.java | 2 -- .../chronicle/wire/MarshallableCfgResetTest.java | 1 - .../chronicle/wire/MessagePathClassifierTest.java | 2 +- .../chronicle/wire/MethodReaderMethodIdsTest.java | 2 +- .../wire/MicroTimestampLongConverterTest.java | 2 +- .../wire/MilliTimestampLongConverterTest.java | 2 +- .../wire/NanoTimestampLongConverterTest.java | 2 +- .../java/net/openhft/chronicle/wire/Outer1.java | 2 +- .../java/net/openhft/chronicle/wire/Outer2.java | 2 +- .../net/openhft/chronicle/wire/RawWireTest.java | 2 +- .../chronicle/wire/ReadDocumentContextTest.java | 2 +- .../openhft/chronicle/wire/ReadmeChapter1Test.java | 2 +- .../net/openhft/chronicle/wire/SequenceTest.java | 2 +- .../chronicle/wire/SerializableObjectTest.java | 3 --- .../wire/StringConsumerMarshallableOutTest.java | 4 +--- .../openhft/chronicle/wire/TestJsonIssue467.java | 1 - .../openhft/chronicle/wire/TextDocumentTest.java | 2 +- .../wire/TimestampLongConverterZoneIdsTest.java | 2 +- .../chronicle/wire/TriviallyCopyableJLBH.java | 11 +---------- .../openhft/chronicle/wire/UnknownFieldsTest.java | 2 +- .../wire/UpdateInterceptorReturnTypeTest.java | 2 +- .../chronicle/wire/UsingTestMarshallableTest.java | 1 - .../chronicle/wire/VanillaMessageHistoryTest.java | 2 +- .../chronicle/wire/VanillaMethodReaderTest.java | 2 +- .../VanillaMethodWriterBuilderVerboseTypesTest.java | 3 +-- .../net/openhft/chronicle/wire/WireDumperTest.java | 2 +- .../chronicle/wire/WireInternalInternTest.java | 2 +- .../openhft/chronicle/wire/WireInternalTest.java | 2 +- .../openhft/chronicle/wire/WireMarshallerTest.java | 2 +- .../net/openhft/chronicle/wire/WireParserTest.java | 2 +- .../net/openhft/chronicle/wire/WireResetTest.java | 2 +- .../chronicle/wire/WireStringCollectionTest.java | 2 +- .../net/openhft/chronicle/wire/WireTextBugTest.java | 2 +- .../chronicle/wire/WireToOutputStreamTest.java | 2 +- .../chronicle/wire/WireTypeConverterTest.java | 2 -- .../net/openhft/chronicle/wire/WireTypeTest.java | 2 +- .../java/net/openhft/chronicle/wire/WiresTest.java | 2 +- .../chronicle/wire/WordsLongConverterTest.java | 2 +- .../chronicle/wire/YamlSpecificationTest.java | 2 +- .../openhft/chronicle/wire/YamlTokeniserTest.java | 2 +- .../chronicle/wire/channel/SystemContextTest.java | 2 +- .../openhft/chronicle/wire/channel/book/README.adoc | 1 - .../wire/channel/book/TopOfBookHandlerTest.java | 2 +- .../TopOfBookListenerBinarylightMethodWriter.java | 2 +- .../wire/channel/echo/ChannelVisitorTest.java | 3 --- .../wire/channel/echo/DummyDataSmallTest.java | 2 +- .../chronicle/wire/channel/echo/DummyDataTest.java | 2 +- .../wire/channel/echo/EchoHandlerTest.java | 3 +-- .../channel/echo/RecordHistoryEchoHandlerTest.java | 2 +- .../wire/domestic/streaming/CreateUtil.java | 2 +- .../wire/domestic/streaming/StreamsTest.java | 3 +-- .../domestic/streaming/reduction/CollectorTest.java | 7 ++----- .../streaming/reduction/CountAccumulationTest.java | 5 ++--- .../reduction/LastIndexSeenTailerTest.java | 4 ++-- .../streaming/reduction/LastIndexSeenTest.java | 6 +++--- .../reduction/LastMarketDataPerSymbolTest.java | 7 +++---- .../domestic/streaming/reduction/MarketData.java | 2 +- .../streaming/reduction/MethodWriterTest.java | 8 ++------ .../MinMaxLastMarketDataPerSymbolTest.java | 5 ++--- .../streaming/reduction/StreamingDemoMain.java | 12 +++--------- .../domestic/streaming/streams/StreamsDemoTest.java | 13 +++---------- .../domestic/streaming/streams/StreamsTest.java | 2 +- .../wire/examples/MessageRoutingExample.java | 3 --- .../chronicle/wire/examples/WireExamples1.java | 2 -- .../chronicle/wire/examples/WireExamples3.java | 1 - .../MethodWriterClassNameGeneratorTest.java | 2 +- .../wire/internal/stream/StreamsUtilTest.java | 7 +++++-- .../openhft/chronicle/wire/issue/Issue327Test.java | 1 - .../openhft/chronicle/wire/issue/JSON322Test.java | 2 -- .../openhft/chronicle/wire/issue/WireBug35Test.java | 3 +-- .../openhft/chronicle/wire/issue/WireBug37Test.java | 2 +- .../openhft/chronicle/wire/issue/WireBug38Test.java | 2 +- .../openhft/chronicle/wire/issue/WireBug39Test.java | 2 +- .../net/openhft/chronicle/wire/java17/Group.java | 2 +- .../openhft/chronicle/wire/map/MapCustomTest.java | 2 +- .../chronicle/wire/map/MapMarshallableTest.java | 2 +- .../wire/marshallable/CNFREOnMissingClassTest.java | 2 -- .../chronicle/wire/marshallable/EnumWireTest.java | 2 +- .../wire/marshallable/JSONWithAMapTest.java | 2 -- .../chronicle/wire/marshallable/ScalarValues.java | 1 - .../TriviallyCopyableMarketDataTest.java | 2 +- .../chronicle/wire/marshallable/TwoArraysTest.java | 2 +- .../wire/marshallable/WithDefaultsTest.java | 2 +- .../chronicle/wire/method/ChronicleEvent.java | 1 - .../wire/method/ClusterCommandListener.java | 2 +- .../net/openhft/chronicle/wire/method/Event.java | 2 +- .../wire/method/MethodFilterOnFirstArgTest.java | 2 +- .../wire/method/MethodWriterMarshallableTest.java | 2 +- .../chronicle/wire/method/MethodWriterTest.java | 2 +- .../chronicle/wire/method/TextMethodTesterTest.java | 1 - .../wire/security/ApacheStructExploitTest.java | 2 -- .../net/openhft/chronicle/wire/security/exploit.xml | 2 +- .../wire/utils/JavaSourceCodeFormatterTest.java | 2 +- .../YamlTesterAbstractMarshallableCfgTest.java | 1 - .../chronicle/wire/utils/YamlTesterTest.java | 1 - .../chronicle/account/dto/AccountStatusFailed.java | 1 - .../account/dto/AccountStatusFailedTest.java | 4 ++-- .../run/chronicle/account/dto/AccountStatusOK.java | 1 - .../chronicle/account/dto/AccountStatusOKTest.java | 2 +- .../java/run/chronicle/account/dto/CheckPoint.java | 1 - .../run/chronicle/account/dto/TransferFailed.java | 1 - src/test/resources/account/mixed/_setup.yaml | 2 +- src/test/resources/account/mixed/in.yaml | 2 +- src/test/resources/account/simple/in.yaml | 2 +- src/test/resources/account/waterfall/_setup.yaml | 2 +- src/test/resources/account/waterfall/in.yaml | 2 +- src/test/resources/account/wrong-target/_setup.yaml | 2 +- src/test/resources/account/wrong-target/in.yaml | 2 +- src/test/resources/compat/quoted-comment.yaml | 2 +- src/test/resources/docs/qe_cfg.yaml | 2 +- src/test/resources/echo-test/in.yaml | 2 +- src/test/resources/echo-tob/in.yaml | 2 +- src/test/resources/echoing.yaml | 2 +- src/test/resources/exception.yaml | 2 +- src/test/resources/flow-in.yaml | 2 +- src/test/resources/md.yaml | 2 +- src/test/resources/md2.yaml | 2 +- src/test/resources/methods-collections-in.yaml | 2 +- src/test/resources/methods/in.yaml | 2 +- src/test/resources/methods/out.yaml | 2 +- src/test/resources/mixed-quotes.yaml | 2 +- src/test/resources/morse-code.yaml | 2 +- src/test/resources/my-pojos.yaml | 2 +- src/test/resources/nst_files/README.adoc | 2 +- src/test/resources/nst_files/n_1.json | 1 - src/test/resources/tmtt/methods-in.yaml | 2 +- src/test/resources/tmtt/upper-methods-in.yaml | 2 +- .../comments-new/out-msg-0-duplicated.yaml | 2 +- .../comments-new/out-msg-1-duplicated.yaml | 2 +- .../comments-new/out-msg-2-duplicated.yaml | 2 +- src/test/resources/yaml-tester/mismatch/in.yaml | 2 +- src/test/resources/yaml-tester/rm-indent/in.yaml | 2 +- src/test/resources/yaml-tester/rm/in.yaml | 2 +- src/test/resources/yaml-tester/t1/in.yaml | 2 +- src/test/resources/yaml-tester/t2/_setup.yaml | 2 +- src/test/resources/yaml-tester/t2/in.yaml | 2 +- src/test/resources/yaml-tester/t2/setup.yaml | 2 +- src/test/resources/yaml-tester/t3/in.yaml | 2 +- src/test/resources/yaml-tester/tamc/out.yaml | 2 +- src/test/resources/yaml/complex-mapping.yaml | 2 +- src/test/resources/yaml/int-mapping-incomplete.yaml | 2 +- src/test/resources/yaml/k8s/example3.yaml | 2 +- src/test/resources/yaml/k8s/example4.yaml | 2 +- src/test/resources/yaml/k8s/example9.yaml | 2 +- src/test/resources/yaml/sample2.yaml | 2 +- src/test/resources/yaml/services.yaml | 2 +- src/test/resources/yaml/spec/2_21Miscellaneous.yaml | 2 +- .../resources/yaml/spec/2_21MiscellaneousFixed.yaml | 2 +- .../yaml/spec/2_3_MappingScalarsToSequences.yaml | 2 +- src/test/resources/yaml/spec/README.adoc | 2 +- systemProperties.adoc | 5 +---- 228 files changed, 200 insertions(+), 313 deletions(-) diff --git a/README.adoc b/README.adoc index aa68dc2857..d6abdcb804 100644 --- a/README.adoc +++ b/README.adoc @@ -1781,7 +1781,6 @@ private static final int MASHALLABLE_VERSION = 1; ---- <1> You will have to remove this line if the class extends `AbstractBytesMarshallable` - === JLBH Benchmark Performance To explore the efficiency of the examples above, this link:https://github.com/OpenHFT/Chronicle-Wire/blob/develop/src/test/java/net/openhft/chronicle/wire/TriviallyCopyableJLBH.java[TrivallyCopyableJLBH.java] test was created. diff --git a/demo/src/main/java/run/chronicle/wire/demo/ListLookup.java b/demo/src/main/java/run/chronicle/wire/demo/ListLookup.java index a3b2f6b0ca..02eb9402e2 100644 --- a/demo/src/main/java/run/chronicle/wire/demo/ListLookup.java +++ b/demo/src/main/java/run/chronicle/wire/demo/ListLookup.java @@ -66,7 +66,6 @@ public static void main(String[] args) { } - private static final class Data extends SelfDescribingMarshallable { // Ids can be reused/internalized @@ -114,7 +113,6 @@ public String toString() { } } - public static int binarySearch(final List list, final Function extractor, final U key, diff --git a/jlbh-test.sh b/jlbh-test.sh index 7f469655f5..a7a827e7d6 100755 --- a/jlbh-test.sh +++ b/jlbh-test.sh @@ -17,4 +17,4 @@ # limitations under the License. # -mvn clean test-compile exec:java -Dexec.mainClass="net.openhft.chronicle.wire.TriviallyCopyableJLBH" -Dexec.classpathScope=test \ No newline at end of file +mvn clean test-compile exec:java -Dexec.mainClass="net.openhft.chronicle.wire.TriviallyCopyableJLBH" -Dexec.classpathScope=test diff --git a/pom.xml b/pom.xml index 9b682a22fc..082b623a12 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,6 @@ - chronicle-wire 2.25ea2-SNAPSHOT OpenHFT/Chronicle-Wire diff --git a/src/main/java/net/openhft/chronicle/wire/AbstractGeneratedMethodReader.java b/src/main/java/net/openhft/chronicle/wire/AbstractGeneratedMethodReader.java index 4d7478ba07..f5f4770576 100644 --- a/src/main/java/net/openhft/chronicle/wire/AbstractGeneratedMethodReader.java +++ b/src/main/java/net/openhft/chronicle/wire/AbstractGeneratedMethodReader.java @@ -326,7 +326,6 @@ protected T checkRecycle(T o) { return o; } - protected Object actualInvoke(Method method, Object o, Object[] objects) { try { return method.invoke(o, objects); diff --git a/src/main/java/net/openhft/chronicle/wire/AbstractWire.java b/src/main/java/net/openhft/chronicle/wire/AbstractWire.java index e5d74b95e7..b8717a56b2 100644 --- a/src/main/java/net/openhft/chronicle/wire/AbstractWire.java +++ b/src/main/java/net/openhft/chronicle/wire/AbstractWire.java @@ -334,7 +334,6 @@ public void updateHeader(final long position, final boolean metaData, int expect pos = bytes.writePosition(); } - // clear up to the next 8 bytes to explicitly indicate "no more data" (8 covers int + max padding) // if there aren't at least 8 bytes remaining, then clear what we can (any new mapping will be 0 anyway) // also clears any dirty bits left by a failed writer/appender diff --git a/src/main/java/net/openhft/chronicle/wire/ChronicleBitSet.java b/src/main/java/net/openhft/chronicle/wire/ChronicleBitSet.java index d77d1a44e8..7329f8c9e2 100644 --- a/src/main/java/net/openhft/chronicle/wire/ChronicleBitSet.java +++ b/src/main/java/net/openhft/chronicle/wire/ChronicleBitSet.java @@ -71,7 +71,6 @@ default void set(int fromIndex, int toIndex, boolean value) { clear(fromIndex, toIndex); } - /** * Returns the value of the bit with the specified index. The value is {@code true} if the bit with the index {@code bitIndex} is currently set in * this {@code ChronicleBitSet}; otherwise, the result is {@code false}. @@ -127,7 +126,6 @@ default boolean isEmpty() { return true; } - /** * Returns the "logical size" of this {@code ChronicleBitSet}: the index of the highest set bit in the {@code ChronicleBitSet} plus one. * Returns zero if the {@code ChronicleBitSet} contains no set bits. diff --git a/src/main/java/net/openhft/chronicle/wire/CommentAnnotationNotifier.java b/src/main/java/net/openhft/chronicle/wire/CommentAnnotationNotifier.java index f5242a4620..9f5559cf79 100644 --- a/src/main/java/net/openhft/chronicle/wire/CommentAnnotationNotifier.java +++ b/src/main/java/net/openhft/chronicle/wire/CommentAnnotationNotifier.java @@ -19,4 +19,4 @@ interface CommentAnnotationNotifier { void hasPrecedingComment(boolean hasCommentAnnotation); -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/DocumentContextHolder.java b/src/main/java/net/openhft/chronicle/wire/DocumentContextHolder.java index 805a7ddbef..0983afb87c 100644 --- a/src/main/java/net/openhft/chronicle/wire/DocumentContextHolder.java +++ b/src/main/java/net/openhft/chronicle/wire/DocumentContextHolder.java @@ -105,4 +105,4 @@ public void chainedElement(boolean chainedElement) { public boolean isEmpty() { return ((WriteDocumentContext) dc).isEmpty(); } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/ExcerptListener.java b/src/main/java/net/openhft/chronicle/wire/ExcerptListener.java index 6e75978540..ca71a6816c 100644 --- a/src/main/java/net/openhft/chronicle/wire/ExcerptListener.java +++ b/src/main/java/net/openhft/chronicle/wire/ExcerptListener.java @@ -65,4 +65,4 @@ default ExcerptListener andThen(@NotNull final ExcerptListener after) { }); } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/FieldInfo.java b/src/main/java/net/openhft/chronicle/wire/FieldInfo.java index 7bb614e4e8..946619c5e5 100644 --- a/src/main/java/net/openhft/chronicle/wire/FieldInfo.java +++ b/src/main/java/net/openhft/chronicle/wire/FieldInfo.java @@ -212,4 +212,4 @@ default void copy(Object source, Object destination) { } boolean isEqual(Object a, Object b); -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/GenerateMethodWriter.java b/src/main/java/net/openhft/chronicle/wire/GenerateMethodWriter.java index 92fb415a7f..4fec5455ab 100644 --- a/src/main/java/net/openhft/chronicle/wire/GenerateMethodWriter.java +++ b/src/main/java/net/openhft/chronicle/wire/GenerateMethodWriter.java @@ -158,7 +158,6 @@ public static Class newClass(String fullClassName, .createClass(); } - /** * @param interfaces an interface class * @return a proxy class from an interface class or null if it can't be created diff --git a/src/main/java/net/openhft/chronicle/wire/JSONWire.java b/src/main/java/net/openhft/chronicle/wire/JSONWire.java index 709140ac71..34c7354d15 100644 --- a/src/main/java/net/openhft/chronicle/wire/JSONWire.java +++ b/src/main/java/net/openhft/chronicle/wire/JSONWire.java @@ -717,7 +717,6 @@ public JSONWire rawText(CharSequence value) { return (JSONWire) super.marshallable(map, (Class) String.class, vClass, leaf); } - public @NotNull JSONWire time(final LocalTime localTime) { // Todo: fix quoted text return (JSONWire) super.time(localTime); @@ -773,7 +772,6 @@ public E object(@Nullable E using, @Nullable Class clazz, boolean bestEffort return useTypes ? parseType(using, clazz, bestEffort) : super.object(using, clazz, bestEffort); } - @Override public Class typePrefix() { return super.typePrefix(); diff --git a/src/main/java/net/openhft/chronicle/wire/MessageHistory.java b/src/main/java/net/openhft/chronicle/wire/MessageHistory.java index 80bb1358b0..847add9864 100644 --- a/src/main/java/net/openhft/chronicle/wire/MessageHistory.java +++ b/src/main/java/net/openhft/chronicle/wire/MessageHistory.java @@ -129,4 +129,4 @@ default void doWriteHistory(DocumentContext dc) { * {@link Marshallable#writeMarshallable(net.openhft.chronicle.wire.WireOut)} */ boolean isDirty(); -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/MicroDurationLongConverter.java b/src/main/java/net/openhft/chronicle/wire/MicroDurationLongConverter.java index dfd2124e86..65f8e004a6 100644 --- a/src/main/java/net/openhft/chronicle/wire/MicroDurationLongConverter.java +++ b/src/main/java/net/openhft/chronicle/wire/MicroDurationLongConverter.java @@ -39,7 +39,6 @@ public long parse(CharSequence text) { return parse.getSeconds() * 1000_000 + parse.getNano() / 1000; } - /** * Converts a duration represented in microseconds to a {@link Duration} object. * diff --git a/src/main/java/net/openhft/chronicle/wire/ReadDocumentContext.java b/src/main/java/net/openhft/chronicle/wire/ReadDocumentContext.java index e853afac71..ea894f90a6 100644 --- a/src/main/java/net/openhft/chronicle/wire/ReadDocumentContext.java +++ b/src/main/java/net/openhft/chronicle/wire/ReadDocumentContext.java @@ -30,4 +30,4 @@ public interface ReadDocumentContext extends DocumentContext { * Sets the read position for this {@code ReadDocumentContext}. */ void closeReadPosition(long readPosition); -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/ReflectionUtil.java b/src/main/java/net/openhft/chronicle/wire/ReflectionUtil.java index 9bbba26fb4..6c15dc32a1 100644 --- a/src/main/java/net/openhft/chronicle/wire/ReflectionUtil.java +++ b/src/main/java/net/openhft/chronicle/wire/ReflectionUtil.java @@ -69,4 +69,4 @@ public static String generatedPackageName(String classFullName) { return PREPEND_PACKAGE ? PACKAGE_PREFIX : ""; } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/SerializationStrategies.java b/src/main/java/net/openhft/chronicle/wire/SerializationStrategies.java index 826193619c..50322c7205 100644 --- a/src/main/java/net/openhft/chronicle/wire/SerializationStrategies.java +++ b/src/main/java/net/openhft/chronicle/wire/SerializationStrategies.java @@ -523,4 +523,4 @@ public Demarshallable readResolve() { return demarshallable; } } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/SerializationStrategy.java b/src/main/java/net/openhft/chronicle/wire/SerializationStrategy.java index 68b62f0a97..991b762714 100644 --- a/src/main/java/net/openhft/chronicle/wire/SerializationStrategy.java +++ b/src/main/java/net/openhft/chronicle/wire/SerializationStrategy.java @@ -50,4 +50,4 @@ public interface SerializationStrategy { */ @NotNull BracketType bracketType(); -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/TextMethodTester.java b/src/main/java/net/openhft/chronicle/wire/TextMethodTester.java index 58feab65da..1574e522fe 100644 --- a/src/main/java/net/openhft/chronicle/wire/TextMethodTester.java +++ b/src/main/java/net/openhft/chronicle/wire/TextMethodTester.java @@ -48,7 +48,6 @@ public class TextMethodTester implements YamlTester { public static final boolean SINGLE_THREADED_CHECK_DISABLED = !Jvm.getBoolean("yaml.tester.single.threaded.check.enabled", false); - private static final boolean DUMP_TESTS = Jvm.getBoolean("dump.tests"); public static final Consumer DEFAULT_INVOCATION_TARGET_RUNTIME_EXCEPTION_CONSUMER = e -> Jvm.warn().on(TextMethodTester.class, "Exception calling target method. Continuing", e); diff --git a/src/main/java/net/openhft/chronicle/wire/TriConsumer.java b/src/main/java/net/openhft/chronicle/wire/TriConsumer.java index 0bbbfaec87..2bba5308ea 100644 --- a/src/main/java/net/openhft/chronicle/wire/TriConsumer.java +++ b/src/main/java/net/openhft/chronicle/wire/TriConsumer.java @@ -55,4 +55,4 @@ default TriConsumer andThen(@NotNull TriConsumer output) { } } - private static Wire newJsonWire(Bytes bytes) { return new JSONWire(bytes).useTypes(true).trimFirstCurly(false).useTextDocuments(); } @@ -298,7 +297,6 @@ private static Bytes asType(@NotNull WireIn wireIn, Function wir } } - /** * @deprecated Use {@link #asJson(WireIn, Bytes)} instead */ @@ -316,7 +314,6 @@ private static Wire newTextWire(Bytes bytes) { return new TextWire(bytes).addTimeStamps(true); } - /** * @deprecated Use {@link #acquireStringBuilderScoped()} instead */ diff --git a/src/main/java/net/openhft/chronicle/wire/WriteDocumentContext.java b/src/main/java/net/openhft/chronicle/wire/WriteDocumentContext.java index 17b8a05f75..5114a7161b 100644 --- a/src/main/java/net/openhft/chronicle/wire/WriteDocumentContext.java +++ b/src/main/java/net/openhft/chronicle/wire/WriteDocumentContext.java @@ -36,4 +36,4 @@ public interface WriteDocumentContext extends DocumentContext { void chainedElement(boolean chainedElement); boolean isEmpty(); -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/WriteValue.java b/src/main/java/net/openhft/chronicle/wire/WriteValue.java index 73490eb6f9..dbecf797d0 100644 --- a/src/main/java/net/openhft/chronicle/wire/WriteValue.java +++ b/src/main/java/net/openhft/chronicle/wire/WriteValue.java @@ -28,4 +28,4 @@ public interface WriteValue { * Writes a value to the provided {@link ValueOut}. */ void writeValue(ValueOut out) throws InvalidMarshallableException; -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/YamlWire.java b/src/main/java/net/openhft/chronicle/wire/YamlWire.java index 13c9e96105..6ecd2bb39f 100644 --- a/src/main/java/net/openhft/chronicle/wire/YamlWire.java +++ b/src/main/java/net/openhft/chronicle/wire/YamlWire.java @@ -227,7 +227,6 @@ static Object readNumberOrTextFrom(char bq, final @Nullable StringBuilder s) { return s; } - private static boolean leaveUnparsed(char bq, @Nullable StringBuilder s) { return s == null || bq != 0 diff --git a/src/main/java/net/openhft/chronicle/wire/channel/ChannelHandler.java b/src/main/java/net/openhft/chronicle/wire/channel/ChannelHandler.java index 30326d742d..6312cfcc38 100644 --- a/src/main/java/net/openhft/chronicle/wire/channel/ChannelHandler.java +++ b/src/main/java/net/openhft/chronicle/wire/channel/ChannelHandler.java @@ -18,7 +18,6 @@ package net.openhft.chronicle.wire.channel; - import net.openhft.chronicle.core.io.ClosedIORuntimeException; import net.openhft.chronicle.core.io.InvalidMarshallableException; diff --git a/src/main/java/net/openhft/chronicle/wire/channel/ChronicleGatewayMain.java b/src/main/java/net/openhft/chronicle/wire/channel/ChronicleGatewayMain.java index 6a37e6d11e..4103bdae12 100644 --- a/src/main/java/net/openhft/chronicle/wire/channel/ChronicleGatewayMain.java +++ b/src/main/java/net/openhft/chronicle/wire/channel/ChronicleGatewayMain.java @@ -37,7 +37,6 @@ import java.util.concurrent.TimeUnit; import java.util.function.Function; - /** * Represents the entry point for a Chronicle Gateway, which is responsible for accepting * incoming connections and handling requests according to a defined protocol. diff --git a/src/main/java/net/openhft/chronicle/wire/channel/HostPortCfg.java b/src/main/java/net/openhft/chronicle/wire/channel/HostPortCfg.java index 05d08404ae..138f5a4c51 100644 --- a/src/main/java/net/openhft/chronicle/wire/channel/HostPortCfg.java +++ b/src/main/java/net/openhft/chronicle/wire/channel/HostPortCfg.java @@ -18,4 +18,4 @@ public String hostname() { public int port() { return port; } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/AutoTailers.java b/src/main/java/net/openhft/chronicle/wire/domestic/AutoTailers.java index 8f91afe695..b24a6a9e10 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/AutoTailers.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/AutoTailers.java @@ -75,4 +75,4 @@ public static CloseableEventHandler createEventHandler(@NotNull final Supplier Builder builder(@NotNull final Class elementType) { return new DocumentExtractorBuilder<>(elementType); } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToDoubleDocumentExtractor.java b/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToDoubleDocumentExtractor.java index 69e3801a1d..1e2d53de00 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToDoubleDocumentExtractor.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToDoubleDocumentExtractor.java @@ -139,4 +139,4 @@ default ToDoubleDocumentExtractor filter(@NotNull final DoublePredicate predicat // peek -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToLongDocumentExtractor.java b/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToLongDocumentExtractor.java index 20155e0529..f51221078b 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToLongDocumentExtractor.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/extractor/ToLongDocumentExtractor.java @@ -143,4 +143,4 @@ static ToLongDocumentExtractor extractingIndex() { return (wire, index) -> index; } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/package-info.java b/src/main/java/net/openhft/chronicle/wire/domestic/package-info.java index af19491bae..2752e4ac3c 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/package-info.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/package-info.java @@ -31,4 +31,4 @@ *

* The classes in this package and any sub-package are subject to change at any time for any reason. */ -package net.openhft.chronicle.wire.domestic; \ No newline at end of file +package net.openhft.chronicle.wire.domestic; diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/ConcurrentCollectors.java b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/ConcurrentCollectors.java index 856fdb2aa2..5d4b914bd8 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/ConcurrentCollectors.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/ConcurrentCollectors.java @@ -236,4 +236,4 @@ public static BinaryOperator throwingMerger() { }; } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/README.adoc b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/README.adoc index bd5ac1f57d..8643ab051f 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/README.adoc +++ b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/README.adoc @@ -30,7 +30,6 @@ Reduction> latest = Reduction.of( replacingMerger()) <5> ); - ChronicleQueue q = SingleChronicleQueueBuilder.builder() .path("market-data-queue") .appenderListener(latest) <6> diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reduction.java b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reduction.java index cf60e3a3f0..eb9f6ed545 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reduction.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reduction.java @@ -168,4 +168,4 @@ Reduction reducing(@NotNull final Supplier supplier, @NotNull final ToDoubleFunction finisher); } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reductions.java b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reductions.java index 8c91dc3a7e..1d0404fcdb 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reductions.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/reduction/Reductions.java @@ -153,5 +153,4 @@ public int hashCode() { } } - -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/domestic/stream/Streams.java b/src/main/java/net/openhft/chronicle/wire/domestic/stream/Streams.java index 81df92e12e..f41207696a 100644 --- a/src/main/java/net/openhft/chronicle/wire/domestic/stream/Streams.java +++ b/src/main/java/net/openhft/chronicle/wire/domestic/stream/Streams.java @@ -270,4 +270,4 @@ public static PrimitiveIterator.OfDouble iteratorOfDouble(@NotNull final Marshal return new StreamsUtil.ExcerptIteratorOfDouble(documentProvider, extractor); } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/internal/HTTPMarshallableOut.java b/src/main/java/net/openhft/chronicle/wire/internal/HTTPMarshallableOut.java index 17e55cf699..697861ba47 100644 --- a/src/main/java/net/openhft/chronicle/wire/internal/HTTPMarshallableOut.java +++ b/src/main/java/net/openhft/chronicle/wire/internal/HTTPMarshallableOut.java @@ -77,7 +77,6 @@ public void close() { } }; - public HTTPMarshallableOut(MarshallableOutBuilder builder, WireType wireType) { this.url = builder.url(); diff --git a/src/main/java/net/openhft/chronicle/wire/internal/InternalAutoTailers.java b/src/main/java/net/openhft/chronicle/wire/internal/InternalAutoTailers.java index 02cdc886f7..7b8bdd710e 100644 --- a/src/main/java/net/openhft/chronicle/wire/internal/InternalAutoTailers.java +++ b/src/main/java/net/openhft/chronicle/wire/internal/InternalAutoTailers.java @@ -24,8 +24,8 @@ import net.openhft.chronicle.threads.Pauser; import net.openhft.chronicle.wire.ExcerptListener; import net.openhft.chronicle.wire.MarshallableIn; -import net.openhft.chronicle.wire.internal.reduction.ReductionUtil; import net.openhft.chronicle.wire.domestic.AutoTailers; +import net.openhft.chronicle.wire.internal.reduction.ReductionUtil; import org.jetbrains.annotations.NotNull; import java.util.function.Supplier; @@ -132,4 +132,4 @@ private static Runnable closer(MarshallableIn tailer) { } } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorBuilder.java b/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorBuilder.java index 3ffe2432ad..79c9cf2dc3 100644 --- a/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorBuilder.java +++ b/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorBuilder.java @@ -148,4 +148,4 @@ public BiConsumer methodReference() { } } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorUtil.java b/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorUtil.java index 5daee4e3ef..434b31f0ad 100644 --- a/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorUtil.java +++ b/src/main/java/net/openhft/chronicle/wire/internal/extractor/DocumentExtractorUtil.java @@ -76,7 +76,6 @@ DocumentExtractor ofMethod(@NotNull final Class type, } - public static MethodNameAndMessageType methodOf(@NotNull final Class type, @NotNull final BiConsumer methodReference) { @@ -117,4 +116,4 @@ public Class messageType() { } } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/internal/reduction/ReductionUtil.java b/src/main/java/net/openhft/chronicle/wire/internal/reduction/ReductionUtil.java index 3a66834465..349a944116 100644 --- a/src/main/java/net/openhft/chronicle/wire/internal/reduction/ReductionUtil.java +++ b/src/main/java/net/openhft/chronicle/wire/internal/reduction/ReductionUtil.java @@ -26,9 +26,9 @@ import net.openhft.chronicle.wire.MarshallableIn; import net.openhft.chronicle.wire.Wire; import net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor; -import net.openhft.chronicle.wire.domestic.reduction.Reduction; import net.openhft.chronicle.wire.domestic.extractor.ToDoubleDocumentExtractor; import net.openhft.chronicle.wire.domestic.extractor.ToLongDocumentExtractor; +import net.openhft.chronicle.wire.domestic.reduction.Reduction; import org.jetbrains.annotations.NotNull; import java.util.function.*; @@ -235,4 +235,4 @@ public Reduction reducing(@NotNull final Supplier supplie } } -} \ No newline at end of file +} diff --git a/src/main/java/net/openhft/chronicle/wire/internal/stream/StreamsUtil.java b/src/main/java/net/openhft/chronicle/wire/internal/stream/StreamsUtil.java index ceb71c18c5..649f004217 100644 --- a/src/main/java/net/openhft/chronicle/wire/internal/stream/StreamsUtil.java +++ b/src/main/java/net/openhft/chronicle/wire/internal/stream/StreamsUtil.java @@ -355,4 +355,4 @@ public double nextDouble() { } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/AbstractCommonMarshallableTest.java b/src/test/java/net/openhft/chronicle/wire/AbstractCommonMarshallableTest.java index 1197b3d70e..e9f33366ea 100644 --- a/src/test/java/net/openhft/chronicle/wire/AbstractCommonMarshallableTest.java +++ b/src/test/java/net/openhft/chronicle/wire/AbstractCommonMarshallableTest.java @@ -29,4 +29,4 @@ void doesNotUseSelfDescribingMessagesByDefault() { assertFalse(new AbstractCommonMarshallable() { }.usesSelfDescribingMessage()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/AbstractMarshallableCfgTest.java b/src/test/java/net/openhft/chronicle/wire/AbstractMarshallableCfgTest.java index e2f063e152..8cbfa2038a 100644 --- a/src/test/java/net/openhft/chronicle/wire/AbstractMarshallableCfgTest.java +++ b/src/test/java/net/openhft/chronicle/wire/AbstractMarshallableCfgTest.java @@ -55,4 +55,4 @@ public void deepCopy() { assertNotSame(myAMC.nestedSDM, myAMC2.nestedSDM); assertNotSame(myAMC.nestedSDM.bytes, myAMC2.nestedSDM.bytes); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/AbstractUntypedFieldTest.java b/src/test/java/net/openhft/chronicle/wire/AbstractUntypedFieldTest.java index 06687b6f49..bc9904c69b 100644 --- a/src/test/java/net/openhft/chronicle/wire/AbstractUntypedFieldTest.java +++ b/src/test/java/net/openhft/chronicle/wire/AbstractUntypedFieldTest.java @@ -101,5 +101,4 @@ private static final class Holder { A a; } - } diff --git a/src/test/java/net/openhft/chronicle/wire/Base32LongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/Base32LongConverterTest.java index ef8371612d..a5129bd163 100644 --- a/src/test/java/net/openhft/chronicle/wire/Base32LongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/Base32LongConverterTest.java @@ -62,4 +62,4 @@ private void allSafeChars(Wire wire) { }); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/Base64LongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/Base64LongConverterTest.java index 04ac4fa3a5..b4d4c052a2 100644 --- a/src/test/java/net/openhft/chronicle/wire/Base64LongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/Base64LongConverterTest.java @@ -79,4 +79,4 @@ private void allSafeChars(Wire wire) { }); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/Base85LongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/Base85LongConverterTest.java index aaf0fbd2e2..d5a2b59a99 100644 --- a/src/test/java/net/openhft/chronicle/wire/Base85LongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/Base85LongConverterTest.java @@ -108,4 +108,4 @@ private void allSafeChars(Wire wire) { }); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/BinaryMethodWriterInvocationHandlerTest.java b/src/test/java/net/openhft/chronicle/wire/BinaryMethodWriterInvocationHandlerTest.java index d1cddbedbd..923725e15d 100644 --- a/src/test/java/net/openhft/chronicle/wire/BinaryMethodWriterInvocationHandlerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/BinaryMethodWriterInvocationHandlerTest.java @@ -46,4 +46,4 @@ public void testOnClose() throws Exception { verify(closeable); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/BinaryWireHighCodeTest.java b/src/test/java/net/openhft/chronicle/wire/BinaryWireHighCodeTest.java index 6b45c1f005..0de49b5c29 100644 --- a/src/test/java/net/openhft/chronicle/wire/BinaryWireHighCodeTest.java +++ b/src/test/java/net/openhft/chronicle/wire/BinaryWireHighCodeTest.java @@ -37,4 +37,4 @@ public void testUnique() throws IllegalAccessException { assertTrue(values.add(value)); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/BinaryWirePerfTest.java b/src/test/java/net/openhft/chronicle/wire/BinaryWirePerfTest.java index a0c7d5f5c4..8b41fbfa62 100644 --- a/src/test/java/net/openhft/chronicle/wire/BinaryWirePerfTest.java +++ b/src/test/java/net/openhft/chronicle/wire/BinaryWirePerfTest.java @@ -186,4 +186,4 @@ public int code() { } } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/BinaryWireStringInternerTest.java b/src/test/java/net/openhft/chronicle/wire/BinaryWireStringInternerTest.java index 0e85ba74fd..6ffd4865fa 100644 --- a/src/test/java/net/openhft/chronicle/wire/BinaryWireStringInternerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/BinaryWireStringInternerTest.java @@ -175,4 +175,4 @@ public void run() { } } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/BinaryWireTest.java b/src/test/java/net/openhft/chronicle/wire/BinaryWireTest.java index 2f2fe5e78a..b46d1ed8fc 100644 --- a/src/test/java/net/openhft/chronicle/wire/BinaryWireTest.java +++ b/src/test/java/net/openhft/chronicle/wire/BinaryWireTest.java @@ -24,7 +24,6 @@ import net.openhft.chronicle.core.annotation.ScopeConfined; import net.openhft.chronicle.core.io.IOTools; import net.openhft.chronicle.core.io.VanillaReferenceOwner; -import net.openhft.chronicle.core.scoped.ScopedResource; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.junit.Assert; @@ -1448,4 +1447,4 @@ static class DTO extends SelfDescribingMarshallable { class Circle implements Marshallable { } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/BitSetTest.java b/src/test/java/net/openhft/chronicle/wire/BitSetTest.java index ae976ef804..7e623122df 100644 --- a/src/test/java/net/openhft/chronicle/wire/BitSetTest.java +++ b/src/test/java/net/openhft/chronicle/wire/BitSetTest.java @@ -123,4 +123,4 @@ public void testBitSetUsing() { b.releaseLast(); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/CSVWireTest.java b/src/test/java/net/openhft/chronicle/wire/CSVWireTest.java index 475423b0eb..52e2a98db5 100644 --- a/src/test/java/net/openhft/chronicle/wire/CSVWireTest.java +++ b/src/test/java/net/openhft/chronicle/wire/CSVWireTest.java @@ -120,4 +120,4 @@ public void doTestWire(@NotNull Wire wire) { }); assertFalse(wire.hasMore()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/CharSequenceObjectMapTest.java b/src/test/java/net/openhft/chronicle/wire/CharSequenceObjectMapTest.java index b4ddbc3719..88e6b2e16f 100644 --- a/src/test/java/net/openhft/chronicle/wire/CharSequenceObjectMapTest.java +++ b/src/test/java/net/openhft/chronicle/wire/CharSequenceObjectMapTest.java @@ -33,4 +33,4 @@ public void put() { assertEquals("" + i, map.get("" + i)); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/ChronicleBitSetTest.java b/src/test/java/net/openhft/chronicle/wire/ChronicleBitSetTest.java index 4dc6c6f42f..ed1c1c2595 100644 --- a/src/test/java/net/openhft/chronicle/wire/ChronicleBitSetTest.java +++ b/src/test/java/net/openhft/chronicle/wire/ChronicleBitSetTest.java @@ -865,7 +865,6 @@ public void testGet() { assertEquals(0, failCount); }*/ - @Test public void testIntersects() { int failCount = 0; @@ -1174,4 +1173,4 @@ private ChronicleBitSet createBitSet(Wire w, long size) { throw new AssertionError(t); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/EnumTest.java b/src/test/java/net/openhft/chronicle/wire/EnumTest.java index e63ca9914f..503b2396dc 100644 --- a/src/test/java/net/openhft/chronicle/wire/EnumTest.java +++ b/src/test/java/net/openhft/chronicle/wire/EnumTest.java @@ -68,4 +68,4 @@ public EnumTest.TestEnum readResolve() { return INSTANCE; } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/FlowMethodTest.java b/src/test/java/net/openhft/chronicle/wire/FlowMethodTest.java index e1acc5ddfa..c1521abe82 100644 --- a/src/test/java/net/openhft/chronicle/wire/FlowMethodTest.java +++ b/src/test/java/net/openhft/chronicle/wire/FlowMethodTest.java @@ -52,4 +52,4 @@ public void runYaml() throws IOException { .run(); assertEquals(test.expected(), test.actual()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/GenerateJsonSchemaMainTest.java b/src/test/java/net/openhft/chronicle/wire/GenerateJsonSchemaMainTest.java index 8876d75182..aade1624a7 100644 --- a/src/test/java/net/openhft/chronicle/wire/GenerateJsonSchemaMainTest.java +++ b/src/test/java/net/openhft/chronicle/wire/GenerateJsonSchemaMainTest.java @@ -105,4 +105,4 @@ public void generateSchemaFor() throws ClassNotFoundException { " }\n" + "}\n", main0); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/GenerateMethodDelegateTest.java b/src/test/java/net/openhft/chronicle/wire/GenerateMethodDelegateTest.java index 6929f676dc..b08c390fb6 100644 --- a/src/test/java/net/openhft/chronicle/wire/GenerateMethodDelegateTest.java +++ b/src/test/java/net/openhft/chronicle/wire/GenerateMethodDelegateTest.java @@ -114,4 +114,4 @@ interface Chained2 { interface RCSB extends Runnable, Consumer, Supplier, BiConsumer { } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/HashWireTest.java b/src/test/java/net/openhft/chronicle/wire/HashWireTest.java index 4fce9a9f12..f128d74cde 100644 --- a/src/test/java/net/openhft/chronicle/wire/HashWireTest.java +++ b/src/test/java/net/openhft/chronicle/wire/HashWireTest.java @@ -66,4 +66,4 @@ public Field(String name) { this.name = name; } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/IdentifierLongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/IdentifierLongConverterTest.java index bca49294db..b7b49a5245 100644 --- a/src/test/java/net/openhft/chronicle/wire/IdentifierLongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/IdentifierLongConverterTest.java @@ -99,4 +99,4 @@ private void allSafeChars(Wire wire) { }); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/Issue341Test.java b/src/test/java/net/openhft/chronicle/wire/Issue341Test.java index 343a38f5a0..22a3effd4b 100644 --- a/src/test/java/net/openhft/chronicle/wire/Issue341Test.java +++ b/src/test/java/net/openhft/chronicle/wire/Issue341Test.java @@ -72,7 +72,6 @@ public void instant() { } - @Test public void testComparableSerializable() { // for backward compatibility, this doesn't support types diff --git a/src/test/java/net/openhft/chronicle/wire/JSONEmptySequencesTest.java b/src/test/java/net/openhft/chronicle/wire/JSONEmptySequencesTest.java index 43488d6b77..fe5374d695 100644 --- a/src/test/java/net/openhft/chronicle/wire/JSONEmptySequencesTest.java +++ b/src/test/java/net/openhft/chronicle/wire/JSONEmptySequencesTest.java @@ -4,6 +4,7 @@ import net.openhft.chronicle.core.pool.ClassAliasPool; import org.junit.Assert; import org.junit.Test; + import java.util.ArrayList; import java.util.List; @@ -44,4 +45,4 @@ private static final class Foo extends SelfDescribingMarshallable { final List field3 = new ArrayList<>(); final List field4 = new ArrayList<>(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/JSONTypesWithEnumsAndBoxedTypesTest.java b/src/test/java/net/openhft/chronicle/wire/JSONTypesWithEnumsAndBoxedTypesTest.java index 7a668fd25a..6c49a525c3 100644 --- a/src/test/java/net/openhft/chronicle/wire/JSONTypesWithEnumsAndBoxedTypesTest.java +++ b/src/test/java/net/openhft/chronicle/wire/JSONTypesWithEnumsAndBoxedTypesTest.java @@ -77,7 +77,6 @@ public void test() { System.out.println(jsonWire.bytes()); - final String actual = jsonWire.getValueIn().object().toString(); Assert.assertTrue(actual.contains("TRACK")); } diff --git a/src/test/java/net/openhft/chronicle/wire/JSONTypesWithMapsTest.java b/src/test/java/net/openhft/chronicle/wire/JSONTypesWithMapsTest.java index 496f905212..7f1fba3638 100644 --- a/src/test/java/net/openhft/chronicle/wire/JSONTypesWithMapsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/JSONTypesWithMapsTest.java @@ -51,7 +51,6 @@ public JSONTypesWithMapsTest(boolean useTypes) { this.useTypes = useTypes; } - static class F1 { private String surname; private int car; diff --git a/src/test/java/net/openhft/chronicle/wire/JSONWireMiscTest.java b/src/test/java/net/openhft/chronicle/wire/JSONWireMiscTest.java index 70d6f72a3d..6326ebf64b 100644 --- a/src/test/java/net/openhft/chronicle/wire/JSONWireMiscTest.java +++ b/src/test/java/net/openhft/chronicle/wire/JSONWireMiscTest.java @@ -32,7 +32,6 @@ import static net.openhft.chronicle.wire.JsonUtil.assertBalancedBrackets; - /** * relates to https://github.com/OpenHFT/Chronicle-Wire/issues/324 */ @@ -201,6 +200,4 @@ public void serializable() { assertBalancedBrackets(actual); } - - } diff --git a/src/test/java/net/openhft/chronicle/wire/JSONWireWithListsTest.java b/src/test/java/net/openhft/chronicle/wire/JSONWireWithListsTest.java index 69e52fd5e3..410fe31827 100644 --- a/src/test/java/net/openhft/chronicle/wire/JSONWireWithListsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/JSONWireWithListsTest.java @@ -47,7 +47,6 @@ public JSONWireWithListsTest(boolean useTypes) { this.useTypes = useTypes; } - static class F1 { private String surname; private int car; diff --git a/src/test/java/net/openhft/chronicle/wire/JsonUtil.java b/src/test/java/net/openhft/chronicle/wire/JsonUtil.java index 91a2e561e1..346773c144 100644 --- a/src/test/java/net/openhft/chronicle/wire/JsonUtil.java +++ b/src/test/java/net/openhft/chronicle/wire/JsonUtil.java @@ -47,7 +47,6 @@ static void assertBalancedBrackets(String input, openingCount, closingCount); - } } diff --git a/src/test/java/net/openhft/chronicle/wire/LongConversionExampleA.java b/src/test/java/net/openhft/chronicle/wire/LongConversionExampleA.java index e532725cc1..a1c10b32b7 100644 --- a/src/test/java/net/openhft/chronicle/wire/LongConversionExampleA.java +++ b/src/test/java/net/openhft/chronicle/wire/LongConversionExampleA.java @@ -44,5 +44,3 @@ public static void main(String[] args) { } } - - diff --git a/src/test/java/net/openhft/chronicle/wire/MarshallableCfgResetTest.java b/src/test/java/net/openhft/chronicle/wire/MarshallableCfgResetTest.java index 395481ec1e..0c74c27ec9 100644 --- a/src/test/java/net/openhft/chronicle/wire/MarshallableCfgResetTest.java +++ b/src/test/java/net/openhft/chronicle/wire/MarshallableCfgResetTest.java @@ -25,7 +25,6 @@ public Boat(Engine engine) { } } - /** * tests that objects that extends AbstractMarshallableCfg are reset when calling {@link ValueIn#object(Object, Class)} */ diff --git a/src/test/java/net/openhft/chronicle/wire/MessagePathClassifierTest.java b/src/test/java/net/openhft/chronicle/wire/MessagePathClassifierTest.java index dac9f42117..3ae3be1570 100644 --- a/src/test/java/net/openhft/chronicle/wire/MessagePathClassifierTest.java +++ b/src/test/java/net/openhft/chronicle/wire/MessagePathClassifierTest.java @@ -50,4 +50,4 @@ public void addPathForSourcesEnding2() { .addPathForSourcesEnding(123, 1, 2, 3) .addPathForSourcesEnding(444, 4); // error. } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/MethodReaderMethodIdsTest.java b/src/test/java/net/openhft/chronicle/wire/MethodReaderMethodIdsTest.java index 9a2549cd19..5a50d7e180 100644 --- a/src/test/java/net/openhft/chronicle/wire/MethodReaderMethodIdsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/MethodReaderMethodIdsTest.java @@ -50,4 +50,4 @@ interface Speaker { @MethodId(7) void say(final String message); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/MicroTimestampLongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/MicroTimestampLongConverterTest.java index fed918b182..7119b2c1c7 100644 --- a/src/test/java/net/openhft/chronicle/wire/MicroTimestampLongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/MicroTimestampLongConverterTest.java @@ -97,4 +97,4 @@ private void roundTrip(String timestampString, long timestamp, LongConverter lon assertEquals(longConverter.asString(longConverter.parse(timestampString)), timestampString); assertEquals(longConverter.parse(longConverter.asString(timestamp)), timestamp); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/MilliTimestampLongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/MilliTimestampLongConverterTest.java index 226acb513f..2fae6aba21 100644 --- a/src/test/java/net/openhft/chronicle/wire/MilliTimestampLongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/MilliTimestampLongConverterTest.java @@ -89,4 +89,4 @@ private void roundTrip(String timestampString, long timestamp, LongConverter lon assertEquals(longConverter.asString(longConverter.parse(timestampString)), timestampString); assertEquals(longConverter.parse(longConverter.asString(timestamp)), timestamp); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/NanoTimestampLongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/NanoTimestampLongConverterTest.java index 1d5c25f2b4..120cf9a9a1 100644 --- a/src/test/java/net/openhft/chronicle/wire/NanoTimestampLongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/NanoTimestampLongConverterTest.java @@ -82,4 +82,4 @@ private void roundTrip(String timestampString, long timestamp, LongConverter lon assertEquals(timestamp, longConverter.parse(longConverter.asString(timestamp))); assertEquals(timestampString, longConverter.asString(longConverter.parse(timestampString))); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/Outer1.java b/src/test/java/net/openhft/chronicle/wire/Outer1.java index 61e1090804..92ab0db45e 100644 --- a/src/test/java/net/openhft/chronicle/wire/Outer1.java +++ b/src/test/java/net/openhft/chronicle/wire/Outer1.java @@ -22,4 +22,4 @@ class Outer1 { public interface InnerInterface { void x(String message); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/Outer2.java b/src/test/java/net/openhft/chronicle/wire/Outer2.java index c6a9518018..3bfd92752e 100644 --- a/src/test/java/net/openhft/chronicle/wire/Outer2.java +++ b/src/test/java/net/openhft/chronicle/wire/Outer2.java @@ -22,4 +22,4 @@ class Outer2 { interface InnerInterface { void y(String message); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/RawWireTest.java b/src/test/java/net/openhft/chronicle/wire/RawWireTest.java index 34eccf9593..8900b33dd3 100644 --- a/src/test/java/net/openhft/chronicle/wire/RawWireTest.java +++ b/src/test/java/net/openhft/chronicle/wire/RawWireTest.java @@ -497,4 +497,4 @@ public void testWriteMarshallable() { enum BWKey implements WireKey { field1, field2, field3 } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/ReadDocumentContextTest.java b/src/test/java/net/openhft/chronicle/wire/ReadDocumentContextTest.java index ab02241c24..08077d0e60 100644 --- a/src/test/java/net/openhft/chronicle/wire/ReadDocumentContextTest.java +++ b/src/test/java/net/openhft/chronicle/wire/ReadDocumentContextTest.java @@ -226,4 +226,4 @@ public void testReadingADocumentThatHasNotBeenFullyReadFromTheTcpSocketAt5Bytes( b.releaseLast(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/ReadmeChapter1Test.java b/src/test/java/net/openhft/chronicle/wire/ReadmeChapter1Test.java index 5a55e99b7d..44fa1ff98c 100644 --- a/src/test/java/net/openhft/chronicle/wire/ReadmeChapter1Test.java +++ b/src/test/java/net/openhft/chronicle/wire/ReadmeChapter1Test.java @@ -578,4 +578,4 @@ public Data(String message, long number, TimeUnit timeUnit, double price) { ``` */ -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/SequenceTest.java b/src/test/java/net/openhft/chronicle/wire/SequenceTest.java index 5846a6564b..80581b6879 100644 --- a/src/test/java/net/openhft/chronicle/wire/SequenceTest.java +++ b/src/test/java/net/openhft/chronicle/wire/SequenceTest.java @@ -162,4 +162,4 @@ public void readMarshallable(@NotNull WireIn wire) throws IORuntimeException { wire.read("stuff").sequence(stuff, stuffBuffer, StringBuilder::new); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/SerializableObjectTest.java b/src/test/java/net/openhft/chronicle/wire/SerializableObjectTest.java index 6b73a65b7d..37d69ebeaa 100644 --- a/src/test/java/net/openhft/chronicle/wire/SerializableObjectTest.java +++ b/src/test/java/net/openhft/chronicle/wire/SerializableObjectTest.java @@ -83,7 +83,6 @@ final class SerializableObjectTest extends WireTestCommon { ) .collect(Collectors.collectingAndThen(toSet(), Collections::unmodifiableSet)); - private static final Set> IGNORED_CLASSES = new HashSet<>(Arrays.asList( DoubleSummaryStatistics.class, DriverPropertyInfo.class, @@ -102,7 +101,6 @@ final class SerializableObjectTest extends WireTestCommon { } - private static final Predicate CONSTRUCTOR_IS_DEFAULT = methodInfo -> methodInfo.isPublic() && methodInfo.getTypeDescriptor().getTypeParameters().isEmpty(); private static final ClassInfoList.ClassInfoFilter NOT_IGNORED = ci -> IGNORED_PACKAGES.stream().noneMatch(ip -> ci.getPackageName().startsWith(ip)); @@ -283,7 +281,6 @@ void reflectedObjects2() { .filter(ClassInfo::isPublic) .filter(ci -> !IGNORED_PACKAGES.stream().anyMatch(ip -> ci.getPackageName().startsWith(ip))); - widgetClasses. forEach(System.out::println); System.out.println("widgetClasses.size() = " + widgetClasses.size()); diff --git a/src/test/java/net/openhft/chronicle/wire/StringConsumerMarshallableOutTest.java b/src/test/java/net/openhft/chronicle/wire/StringConsumerMarshallableOutTest.java index ce2f9e8af2..8a99946d22 100755 --- a/src/test/java/net/openhft/chronicle/wire/StringConsumerMarshallableOutTest.java +++ b/src/test/java/net/openhft/chronicle/wire/StringConsumerMarshallableOutTest.java @@ -18,8 +18,6 @@ package net.openhft.chronicle.wire; -import net.openhft.chronicle.wire.MarshallableOut; -import net.openhft.chronicle.wire.WireType; import net.openhft.chronicle.wire.internal.StringConsumerMarshallableOut; import org.junit.Test; @@ -69,4 +67,4 @@ private void doTest(WireType wireType, String expected) { interface Says { void say(String text); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/TestJsonIssue467.java b/src/test/java/net/openhft/chronicle/wire/TestJsonIssue467.java index f376defb39..771e477b46 100644 --- a/src/test/java/net/openhft/chronicle/wire/TestJsonIssue467.java +++ b/src/test/java/net/openhft/chronicle/wire/TestJsonIssue467.java @@ -35,7 +35,6 @@ public static class ResponseItem extends SelfDescribingMarshallable { private Object payload; } - @Ignore @org.junit.Test public void test() { diff --git a/src/test/java/net/openhft/chronicle/wire/TextDocumentTest.java b/src/test/java/net/openhft/chronicle/wire/TextDocumentTest.java index 1771f51a22..748256a435 100644 --- a/src/test/java/net/openhft/chronicle/wire/TextDocumentTest.java +++ b/src/test/java/net/openhft/chronicle/wire/TextDocumentTest.java @@ -113,4 +113,4 @@ public void closeAll() { Closeable.closeQuietly(readByte, writeByte); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/TimestampLongConverterZoneIdsTest.java b/src/test/java/net/openhft/chronicle/wire/TimestampLongConverterZoneIdsTest.java index 353621632a..7a1c64d341 100644 --- a/src/test/java/net/openhft/chronicle/wire/TimestampLongConverterZoneIdsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/TimestampLongConverterZoneIdsTest.java @@ -97,4 +97,4 @@ public NanoTimestampLongConverter createConverter(String zoneId) { interface ConverterFactory { AbstractTimestampLongConverter createConverter(String zoneId); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/TriviallyCopyableJLBH.java b/src/test/java/net/openhft/chronicle/wire/TriviallyCopyableJLBH.java index 479dbbb2a3..e863a562ff 100644 --- a/src/test/java/net/openhft/chronicle/wire/TriviallyCopyableJLBH.java +++ b/src/test/java/net/openhft/chronicle/wire/TriviallyCopyableJLBH.java @@ -18,13 +18,13 @@ package net.openhft.chronicle.wire; +import net.openhft.affinity.AffinityLock; import net.openhft.chronicle.bytes.*; import net.openhft.chronicle.bytes.util.BinaryLengthLength; import net.openhft.chronicle.core.Jvm; import net.openhft.chronicle.jlbh.JLBH; import net.openhft.chronicle.jlbh.JLBHOptions; import net.openhft.chronicle.jlbh.JLBHTask; -import net.openhft.affinity.AffinityLock; import org.jetbrains.annotations.NotNull; import static net.openhft.chronicle.core.io.IOTools.deleteDirWithFiles; @@ -32,14 +32,12 @@ public class TriviallyCopyableJLBH implements JLBHTask { - enum HouseType { TRIVIALLY_COPYABLE, BINARY_WIRE, UNKNOWN; } - // use -Dio.type=binary or trivial to set. Defaults to binary HouseType type = HouseType.UNKNOWN; @@ -79,33 +77,28 @@ public BaseHouse address(CharSequence owner) { return this; } - // reads the bytes and updates 'this' instance, with the data in the bytes. @Override public void readMarshallable(BytesIn bytes) { bytes.unsafeReadObject(this, START, LENGTH); } - // reads 'this' instance and writes a copy of it to the bytes. @Override public void writeMarshallable(BytesOut bytes) { bytes.unsafeWriteObject(this, START, LENGTH); } - // the amount of data data in `this` @Override public BinaryLengthLength binaryLengthLength() { return BinaryLengthLength.LENGTH_8BIT; } - } public static class House extends SelfDescribingMarshallable implements BaseHouse { - final Bytes address = Bytes.allocateDirect(128); public BaseHouse address(CharSequence owner) { @@ -114,7 +107,6 @@ public BaseHouse address(CharSequence owner) { } } - private JLBH lth; final BaseHouse originalHouse; @@ -149,7 +141,6 @@ public static void main(String[] args) { targetHouse = newHouse(type); } - public void test() { deleteDirWithFiles("tmp"); @NotNull JLBHOptions jlbhOptions = new JLBHOptions() diff --git a/src/test/java/net/openhft/chronicle/wire/UnknownFieldsTest.java b/src/test/java/net/openhft/chronicle/wire/UnknownFieldsTest.java index f80939f27e..a2b9fb1e14 100644 --- a/src/test/java/net/openhft/chronicle/wire/UnknownFieldsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/UnknownFieldsTest.java @@ -84,4 +84,4 @@ public void unexpectedField(Object event, ValueIn valueIn) { } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/UpdateInterceptorReturnTypeTest.java b/src/test/java/net/openhft/chronicle/wire/UpdateInterceptorReturnTypeTest.java index 7b7635f51e..3f5b71aabf 100644 --- a/src/test/java/net/openhft/chronicle/wire/UpdateInterceptorReturnTypeTest.java +++ b/src/test/java/net/openhft/chronicle/wire/UpdateInterceptorReturnTypeTest.java @@ -162,4 +162,4 @@ interface WithObjectReturnType { interface WithObjectVoidReturnType { Void x(String x); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/UsingTestMarshallableTest.java b/src/test/java/net/openhft/chronicle/wire/UsingTestMarshallableTest.java index 5c279660ae..96b57076a3 100644 --- a/src/test/java/net/openhft/chronicle/wire/UsingTestMarshallableTest.java +++ b/src/test/java/net/openhft/chronicle/wire/UsingTestMarshallableTest.java @@ -29,7 +29,6 @@ import static org.junit.Assert.assertEquals; - public class UsingTestMarshallableTest extends net.openhft.chronicle.wire.WireTestCommon { @Test diff --git a/src/test/java/net/openhft/chronicle/wire/VanillaMessageHistoryTest.java b/src/test/java/net/openhft/chronicle/wire/VanillaMessageHistoryTest.java index 286d894bac..ab3b192816 100644 --- a/src/test/java/net/openhft/chronicle/wire/VanillaMessageHistoryTest.java +++ b/src/test/java/net/openhft/chronicle/wire/VanillaMessageHistoryTest.java @@ -66,4 +66,4 @@ public void equalsHashCode() { vmh2.hashCode()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/VanillaMethodReaderTest.java b/src/test/java/net/openhft/chronicle/wire/VanillaMethodReaderTest.java index bf9ad1c0f5..b4bf47b842 100644 --- a/src/test/java/net/openhft/chronicle/wire/VanillaMethodReaderTest.java +++ b/src/test/java/net/openhft/chronicle/wire/VanillaMethodReaderTest.java @@ -107,4 +107,4 @@ interface ITCO { void marketData(TriviallyCopyableMarketData tcmd); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/VanillaMethodWriterBuilderVerboseTypesTest.java b/src/test/java/net/openhft/chronicle/wire/VanillaMethodWriterBuilderVerboseTypesTest.java index 6fb53599d0..3baccbfd67 100644 --- a/src/test/java/net/openhft/chronicle/wire/VanillaMethodWriterBuilderVerboseTypesTest.java +++ b/src/test/java/net/openhft/chronicle/wire/VanillaMethodWriterBuilderVerboseTypesTest.java @@ -58,7 +58,6 @@ public static class MyObject extends SelfDescribingMarshallable { private final ArrayList list = new ArrayList<>(); - public MyObject(String str, int value) { list.add(new MyObject2(str, value)); } @@ -81,4 +80,4 @@ public void test() { Assert.assertEquals(expects, bytes.toString()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireDumperTest.java b/src/test/java/net/openhft/chronicle/wire/WireDumperTest.java index a0eeb72abc..f14b803f31 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireDumperTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireDumperTest.java @@ -229,4 +229,4 @@ private void initTestData() { "meow\n"); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireInternalInternTest.java b/src/test/java/net/openhft/chronicle/wire/WireInternalInternTest.java index 79dacde600..cd1869ab71 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireInternalInternTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireInternalInternTest.java @@ -89,4 +89,4 @@ public void marshallable() { String s = WireType.TEXT.asString(o); assertEquals(typeValue.trim(), s.trim().replaceAll("\"", "")); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireInternalTest.java b/src/test/java/net/openhft/chronicle/wire/WireInternalTest.java index 50125a7712..0c66042fac 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireInternalTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireInternalTest.java @@ -110,4 +110,4 @@ public void testFromSizePrefixedBinaryToText() { bytes.releaseLast(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireMarshallerTest.java b/src/test/java/net/openhft/chronicle/wire/WireMarshallerTest.java index ff714e6342..35216f0ddc 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireMarshallerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireMarshallerTest.java @@ -37,4 +37,4 @@ public void usesBinary() { " a7 2b 20 d2 5c 8a 97 05 00 # 1573995402108971\n", bytes.toHexString()); bytes.releaseLast(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireParserTest.java b/src/test/java/net/openhft/chronicle/wire/WireParserTest.java index 658a735b46..980320af4f 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireParserTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireParserTest.java @@ -33,4 +33,4 @@ public void noOpReadOne() { WireParser.skipReadable(-1, wire); assertEquals(0, wire.bytes().readRemaining()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireResetTest.java b/src/test/java/net/openhft/chronicle/wire/WireResetTest.java index 560c25756c..3b7461d8c2 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireResetTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireResetTest.java @@ -147,4 +147,4 @@ static class Identifier extends SelfDescribingMarshallable { this.id = id; } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireStringCollectionTest.java b/src/test/java/net/openhft/chronicle/wire/WireStringCollectionTest.java index bda115d13a..115da74f34 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireStringCollectionTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireStringCollectionTest.java @@ -52,4 +52,4 @@ private static class ContainsList extends AbstractEventCfg { @NotNull List list = new ArrayList<>(); @NotNull Map map = new HashMap<>(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireTextBugTest.java b/src/test/java/net/openhft/chronicle/wire/WireTextBugTest.java index fcf78d2e58..88ac6e4f15 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireTextBugTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireTextBugTest.java @@ -80,4 +80,4 @@ public void setClOrdID(String aClOrdID) { clOrdID = aClOrdID; } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireToOutputStreamTest.java b/src/test/java/net/openhft/chronicle/wire/WireToOutputStreamTest.java index d08ee900ea..8812281161 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireToOutputStreamTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireToOutputStreamTest.java @@ -139,4 +139,4 @@ public AnObject writeAnObject(Wire wire) { Wires.writeMarshallable(ao, wire); return ao; } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WireTypeConverterTest.java b/src/test/java/net/openhft/chronicle/wire/WireTypeConverterTest.java index ba11025072..8ec92428a0 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireTypeConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireTypeConverterTest.java @@ -7,7 +7,6 @@ public class WireTypeConverterTest extends net.openhft.chronicle.wire.WireTestCommon { - private final String json = "{\"@net.openhft.chronicle.wire.MyClass\":{\"msg\":\"msg:\\\"hello\\\"\"}}"; private final String yaml = "!net.openhft.chronicle.wire.MyClass {\n" + @@ -31,7 +30,6 @@ public void testJsonToYaml() throws Exception { Assert.assertEquals(json, new WireTypeConverter().yamlToJson(yaml).toString()); } - @Test(expected = net.openhft.chronicle.core.util.ClassNotFoundRuntimeException.class) public void testYamlToJsonUnknownClass() throws Exception { expectException("Unable to find net.openhft.chronicle.wire.UnknownClass"); diff --git a/src/test/java/net/openhft/chronicle/wire/WireTypeTest.java b/src/test/java/net/openhft/chronicle/wire/WireTypeTest.java index 7cacdd141f..d044470627 100644 --- a/src/test/java/net/openhft/chronicle/wire/WireTypeTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WireTypeTest.java @@ -108,4 +108,4 @@ public void testFromFile() throws IOException { assertEquals(tm, o); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WiresTest.java b/src/test/java/net/openhft/chronicle/wire/WiresTest.java index 3c850b992e..d457eeac8d 100644 --- a/src/test/java/net/openhft/chronicle/wire/WiresTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WiresTest.java @@ -403,4 +403,4 @@ static class ContainsBM extends BytesInBinaryMarshallable { interface Says { void say(String word); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/WordsLongConverterTest.java b/src/test/java/net/openhft/chronicle/wire/WordsLongConverterTest.java index b23e441b3d..98310f68c9 100644 --- a/src/test/java/net/openhft/chronicle/wire/WordsLongConverterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/WordsLongConverterTest.java @@ -115,4 +115,4 @@ public void parse() { interface AsWords { void words(@Words long words); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/YamlSpecificationTest.java b/src/test/java/net/openhft/chronicle/wire/YamlSpecificationTest.java index 90e784b768..a552b1d4e7 100644 --- a/src/test/java/net/openhft/chronicle/wire/YamlSpecificationTest.java +++ b/src/test/java/net/openhft/chronicle/wire/YamlSpecificationTest.java @@ -155,4 +155,4 @@ class Line implements Marshallable { class Label implements Marshallable { } -*/ \ No newline at end of file +*/ diff --git a/src/test/java/net/openhft/chronicle/wire/YamlTokeniserTest.java b/src/test/java/net/openhft/chronicle/wire/YamlTokeniserTest.java index 6d2a9c7b5c..3195af17f6 100644 --- a/src/test/java/net/openhft/chronicle/wire/YamlTokeniserTest.java +++ b/src/test/java/net/openhft/chronicle/wire/YamlTokeniserTest.java @@ -1415,4 +1415,4 @@ public void sample7() { " empty : ''\n" + "}\n")); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/SystemContextTest.java b/src/test/java/net/openhft/chronicle/wire/channel/SystemContextTest.java index 2c9bf8eb4c..25126d7872 100755 --- a/src/test/java/net/openhft/chronicle/wire/channel/SystemContextTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/SystemContextTest.java @@ -63,4 +63,4 @@ public void userCountry() { public void userName() { assertTrue(INSTANCE.userName().matches("[a-zA-Z].*")); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/book/README.adoc b/src/test/java/net/openhft/chronicle/wire/channel/book/README.adoc index 09f7a9a481..94dba5e3ac 100755 --- a/src/test/java/net/openhft/chronicle/wire/channel/book/README.adoc +++ b/src/test/java/net/openhft/chronicle/wire/channel/book/README.adoc @@ -139,4 +139,3 @@ In the past, there wasn't a clear advantage in using a newer version of Java, ho See this article on this package https://blog.vanillajava.blog/2022/09/java-is-very-fast-if-you-dont-create.html - diff --git a/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookHandlerTest.java b/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookHandlerTest.java index dc8e5bc68d..b8269b2f1d 100644 --- a/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookHandlerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookHandlerTest.java @@ -58,4 +58,4 @@ public static List parameters() { public void runTester() { assertEquals(tester.expected(), tester.actual()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookListenerBinarylightMethodWriter.java b/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookListenerBinarylightMethodWriter.java index cfb824d84c..21655e575b 100644 --- a/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookListenerBinarylightMethodWriter.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/book/TopOfBookListenerBinarylightMethodWriter.java @@ -53,4 +53,4 @@ public void topOfBook(final net.openhft.chronicle.wire.channel.book.TopOfBook to .marshallable(topOfBook); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/echo/ChannelVisitorTest.java b/src/test/java/net/openhft/chronicle/wire/channel/echo/ChannelVisitorTest.java index 0371439307..d12218ae61 100644 --- a/src/test/java/net/openhft/chronicle/wire/channel/echo/ChannelVisitorTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/echo/ChannelVisitorTest.java @@ -52,8 +52,6 @@ public void testChannel() { } } - - static class ChannelSessionName extends ChannelVisitor { @Override public String visit(ChronicleChannel channel) { @@ -61,7 +59,6 @@ public String visit(ChronicleChannel channel) { } } - static class ChannelHostId extends ChannelVisitor { @Override public Integer visit(ChronicleChannel channel) { diff --git a/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataSmallTest.java b/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataSmallTest.java index 7c8f7a3630..48ab2d5c5c 100755 --- a/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataSmallTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataSmallTest.java @@ -45,4 +45,4 @@ public void readMarshallable() { assertEquals(dd.timeNS(), dd2.timeNS()); assertArrayEquals(dd.data(), dd2.data()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataTest.java b/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataTest.java index 77b3af50af..f6102e9c82 100755 --- a/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/echo/DummyDataTest.java @@ -46,4 +46,4 @@ public void readMarshallable() { assertEquals(dd.timeNS(), dd2.timeNS()); assertArrayEquals(dd.data(), dd2.data()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/echo/EchoHandlerTest.java b/src/test/java/net/openhft/chronicle/wire/channel/echo/EchoHandlerTest.java index b9d6e63997..9bcf29a965 100755 --- a/src/test/java/net/openhft/chronicle/wire/channel/echo/EchoHandlerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/echo/EchoHandlerTest.java @@ -41,7 +41,6 @@ public void threadDump() { super.threadDump(); } - private static void doTest(ChronicleContext context, ChannelHandler handler) { ChronicleChannel channel = context.newChannelSupplier(handler).connectionTimeoutSecs(1).get(); Says says = channel.methodWriter(Says.class); @@ -198,4 +197,4 @@ public void readme() { assertEquals(2, count);*/ } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/channel/echo/RecordHistoryEchoHandlerTest.java b/src/test/java/net/openhft/chronicle/wire/channel/echo/RecordHistoryEchoHandlerTest.java index 472b50930b..bc417ce852 100755 --- a/src/test/java/net/openhft/chronicle/wire/channel/echo/RecordHistoryEchoHandlerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/channel/echo/RecordHistoryEchoHandlerTest.java @@ -140,4 +140,4 @@ protected ChannelHeader replaceOutHeader(ChannelHeader channelHeader) { } } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/CreateUtil.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/CreateUtil.java index d9c580afcd..34a8c87042 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/CreateUtil.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/CreateUtil.java @@ -79,4 +79,4 @@ public static Wire createThen(@NotNull final Consumer wireMutator) public static Wire create() { return Wire.newYamlWireOnHeap(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/StreamsTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/StreamsTest.java index 56c8856c9d..c85616fb69 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/StreamsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/StreamsTest.java @@ -34,7 +34,6 @@ class StreamsTest extends net.openhft.chronicle.wire.WireTestCommon { - @Test void streamTextMessage() { MarshallableIn tailer = createThenValueOuts(a -> a.writeString("Hello")); @@ -65,4 +64,4 @@ void iteratorTextMessage() { assertFalse(iterator.hasNext()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CollectorTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CollectorTest.java index d04769f42f..d1fe1e905c 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CollectorTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CollectorTest.java @@ -21,9 +21,9 @@ import net.openhft.chronicle.core.io.IOTools; import net.openhft.chronicle.wire.Wire; import net.openhft.chronicle.wire.WireTestCommon; -import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor; import net.openhft.chronicle.wire.domestic.reduction.Reduction; +import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -112,7 +112,6 @@ public void map() { assertEquals("java.util.Collections$UnmodifiableMap", listener.reduction().getClass().getName()); } - @Test public void composite() { @@ -129,7 +128,6 @@ public void composite() { assertEquals(expected, listener.reduction()); } - private void test(Reduction listener) { Wire wire = CreateUtil.create(); ServiceOut serviceOut = wire.methodWriter(ServiceOut.class); @@ -155,5 +153,4 @@ public interface ServiceOut { void greeting(String greeting); } - -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CountAccumulationTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CountAccumulationTest.java index 6db9e88cf4..7ba63ce727 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CountAccumulationTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/CountAccumulationTest.java @@ -20,9 +20,9 @@ import net.openhft.chronicle.wire.Wire; import net.openhft.chronicle.wire.WireTestCommon; -import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import net.openhft.chronicle.wire.domestic.reduction.Reduction; import net.openhft.chronicle.wire.domestic.reduction.Reductions; +import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import org.junit.Test; import java.util.concurrent.atomic.AtomicLong; @@ -34,7 +34,6 @@ public class CountAccumulationTest extends WireTestCommon { - @Test public void countCustom() { Reduction listener = Reduction.of((wire, index) -> 1L) @@ -59,4 +58,4 @@ private void count(Reduction listener) { wire.writeText("three"); listener.accept(wire); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTailerTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTailerTest.java index 057ecb3704..25f0bec01c 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTailerTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTailerTest.java @@ -20,9 +20,9 @@ import net.openhft.chronicle.wire.MarshallableIn; import net.openhft.chronicle.wire.WireTestCommon; +import net.openhft.chronicle.wire.domestic.extractor.ToLongDocumentExtractor; import net.openhft.chronicle.wire.domestic.reduction.Reduction; import net.openhft.chronicle.wire.domestic.reduction.Reductions; -import net.openhft.chronicle.wire.domestic.extractor.ToLongDocumentExtractor; import org.junit.Test; import java.util.function.LongSupplier; @@ -48,4 +48,4 @@ public void lastIndexSeenTailer() { assertTrue(listener.reduction().getAsLong() > 3 + 3 + 5); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTest.java index e6a4303275..21731d8470 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastIndexSeenTest.java @@ -25,9 +25,9 @@ import java.util.function.LongSupplier; -import static net.openhft.chronicle.wire.domestic.streaming.CreateUtil.createThenValueOuts; -import static net.openhft.chronicle.wire.domestic.reduction.Reductions.reducingLong; import static net.openhft.chronicle.wire.domestic.extractor.ToLongDocumentExtractor.extractingIndex; +import static net.openhft.chronicle.wire.domestic.reduction.Reductions.reducingLong; +import static net.openhft.chronicle.wire.domestic.streaming.CreateUtil.createThenValueOuts; import static org.junit.Assert.assertEquals; public class LastIndexSeenTest extends WireTestCommon { @@ -68,4 +68,4 @@ private void test(Reduction listener) { } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastMarketDataPerSymbolTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastMarketDataPerSymbolTest.java index aab6eb3ebc..23a5ead322 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastMarketDataPerSymbolTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/LastMarketDataPerSymbolTest.java @@ -21,22 +21,21 @@ import net.openhft.chronicle.wire.DocumentContext; import net.openhft.chronicle.wire.Wire; import net.openhft.chronicle.wire.WireTestCommon; -import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import net.openhft.chronicle.wire.domestic.reduction.Reduction; +import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import org.junit.Test; import java.util.*; import java.util.function.Function; import static java.util.stream.Collectors.*; +import static net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor.builder; import static net.openhft.chronicle.wire.domestic.reduction.ConcurrentCollectors.replacingMerger; import static net.openhft.chronicle.wire.domestic.reduction.ConcurrentCollectors.toConcurrentSet; -import static net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor.builder; import static org.junit.jupiter.api.Assertions.assertEquals; public class LastMarketDataPerSymbolTest extends WireTestCommon { - private static final List MARKET_DATA_SET = Arrays.asList( new MarketData("MSFT", 100, 110, 90), new MarketData("AAPL", 200, 220, 180), @@ -86,4 +85,4 @@ private static void write(Wire appender, MarketData marketData) { } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MarketData.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MarketData.java index 8f8048e76e..083ef7523f 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MarketData.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MarketData.java @@ -134,4 +134,4 @@ public void validate() throws InvalidMarshallableException { ValidatableUtil.requireTrue(high > 0, "high must be positive"); ValidatableUtil.requireTrue(low > 0, "low must be positive"); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MethodWriterTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MethodWriterTest.java index 51d8828ef6..2554c502d3 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MethodWriterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MethodWriterTest.java @@ -20,9 +20,9 @@ import net.openhft.chronicle.wire.Wire; import net.openhft.chronicle.wire.WireTestCommon; -import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor; import net.openhft.chronicle.wire.domestic.reduction.Reduction; +import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import org.junit.Test; import java.util.*; @@ -38,7 +38,6 @@ public class MethodWriterTest extends WireTestCommon { - private static final List MARKET_DATA_SET = Arrays.asList( new MarketData("MSFT", 10, 11, 9), new MarketData("MSFT", 100, 110, 90), @@ -62,7 +61,6 @@ public void lastSeen() { assertEquals(expected, actual); } - @Test public void map() { @@ -95,7 +93,6 @@ private void test(Reduction listener) { listener.accept(wire); } - static MarketData createMarketData() { return new MarketData("MSFT", 100, 110, 90); } @@ -107,5 +104,4 @@ public interface ServiceOut { void greeting(String greeting); } - -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MinMaxLastMarketDataPerSymbolTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MinMaxLastMarketDataPerSymbolTest.java index ea6df15630..8bbbf3844f 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MinMaxLastMarketDataPerSymbolTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/MinMaxLastMarketDataPerSymbolTest.java @@ -21,9 +21,9 @@ import net.openhft.chronicle.wire.DocumentContext; import net.openhft.chronicle.wire.Wire; import net.openhft.chronicle.wire.WireTestCommon; -import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor; import net.openhft.chronicle.wire.domestic.reduction.Reduction; +import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import org.junit.Test; import java.util.*; @@ -81,7 +81,6 @@ public void lastMarketDataPerSymbol() { collectingAndThen(toConcurrentMap(MarketData::symbol, Function.identity(), replacingMerger()), Collections::unmodifiableMap) ); - test(listener); final Map expected = MARKET_DATA_SET.stream() @@ -121,4 +120,4 @@ private static void write(Wire appender, MarketData marketData) { } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/StreamingDemoMain.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/StreamingDemoMain.java index 8c8c0ea254..f2d47f4d13 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/StreamingDemoMain.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/reduction/StreamingDemoMain.java @@ -19,12 +19,12 @@ package net.openhft.chronicle.wire.domestic.streaming.reduction; import net.openhft.chronicle.threads.PauserMode; -import net.openhft.chronicle.wire.domestic.streaming.*; -import net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor; import net.openhft.chronicle.wire.domestic.AutoTailers; +import net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor; import net.openhft.chronicle.wire.domestic.reduction.ConcurrentCollectors; import net.openhft.chronicle.wire.domestic.reduction.Reduction; import net.openhft.chronicle.wire.domestic.reduction.Reductions; +import net.openhft.chronicle.wire.domestic.streaming.CreateUtil; import java.util.*; import java.util.concurrent.ConcurrentMap; @@ -37,9 +37,9 @@ import static java.util.stream.Collectors.groupingByConcurrent; import static java.util.stream.Collectors.summarizingDouble; -import static net.openhft.chronicle.wire.domestic.reduction.ConcurrentCollectors.replacingMerger; import static net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor.builder; import static net.openhft.chronicle.wire.domestic.extractor.ToLongDocumentExtractor.extractingIndex; +import static net.openhft.chronicle.wire.domestic.reduction.ConcurrentCollectors.replacingMerger; public class StreamingDemoMain { @@ -85,7 +85,6 @@ public static void main(String[] args) { // This creates a live view of the reduction. Map liveQueueBackedMap = latest.reduction(); - // Maintains a protected Map of the latest MarketData message per symbol where the // messages were previously written by a MethodWriter of type MarketDataProvider Reduction> latestProtected = Reduction.of( @@ -101,7 +100,6 @@ public static void main(String[] args) { ) ); - // Maintains statistics per symbol on MarketData::last using vanilla Java // classes (creates objects). Reduction> stats = Reduction.of( @@ -116,7 +114,6 @@ public static void main(String[] args) { double averageApplePrice = stats.reduction().get("AAPL").getAverage(); - // This is a demo of a queue-backed map that is continuously listening to a queue // and any change is reflected in the Reduction. @@ -151,12 +148,10 @@ public static void main(String[] args) { } net.openhft.chronicle.threads.Threads.shutdown(executorService); - // How to use thread confined objects? } - public interface MarketDataProvider { void marketData(MarketData marketData); @@ -169,7 +164,6 @@ enum Action { OPEN, CLOSE; } - } } diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsDemoTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsDemoTest.java index 0b80a56168..bde0b07f2d 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsDemoTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsDemoTest.java @@ -24,8 +24,8 @@ import net.openhft.chronicle.wire.MarshallableIn; import net.openhft.chronicle.wire.SelfDescribingMarshallable; import net.openhft.chronicle.wire.Wire; -import net.openhft.chronicle.wire.domestic.stream.Streams; import net.openhft.chronicle.wire.domestic.extractor.ToLongDocumentExtractor; +import net.openhft.chronicle.wire.domestic.stream.Streams; import net.openhft.chronicle.wire.domestic.streaming.reduction.MarketData; import org.jetbrains.annotations.NotNull; import org.junit.jupiter.api.Disabled; @@ -41,8 +41,8 @@ import static java.util.stream.Collectors.groupingBy; import static java.util.stream.Collectors.toList; -import static net.openhft.chronicle.wire.domestic.streaming.CreateUtil.*; import static net.openhft.chronicle.wire.domestic.extractor.DocumentExtractor.builder; +import static net.openhft.chronicle.wire.domestic.streaming.CreateUtil.*; import static org.junit.Assert.fail; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -131,7 +131,6 @@ void latestIndex() { assertEquals(14, last); } - @Test void streamRaw() { MarshallableIn in = createThenValueOuts( @@ -156,7 +155,6 @@ void streamTypeMarketData() { vo -> vo.object(new MarketData("MSFT", 101, 110, 90)) ); - Map> groups = Streams.of(in, builder(MarketData.class).build()) .collect(groupingBy(MarketData::symbol)); @@ -187,7 +185,6 @@ void testIterator() { assertEquals(401.0, adder.doubleValue(), 1e-10); } - @Test void streamType2() { MarshallableIn in = createThenValueOuts( @@ -252,7 +249,6 @@ void streamMessageWriter() { assertLongSummaryStatisticsEqual(expectedStat, stat2); } - @Test @Disabled("Parallel is not supported yet") void longStreamParallel() { @@ -260,7 +256,6 @@ void longStreamParallel() { Wire in = create(); - for (int i = 0; i < no; i++) { try (DocumentContext dc = in.writingDocument()) { dc.wire() @@ -445,7 +440,6 @@ void streamIllegalObjectReuse() { assertEquals(expected, list); } - public interface Messages { void shares(Shares shares); @@ -544,5 +538,4 @@ private MarshallableIn resetted(MarshallableIn in) { return in; } - -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsTest.java b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsTest.java index bc9fa22355..0f91e243b5 100644 --- a/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/domestic/streaming/streams/StreamsTest.java @@ -176,4 +176,4 @@ void assertStreamEquals(Stream expected, Stream actual) assertEquals(expectedList, actualList); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/examples/MessageRoutingExample.java b/src/test/java/net/openhft/chronicle/wire/examples/MessageRoutingExample.java index a7fbf00047..9e068e0d8b 100644 --- a/src/test/java/net/openhft/chronicle/wire/examples/MessageRoutingExample.java +++ b/src/test/java/net/openhft/chronicle/wire/examples/MessageRoutingExample.java @@ -50,7 +50,6 @@ interface Routing { ProductHandler to(String destination); } - /** * Implement this to read the process of the product events. */ @@ -75,12 +74,10 @@ public BinaryLengthLength binaryLengthLength() { } } - // the serialized data gets written to 'wire' // private final Wire wire = new BinaryWire(new HexDumpBytes()); private final Wire wire = WireType.TEXT.apply(Bytes.allocateElasticOnHeap()); - private void demo() { final Map destinationMap = new HashMap<>(); diff --git a/src/test/java/net/openhft/chronicle/wire/examples/WireExamples1.java b/src/test/java/net/openhft/chronicle/wire/examples/WireExamples1.java index 9d52d8d318..977e0133bf 100644 --- a/src/test/java/net/openhft/chronicle/wire/examples/WireExamples1.java +++ b/src/test/java/net/openhft/chronicle/wire/examples/WireExamples1.java @@ -27,7 +27,6 @@ public class WireExamples1 { - public static void main(String[] args) { example1(); example2(); @@ -62,5 +61,4 @@ public Car(String driver, int number) { } } - } diff --git a/src/test/java/net/openhft/chronicle/wire/examples/WireExamples3.java b/src/test/java/net/openhft/chronicle/wire/examples/WireExamples3.java index ec281ba638..70f76838d8 100644 --- a/src/test/java/net/openhft/chronicle/wire/examples/WireExamples3.java +++ b/src/test/java/net/openhft/chronicle/wire/examples/WireExamples3.java @@ -24,7 +24,6 @@ interface Printer { void print(String message); } - public static void main(String[] args) { final Printer consolePrinter = System.out::println; consolePrinter.print("hello world"); diff --git a/src/test/java/net/openhft/chronicle/wire/internal/MethodWriterClassNameGeneratorTest.java b/src/test/java/net/openhft/chronicle/wire/internal/MethodWriterClassNameGeneratorTest.java index 187954f11e..f8c52c398b 100644 --- a/src/test/java/net/openhft/chronicle/wire/internal/MethodWriterClassNameGeneratorTest.java +++ b/src/test/java/net/openhft/chronicle/wire/internal/MethodWriterClassNameGeneratorTest.java @@ -90,4 +90,4 @@ interface NewOrderSingleListenerOmsHedgerTradeListenerOpenOrdersListenerPaidGive interface NewOrderSingleListenerOmsHedgerTradeListenerOpenOrdersListenerPaidGi_DiffersInTheTruncatedPortion { } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/internal/stream/StreamsUtilTest.java b/src/test/java/net/openhft/chronicle/wire/internal/stream/StreamsUtilTest.java index 280ddb1736..5bbf6761b8 100644 --- a/src/test/java/net/openhft/chronicle/wire/internal/stream/StreamsUtilTest.java +++ b/src/test/java/net/openhft/chronicle/wire/internal/stream/StreamsUtilTest.java @@ -2,7 +2,10 @@ import org.junit.Test; -import java.util.*; +import java.util.Collection; +import java.util.Collections; +import java.util.PrimitiveIterator; +import java.util.Spliterator; import java.util.concurrent.atomic.AtomicReference; import java.util.function.DoubleConsumer; import java.util.stream.Collectors; @@ -104,4 +107,4 @@ public void VanillaSpliteratorOfDouble_estimateSize_alwaysReturnsLongMaxValue() assertEquals(Long.MAX_VALUE, spliterator.estimateSize()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/issue/Issue327Test.java b/src/test/java/net/openhft/chronicle/wire/issue/Issue327Test.java index 6efcf36c6a..8c438b0105 100644 --- a/src/test/java/net/openhft/chronicle/wire/issue/Issue327Test.java +++ b/src/test/java/net/openhft/chronicle/wire/issue/Issue327Test.java @@ -122,5 +122,4 @@ private void test(final Supplier constructor, assertEquals(expected, actual); } - } diff --git a/src/test/java/net/openhft/chronicle/wire/issue/JSON322Test.java b/src/test/java/net/openhft/chronicle/wire/issue/JSON322Test.java index fe10d92983..a9f0f3e8f5 100644 --- a/src/test/java/net/openhft/chronicle/wire/issue/JSON322Test.java +++ b/src/test/java/net/openhft/chronicle/wire/issue/JSON322Test.java @@ -52,7 +52,6 @@ public Two(String text) { } } - public static class Four extends Two { String text; @@ -62,7 +61,6 @@ public Four(String text) { } } - public static class Three extends SelfDescribingMarshallable { private One one; private Two two; diff --git a/src/test/java/net/openhft/chronicle/wire/issue/WireBug35Test.java b/src/test/java/net/openhft/chronicle/wire/issue/WireBug35Test.java index 87908d4afc..80ac64fc9f 100644 --- a/src/test/java/net/openhft/chronicle/wire/issue/WireBug35Test.java +++ b/src/test/java/net/openhft/chronicle/wire/issue/WireBug35Test.java @@ -23,7 +23,6 @@ import net.openhft.chronicle.wire.WireTestCommon; import net.openhft.chronicle.wire.WireType; import net.openhft.chronicle.wire.Wires; -import org.jetbrains.annotations.NotNull; import org.junit.Test; import org.yaml.snakeyaml.Yaml; @@ -70,4 +69,4 @@ public void objectsInSequenceBinaryWire() { bytes.releaseLast(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/issue/WireBug37Test.java b/src/test/java/net/openhft/chronicle/wire/issue/WireBug37Test.java index afcd343408..429671033a 100644 --- a/src/test/java/net/openhft/chronicle/wire/issue/WireBug37Test.java +++ b/src/test/java/net/openhft/chronicle/wire/issue/WireBug37Test.java @@ -101,4 +101,4 @@ public String toString() { return builder.toString(); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/issue/WireBug38Test.java b/src/test/java/net/openhft/chronicle/wire/issue/WireBug38Test.java index 15593a25ae..d13677984d 100644 --- a/src/test/java/net/openhft/chronicle/wire/issue/WireBug38Test.java +++ b/src/test/java/net/openhft/chronicle/wire/issue/WireBug38Test.java @@ -130,4 +130,4 @@ public int hashCode() { return obj.hashCode(); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/issue/WireBug39Test.java b/src/test/java/net/openhft/chronicle/wire/issue/WireBug39Test.java index d1688cba4c..ebcf485b00 100644 --- a/src/test/java/net/openhft/chronicle/wire/issue/WireBug39Test.java +++ b/src/test/java/net/openhft/chronicle/wire/issue/WireBug39Test.java @@ -101,4 +101,4 @@ public String toString() { return builder.toString(); } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/java17/Group.java b/src/test/java/net/openhft/chronicle/wire/java17/Group.java index a6c5bc7de7..71facc5bc0 100644 --- a/src/test/java/net/openhft/chronicle/wire/java17/Group.java +++ b/src/test/java/net/openhft/chronicle/wire/java17/Group.java @@ -26,4 +26,4 @@ public class Group extends SelfDescribingMarshallable { public Group(Field field) { this.field = field; } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/map/MapCustomTest.java b/src/test/java/net/openhft/chronicle/wire/map/MapCustomTest.java index 73e9073689..9dcd96027c 100644 --- a/src/test/java/net/openhft/chronicle/wire/map/MapCustomTest.java +++ b/src/test/java/net/openhft/chronicle/wire/map/MapCustomTest.java @@ -116,4 +116,4 @@ private static class GeneralMap extends IntMap { private interface MarkedMap extends Map, Closeable { // No-op. } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/map/MapMarshallableTest.java b/src/test/java/net/openhft/chronicle/wire/map/MapMarshallableTest.java index 8a8958f973..900aed2888 100644 --- a/src/test/java/net/openhft/chronicle/wire/map/MapMarshallableTest.java +++ b/src/test/java/net/openhft/chronicle/wire/map/MapMarshallableTest.java @@ -57,4 +57,4 @@ private static class MyDto extends SelfDescribingMarshallable { int two; int three; } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java index 5fc6f58c25..aa5f0c6a09 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java @@ -99,7 +99,6 @@ private void testFieldNotObject0(boolean generateTuples, boolean throwCNFE, Stri assertEquals(expected, simple.toString()); } - static class UsesInterfaceField extends AbstractMarshallableCfg { private TwoFields bothFields; private String name; @@ -141,7 +140,6 @@ public void throwClassNotFoundRuntimeExceptionOnMissingClassForInterfaceFieldNoF testInterfaceFieldTest0(false, false, null); } - @Test public void useTupleOnMissingClassForInterfaceField2() { testInterfaceFieldTest0(true, false, "" + diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/EnumWireTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/EnumWireTest.java index 607239cf0a..bca8b801bf 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/EnumWireTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/EnumWireTest.java @@ -114,4 +114,4 @@ static class Person3 extends SelfDescribingMarshallable { @NotNull private MarshAndResolve field = MarshAndResolve.MARSH_AND_RESOLVE; } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/JSONWithAMapTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/JSONWithAMapTest.java index 11a77b861f..ebf6cc770e 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/JSONWithAMapTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/JSONWithAMapTest.java @@ -119,5 +119,3 @@ static class ResponseItem extends SelfDescribingMarshallable { } } - - diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/ScalarValues.java b/src/test/java/net/openhft/chronicle/wire/marshallable/ScalarValues.java index e23a2b6fe5..449afb10d0 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/ScalarValues.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/ScalarValues.java @@ -99,7 +99,6 @@ public ScalarValues(int i) { } } - enum TestDynamicEnum implements DynamicEnum { ONE, TWO, diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/TriviallyCopyableMarketDataTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/TriviallyCopyableMarketDataTest.java index d95fb69555..11497e4fcd 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/TriviallyCopyableMarketDataTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/TriviallyCopyableMarketDataTest.java @@ -62,4 +62,4 @@ public void test() { assertEquals(str, data2.toString()); assertEquals(data, data2); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/TwoArraysTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/TwoArraysTest.java index 6819918b68..5c1a34d4fe 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/TwoArraysTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/TwoArraysTest.java @@ -95,4 +95,4 @@ public void testTwoArrays() { bytes2.releaseLast(); bytes.releaseLast(); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/WithDefaultsTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/WithDefaultsTest.java index c08d2f9374..b9cbf2a03d 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/WithDefaultsTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/WithDefaultsTest.java @@ -45,4 +45,4 @@ void doTest(Consumer consumer) { assertEquals(cs, o.toString()); assertEquals(wd, o); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/method/ChronicleEvent.java b/src/test/java/net/openhft/chronicle/wire/method/ChronicleEvent.java index 05527c4cf5..d0c8784be9 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/ChronicleEvent.java +++ b/src/test/java/net/openhft/chronicle/wire/method/ChronicleEvent.java @@ -33,7 +33,6 @@ public class ChronicleEvent extends BytesInBinaryMarshallable implements Event { private long text1; private String text3; - @Override public void sendingTimeNS(long sendingTimeNS) { this.sendingTimeNS = sendingTimeNS; diff --git a/src/test/java/net/openhft/chronicle/wire/method/ClusterCommandListener.java b/src/test/java/net/openhft/chronicle/wire/method/ClusterCommandListener.java index 92325e76cf..1d8dd96267 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/ClusterCommandListener.java +++ b/src/test/java/net/openhft/chronicle/wire/method/ClusterCommandListener.java @@ -20,4 +20,4 @@ public interface ClusterCommandListener { void command(ClusterCommand clusterCommand); -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/method/Event.java b/src/test/java/net/openhft/chronicle/wire/method/Event.java index 2c450e4629..57c4eadb06 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/Event.java +++ b/src/test/java/net/openhft/chronicle/wire/method/Event.java @@ -26,4 +26,4 @@ public interface Event { void transactTimeNS(long transactTimeNS); long transactTimeNS(); -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/method/MethodFilterOnFirstArgTest.java b/src/test/java/net/openhft/chronicle/wire/method/MethodFilterOnFirstArgTest.java index 08e8629207..32d205216e 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/MethodFilterOnFirstArgTest.java +++ b/src/test/java/net/openhft/chronicle/wire/method/MethodFilterOnFirstArgTest.java @@ -93,4 +93,4 @@ public boolean ignoreMethodBasedOnFirstArg(String methodName, Object firstArg) { return dto.field2 <= 0; } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/method/MethodWriterMarshallableTest.java b/src/test/java/net/openhft/chronicle/wire/method/MethodWriterMarshallableTest.java index 5f60db7775..ab9772f8a0 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/MethodWriterMarshallableTest.java +++ b/src/test/java/net/openhft/chronicle/wire/method/MethodWriterMarshallableTest.java @@ -34,4 +34,4 @@ public void invalidInterface() { interface MyBadInterface extends Marshallable { } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/method/MethodWriterTest.java b/src/test/java/net/openhft/chronicle/wire/method/MethodWriterTest.java index 735ca2da2b..436218ae9d 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/MethodWriterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/method/MethodWriterTest.java @@ -390,4 +390,4 @@ default boolean ignoreMethodBasedOnFirstArg(String methodName, String ladderDefi return false; } } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/method/TextMethodTesterTest.java b/src/test/java/net/openhft/chronicle/wire/method/TextMethodTesterTest.java index f45b0ab560..62aac20f41 100644 --- a/src/test/java/net/openhft/chronicle/wire/method/TextMethodTesterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/method/TextMethodTesterTest.java @@ -57,7 +57,6 @@ public void runToLower() throws IOException { compareResults(test); } - @Test public void runTestEmptyOut() throws IOException { TextMethodTester test = new TextMethodTester<>( diff --git a/src/test/java/net/openhft/chronicle/wire/security/ApacheStructExploitTest.java b/src/test/java/net/openhft/chronicle/wire/security/ApacheStructExploitTest.java index 84f46ec70a..242375a4dc 100644 --- a/src/test/java/net/openhft/chronicle/wire/security/ApacheStructExploitTest.java +++ b/src/test/java/net/openhft/chronicle/wire/security/ApacheStructExploitTest.java @@ -18,7 +18,6 @@ package net.openhft.chronicle.wire.security; - import net.openhft.chronicle.core.util.ClassNotFoundRuntimeException; import net.openhft.chronicle.wire.Marshallable; import net.openhft.chronicle.wire.WireTestCommon; @@ -26,7 +25,6 @@ import static org.junit.Assert.fail; - /** * Test to ensure Chronicle Wire isn't vulnerable to an exploit https://www.exploit-db.com/exploits/42627 */ diff --git a/src/test/java/net/openhft/chronicle/wire/security/exploit.xml b/src/test/java/net/openhft/chronicle/wire/security/exploit.xml index 356c64b255..31c7375415 100644 --- a/src/test/java/net/openhft/chronicle/wire/security/exploit.xml +++ b/src/test/java/net/openhft/chronicle/wire/security/exploit.xml @@ -53,4 +53,4 @@ - \ No newline at end of file + diff --git a/src/test/java/net/openhft/chronicle/wire/utils/JavaSourceCodeFormatterTest.java b/src/test/java/net/openhft/chronicle/wire/utils/JavaSourceCodeFormatterTest.java index e1c1ccfb96..a4903dfd31 100644 --- a/src/test/java/net/openhft/chronicle/wire/utils/JavaSourceCodeFormatterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/utils/JavaSourceCodeFormatterTest.java @@ -36,4 +36,4 @@ public void testAppend() { .append('}').append('\n') .toString()); } -} \ No newline at end of file +} diff --git a/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterAbstractMarshallableCfgTest.java b/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterAbstractMarshallableCfgTest.java index 1c40c967a9..a35f004993 100644 --- a/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterAbstractMarshallableCfgTest.java +++ b/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterAbstractMarshallableCfgTest.java @@ -23,7 +23,6 @@ import static org.junit.Assert.assertEquals; - public class YamlTesterAbstractMarshallableCfgTest extends WireTestCommon { @Test public void testAbstractMarshallableCfgResetTest() { diff --git a/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterTest.java b/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterTest.java index 5cd5b11cae..8502c06989 100755 --- a/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterTest.java +++ b/src/test/java/net/openhft/chronicle/wire/utils/YamlTesterTest.java @@ -37,7 +37,6 @@ import static org.junit.Assert.*; import static org.junit.Assume.assumeFalse; - public class YamlTesterTest extends WireTestCommon { private static TestImpl testImpl; diff --git a/src/test/java/run/chronicle/account/dto/AccountStatusFailed.java b/src/test/java/run/chronicle/account/dto/AccountStatusFailed.java index d937056d98..324128a6f5 100644 --- a/src/test/java/run/chronicle/account/dto/AccountStatusFailed.java +++ b/src/test/java/run/chronicle/account/dto/AccountStatusFailed.java @@ -18,7 +18,6 @@ package run.chronicle.account.dto; - import net.openhft.chronicle.core.io.InvalidMarshallableException; public class AccountStatusFailed extends AbstractEvent { diff --git a/src/test/java/run/chronicle/account/dto/AccountStatusFailedTest.java b/src/test/java/run/chronicle/account/dto/AccountStatusFailedTest.java index 5d89b9624a..b72bf5530d 100755 --- a/src/test/java/run/chronicle/account/dto/AccountStatusFailedTest.java +++ b/src/test/java/run/chronicle/account/dto/AccountStatusFailedTest.java @@ -4,7 +4,7 @@ import net.openhft.chronicle.wire.converter.Base85; import org.junit.Test; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; import static run.chronicle.account.dto.AccountStatusTest.getAccountStatus; public class AccountStatusFailedTest { @@ -32,4 +32,4 @@ public void testFromString() { assertEquals(getAccountStatus(), asf.accountStatus()); } -} \ No newline at end of file +} diff --git a/src/test/java/run/chronicle/account/dto/AccountStatusOK.java b/src/test/java/run/chronicle/account/dto/AccountStatusOK.java index 3b4ab21e6f..e9907bc46e 100644 --- a/src/test/java/run/chronicle/account/dto/AccountStatusOK.java +++ b/src/test/java/run/chronicle/account/dto/AccountStatusOK.java @@ -18,7 +18,6 @@ package run.chronicle.account.dto; - import net.openhft.chronicle.core.io.InvalidMarshallableException; public class AccountStatusOK extends AbstractEvent { diff --git a/src/test/java/run/chronicle/account/dto/AccountStatusOKTest.java b/src/test/java/run/chronicle/account/dto/AccountStatusOKTest.java index bcf6afa48e..9b69e36ff4 100755 --- a/src/test/java/run/chronicle/account/dto/AccountStatusOKTest.java +++ b/src/test/java/run/chronicle/account/dto/AccountStatusOKTest.java @@ -30,4 +30,4 @@ public void testFromString() { assertEquals(getAccountStatus(), asf.accountStatus()); } -} \ No newline at end of file +} diff --git a/src/test/java/run/chronicle/account/dto/CheckPoint.java b/src/test/java/run/chronicle/account/dto/CheckPoint.java index d7b7925911..f7266379ae 100644 --- a/src/test/java/run/chronicle/account/dto/CheckPoint.java +++ b/src/test/java/run/chronicle/account/dto/CheckPoint.java @@ -18,6 +18,5 @@ package run.chronicle.account.dto; - public class CheckPoint extends AbstractEvent { } diff --git a/src/test/java/run/chronicle/account/dto/TransferFailed.java b/src/test/java/run/chronicle/account/dto/TransferFailed.java index e00d5e172c..3319093274 100644 --- a/src/test/java/run/chronicle/account/dto/TransferFailed.java +++ b/src/test/java/run/chronicle/account/dto/TransferFailed.java @@ -18,7 +18,6 @@ package run.chronicle.account.dto; - import net.openhft.chronicle.core.io.InvalidMarshallableException; public class TransferFailed extends AbstractEvent { diff --git a/src/test/resources/account/mixed/_setup.yaml b/src/test/resources/account/mixed/_setup.yaml index f7e872c0f9..36b5d1daaf 100644 --- a/src/test/resources/account/mixed/_setup.yaml +++ b/src/test/resources/account/mixed/_setup.yaml @@ -21,4 +21,4 @@ accountStatus: { currency: USD, amount: 1000 } -... \ No newline at end of file +... diff --git a/src/test/resources/account/mixed/in.yaml b/src/test/resources/account/mixed/in.yaml index 07d4952f17..60bc5808fc 100644 --- a/src/test/resources/account/mixed/in.yaml +++ b/src/test/resources/account/mixed/in.yaml @@ -23,4 +23,4 @@ transfer: { amount: 10, reference: Dog food } -... \ No newline at end of file +... diff --git a/src/test/resources/account/simple/in.yaml b/src/test/resources/account/simple/in.yaml index 19a5f77657..3dc9d4550a 100644 --- a/src/test/resources/account/simple/in.yaml +++ b/src/test/resources/account/simple/in.yaml @@ -42,4 +42,4 @@ checkPoint: { target: vault, sendingTime: 2023-01-20T11:00:00, } -... \ No newline at end of file +... diff --git a/src/test/resources/account/waterfall/_setup.yaml b/src/test/resources/account/waterfall/_setup.yaml index 425bfde7cf..ccdd708282 100644 --- a/src/test/resources/account/waterfall/_setup.yaml +++ b/src/test/resources/account/waterfall/_setup.yaml @@ -33,4 +33,4 @@ accountStatus: { currency: EUR, amount: 10 } -... \ No newline at end of file +... diff --git a/src/test/resources/account/waterfall/in.yaml b/src/test/resources/account/waterfall/in.yaml index b27a801446..965fc3f469 100644 --- a/src/test/resources/account/waterfall/in.yaml +++ b/src/test/resources/account/waterfall/in.yaml @@ -23,4 +23,4 @@ transfer: { amount: 20, reference: Coffee } -... \ No newline at end of file +... diff --git a/src/test/resources/account/wrong-target/_setup.yaml b/src/test/resources/account/wrong-target/_setup.yaml index f7e872c0f9..36b5d1daaf 100755 --- a/src/test/resources/account/wrong-target/_setup.yaml +++ b/src/test/resources/account/wrong-target/_setup.yaml @@ -21,4 +21,4 @@ accountStatus: { currency: USD, amount: 1000 } -... \ No newline at end of file +... diff --git a/src/test/resources/account/wrong-target/in.yaml b/src/test/resources/account/wrong-target/in.yaml index 07d4952f17..60bc5808fc 100755 --- a/src/test/resources/account/wrong-target/in.yaml +++ b/src/test/resources/account/wrong-target/in.yaml @@ -23,4 +23,4 @@ transfer: { amount: 10, reference: Dog food } -... \ No newline at end of file +... diff --git a/src/test/resources/compat/quoted-comment.yaml b/src/test/resources/compat/quoted-comment.yaml index 2ee16c55b8..e9103f7cda 100644 --- a/src/test/resources/compat/quoted-comment.yaml +++ b/src/test/resources/compat/quoted-comment.yaml @@ -1 +1 @@ -quoted: ' # not a ''comment''.' \ No newline at end of file +quoted: ' # not a ''comment''.' diff --git a/src/test/resources/docs/qe_cfg.yaml b/src/test/resources/docs/qe_cfg.yaml index 147546d941..7070fed6a3 100644 --- a/src/test/resources/docs/qe_cfg.yaml +++ b/src/test/resources/docs/qe_cfg.yaml @@ -14,4 +14,4 @@ acknowledge: true } } -} \ No newline at end of file +} diff --git a/src/test/resources/echo-test/in.yaml b/src/test/resources/echo-test/in.yaml index 33fa22d1f8..a05b9cdb8e 100755 --- a/src/test/resources/echo-test/in.yaml +++ b/src/test/resources/echo-test/in.yaml @@ -63,4 +63,4 @@ readOne: pipeA1 # wait for a response --- readOne: pipeA2 -... \ No newline at end of file +... diff --git a/src/test/resources/echo-tob/in.yaml b/src/test/resources/echo-tob/in.yaml index 5bb14e5549..78dbbbefc9 100644 --- a/src/test/resources/echo-tob/in.yaml +++ b/src/test/resources/echo-tob/in.yaml @@ -21,4 +21,4 @@ topOfBook: { bidQuantity: 1500000, askQuantity: 2000000 } -... \ No newline at end of file +... diff --git a/src/test/resources/echoing.yaml b/src/test/resources/echoing.yaml index a68d622c3f..ba4f6a457f 100644 --- a/src/test/resources/echoing.yaml +++ b/src/test/resources/echoing.yaml @@ -1,3 +1,3 @@ port: 65432 microservice: !net.openhft.chronicle.queue.channel.EchoingMicroservice { } -buffered: ${buffered} \ No newline at end of file +buffered: ${buffered} diff --git a/src/test/resources/exception.yaml b/src/test/resources/exception.yaml index 1f4aca68fd..439376ee99 100644 --- a/src/test/resources/exception.yaml +++ b/src/test/resources/exception.yaml @@ -6,4 +6,4 @@ exception: !java.security.InvalidAlgorithmParameterException { { class: net.openhft.chronicle.wire.YamlWireTest, method: runTestException, file: YamlWireTest.java, line: 73 }, { class: sun.reflect.NativeMethodAccessorImpl, method: invoke0, file: NativeMethodAccessorImpl.java, line: -2 } ] -} \ No newline at end of file +} diff --git a/src/test/resources/flow-in.yaml b/src/test/resources/flow-in.yaml index f1d1a4aaee..ad957b5dce 100644 --- a/src/test/resources/flow-in.yaml +++ b/src/test/resources/flow-in.yaml @@ -9,4 +9,4 @@ third: [ b, c ] -... \ No newline at end of file +... diff --git a/src/test/resources/md.yaml b/src/test/resources/md.yaml index ea8e471a57..3f77815c57 100644 --- a/src/test/resources/md.yaml +++ b/src/test/resources/md.yaml @@ -8,4 +8,4 @@ !MDU { symbol: AU } -] \ No newline at end of file +] diff --git a/src/test/resources/md2.yaml b/src/test/resources/md2.yaml index 609fc67003..79bea36157 100644 --- a/src/test/resources/md2.yaml +++ b/src/test/resources/md2.yaml @@ -9,4 +9,4 @@ !MDU { symbol: AU } ---- \ No newline at end of file +--- diff --git a/src/test/resources/methods-collections-in.yaml b/src/test/resources/methods-collections-in.yaml index 75feb200ce..ccb974734b 100644 --- a/src/test/resources/methods-collections-in.yaml +++ b/src/test/resources/methods-collections-in.yaml @@ -19,4 +19,4 @@ method3: [ field2: 2 } ] ---- \ No newline at end of file +--- diff --git a/src/test/resources/methods/in.yaml b/src/test/resources/methods/in.yaml index 9247dc69c4..6b11d888db 100644 --- a/src/test/resources/methods/in.yaml +++ b/src/test/resources/methods/in.yaml @@ -18,4 +18,4 @@ list: [ hello, world ] -... \ No newline at end of file +... diff --git a/src/test/resources/methods/out.yaml b/src/test/resources/methods/out.yaml index de415f84db..58869a9a58 100644 --- a/src/test/resources/methods/out.yaml +++ b/src/test/resources/methods/out.yaml @@ -12,4 +12,4 @@ list: [ hello, world ] -... \ No newline at end of file +... diff --git a/src/test/resources/mixed-quotes.yaml b/src/test/resources/mixed-quotes.yaml index 9ff32ccb3f..826ee68834 100644 --- a/src/test/resources/mixed-quotes.yaml +++ b/src/test/resources/mixed-quotes.yaml @@ -1 +1 @@ -[ "\"", '"', '\', '"', "\"'", "\"", "\"\"", "\'\'" ] \ No newline at end of file +[ "\"", '"', '\', '"', "\"'", "\"", "\"\"", "\'\'" ] diff --git a/src/test/resources/morse-code.yaml b/src/test/resources/morse-code.yaml index cc1e2b02f4..7aa898214b 100644 --- a/src/test/resources/morse-code.yaml +++ b/src/test/resources/morse-code.yaml @@ -25,4 +25,4 @@ W: .-- X: -..- Y: -.-- Z: --.. -... \ No newline at end of file +... diff --git a/src/test/resources/my-pojos.yaml b/src/test/resources/my-pojos.yaml index d32af56e65..397d82c771 100644 --- a/src/test/resources/my-pojos.yaml +++ b/src/test/resources/my-pojos.yaml @@ -4,4 +4,4 @@ { text: text1, num: 1, factor: 1.1 }, { text: text2, num: 2, factor: 2.2 } ] -} \ No newline at end of file +} diff --git a/src/test/resources/nst_files/README.adoc b/src/test/resources/nst_files/README.adoc index 666a7d7a2a..6238b27d57 100644 --- a/src/test/resources/nst_files/README.adoc +++ b/src/test/resources/nst_files/README.adoc @@ -20,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/src/test/resources/nst_files/n_1.json b/src/test/resources/nst_files/n_1.json index b28b04f643..139597f9cb 100644 --- a/src/test/resources/nst_files/n_1.json +++ b/src/test/resources/nst_files/n_1.json @@ -1,3 +1,2 @@ - diff --git a/src/test/resources/tmtt/methods-in.yaml b/src/test/resources/tmtt/methods-in.yaml index 98b4e97c7c..d667d8b17c 100644 --- a/src/test/resources/tmtt/methods-in.yaml +++ b/src/test/resources/tmtt/methods-in.yaml @@ -24,4 +24,4 @@ list: [ mid: hello next: 128 echo: goodbye -... \ No newline at end of file +... diff --git a/src/test/resources/tmtt/upper-methods-in.yaml b/src/test/resources/tmtt/upper-methods-in.yaml index 7e92b1ac77..4a19867a60 100644 --- a/src/test/resources/tmtt/upper-methods-in.yaml +++ b/src/test/resources/tmtt/upper-methods-in.yaml @@ -24,4 +24,4 @@ list: [ mid: heLLO NEXT: 128 echo: gOOdbye -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/comments-new/out-msg-0-duplicated.yaml b/src/test/resources/yaml-tester/comments-new/out-msg-0-duplicated.yaml index 893c8b5c95..13d1f9e043 100644 --- a/src/test/resources/yaml-tester/comments-new/out-msg-0-duplicated.yaml +++ b/src/test/resources/yaml-tester/comments-new/out-msg-0-duplicated.yaml @@ -18,4 +18,4 @@ testEvent: { # comment 1 # comment 2 --- -# comment 3 \ No newline at end of file +# comment 3 diff --git a/src/test/resources/yaml-tester/comments-new/out-msg-1-duplicated.yaml b/src/test/resources/yaml-tester/comments-new/out-msg-1-duplicated.yaml index 8b25e0d0ab..8b851c9659 100644 --- a/src/test/resources/yaml-tester/comments-new/out-msg-1-duplicated.yaml +++ b/src/test/resources/yaml-tester/comments-new/out-msg-1-duplicated.yaml @@ -26,4 +26,4 @@ testEvent: { currentTime: 2022-05-17T20:26:00.000001 } ... -# comment 8 \ No newline at end of file +# comment 8 diff --git a/src/test/resources/yaml-tester/comments-new/out-msg-2-duplicated.yaml b/src/test/resources/yaml-tester/comments-new/out-msg-2-duplicated.yaml index bf4b9020be..e5b851461c 100644 --- a/src/test/resources/yaml-tester/comments-new/out-msg-2-duplicated.yaml +++ b/src/test/resources/yaml-tester/comments-new/out-msg-2-duplicated.yaml @@ -15,4 +15,4 @@ testEvent: { ... # comment 8 # comment 9 -# comment 9 \ No newline at end of file +# comment 9 diff --git a/src/test/resources/yaml-tester/mismatch/in.yaml b/src/test/resources/yaml-tester/mismatch/in.yaml index 1f101bcd47..b73710eca5 100755 --- a/src/test/resources/yaml-tester/mismatch/in.yaml +++ b/src/test/resources/yaml-tester/mismatch/in.yaml @@ -10,4 +10,4 @@ time: 2022-05-17T20:25:04.004 testEvent: { eventTime: 2022-05-17T20:25:03.003 } -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/rm-indent/in.yaml b/src/test/resources/yaml-tester/rm-indent/in.yaml index 64eeb20689..fc206c809f 100644 --- a/src/test/resources/yaml-tester/rm-indent/in.yaml +++ b/src/test/resources/yaml-tester/rm-indent/in.yaml @@ -15,4 +15,4 @@ rm: b: bee3 a: aye3 c: cee3 -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/rm/in.yaml b/src/test/resources/yaml-tester/rm/in.yaml index fee794d425..9388686635 100644 --- a/src/test/resources/yaml-tester/rm/in.yaml +++ b/src/test/resources/yaml-tester/rm/in.yaml @@ -18,4 +18,4 @@ rm: { a: aye3, c: cee3 } -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/t1/in.yaml b/src/test/resources/yaml-tester/t1/in.yaml index 94b7810a4d..8f58842e96 100755 --- a/src/test/resources/yaml-tester/t1/in.yaml +++ b/src/test/resources/yaml-tester/t1/in.yaml @@ -6,4 +6,4 @@ time: 2022-05-17T20:25:02.002 testEvent: { eventTime: 2022-05-17T20:25:01.001 } -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/t2/_setup.yaml b/src/test/resources/yaml-tester/t2/_setup.yaml index 8481fa572d..8880916f38 100644 --- a/src/test/resources/yaml-tester/t2/_setup.yaml +++ b/src/test/resources/yaml-tester/t2/_setup.yaml @@ -1,3 +1,3 @@ --- time: 2022-05-17T20:25:02.002 -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/t2/in.yaml b/src/test/resources/yaml-tester/t2/in.yaml index 1f101bcd47..b73710eca5 100755 --- a/src/test/resources/yaml-tester/t2/in.yaml +++ b/src/test/resources/yaml-tester/t2/in.yaml @@ -10,4 +10,4 @@ time: 2022-05-17T20:25:04.004 testEvent: { eventTime: 2022-05-17T20:25:03.003 } -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/t2/setup.yaml b/src/test/resources/yaml-tester/t2/setup.yaml index f54dbd8057..d67ca96a21 100755 --- a/src/test/resources/yaml-tester/t2/setup.yaml +++ b/src/test/resources/yaml-tester/t2/setup.yaml @@ -1,4 +1,4 @@ # deprecated --- time: 2022-05-17T20:25:02.002 -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/t3/in.yaml b/src/test/resources/yaml-tester/t3/in.yaml index 1f101bcd47..b73710eca5 100644 --- a/src/test/resources/yaml-tester/t3/in.yaml +++ b/src/test/resources/yaml-tester/t3/in.yaml @@ -10,4 +10,4 @@ time: 2022-05-17T20:25:04.004 testEvent: { eventTime: 2022-05-17T20:25:03.003 } -... \ No newline at end of file +... diff --git a/src/test/resources/yaml-tester/tamc/out.yaml b/src/test/resources/yaml-tester/tamc/out.yaml index d1cadc097e..45c791dcce 100755 --- a/src/test/resources/yaml-tester/tamc/out.yaml +++ b/src/test/resources/yaml-tester/tamc/out.yaml @@ -29,4 +29,4 @@ testAbstractMarshallableCfgEvent: { --- testAbstractMarshallableCfgEvent: { } -... \ No newline at end of file +... diff --git a/src/test/resources/yaml/complex-mapping.yaml b/src/test/resources/yaml/complex-mapping.yaml index c27831e1ed..625ae56d9c 100644 --- a/src/test/resources/yaml/complex-mapping.yaml +++ b/src/test/resources/yaml/complex-mapping.yaml @@ -1,4 +1,4 @@ ? { MyField: parent, Id: 1 }: { ? !net.openhft.chronicle.wire.MyMarshallable { MyField: key1, Id: 1 }: value1, ? !net.openhft.chronicle.wire.MyMarshallable { MyField: key2, Id: 2 }: value2 -} \ No newline at end of file +} diff --git a/src/test/resources/yaml/int-mapping-incomplete.yaml b/src/test/resources/yaml/int-mapping-incomplete.yaml index b3289f6c63..fd5434bb60 100644 --- a/src/test/resources/yaml/int-mapping-incomplete.yaml +++ b/src/test/resources/yaml/int-mapping-incomplete.yaml @@ -1,2 +1,2 @@ example: { - ? !int \ No newline at end of file + ? !int diff --git a/src/test/resources/yaml/k8s/example3.yaml b/src/test/resources/yaml/k8s/example3.yaml index 9ef8b76071..4fa295d6c3 100644 --- a/src/test/resources/yaml/k8s/example3.yaml +++ b/src/test/resources/yaml/k8s/example3.yaml @@ -16,4 +16,4 @@ spec: - name: nginx image: nginx:1.14.2 ports: - - containerPort: 80 \ No newline at end of file + - containerPort: 80 diff --git a/src/test/resources/yaml/k8s/example4.yaml b/src/test/resources/yaml/k8s/example4.yaml index 28abc81c83..d3460b57e1 100644 --- a/src/test/resources/yaml/k8s/example4.yaml +++ b/src/test/resources/yaml/k8s/example4.yaml @@ -63,4 +63,4 @@ spec: - apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition name: volumes.rook.io ---- \ No newline at end of file +--- diff --git a/src/test/resources/yaml/k8s/example9.yaml b/src/test/resources/yaml/k8s/example9.yaml index aeda418604..d8b036b5a7 100644 --- a/src/test/resources/yaml/k8s/example9.yaml +++ b/src/test/resources/yaml/k8s/example9.yaml @@ -36,4 +36,4 @@ items: - kind: ServiceAccount name: sdn namespace: openshift-sdn -# TODO: PSP binding \ No newline at end of file +# TODO: PSP binding diff --git a/src/test/resources/yaml/sample2.yaml b/src/test/resources/yaml/sample2.yaml index fa8f688d9d..b2eff76c9f 100644 --- a/src/test/resources/yaml/sample2.yaml +++ b/src/test/resources/yaml/sample2.yaml @@ -2,4 +2,4 @@ !net.openhft.chronicle.wire.DemarshallableObject { name: test, value: 12345 -} \ No newline at end of file +} diff --git a/src/test/resources/yaml/services.yaml b/src/test/resources/yaml/services.yaml index 7d844bbee4..dad43c9cb7 100644 --- a/src/test/resources/yaml/services.yaml +++ b/src/test/resources/yaml/services.yaml @@ -15,4 +15,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/test/resources/yaml/spec/2_21Miscellaneous.yaml b/src/test/resources/yaml/spec/2_21Miscellaneous.yaml index d911494985..510165dc7e 100644 --- a/src/test/resources/yaml/spec/2_21Miscellaneous.yaml +++ b/src/test/resources/yaml/spec/2_21Miscellaneous.yaml @@ -1,3 +1,3 @@ null: booleans: [ true, false ] -string: '012345' \ No newline at end of file +string: '012345' diff --git a/src/test/resources/yaml/spec/2_21MiscellaneousFixed.yaml b/src/test/resources/yaml/spec/2_21MiscellaneousFixed.yaml index e37bfd0935..9cb3d0d1a6 100644 --- a/src/test/resources/yaml/spec/2_21MiscellaneousFixed.yaml +++ b/src/test/resources/yaml/spec/2_21MiscellaneousFixed.yaml @@ -2,4 +2,4 @@ null: , booleans: [ true, false ], string: '012345' -} \ No newline at end of file +} diff --git a/src/test/resources/yaml/spec/2_3_MappingScalarsToSequences.yaml b/src/test/resources/yaml/spec/2_3_MappingScalarsToSequences.yaml index 2c884b7a2f..656d628ec3 100644 --- a/src/test/resources/yaml/spec/2_3_MappingScalarsToSequences.yaml +++ b/src/test/resources/yaml/spec/2_3_MappingScalarsToSequences.yaml @@ -5,4 +5,4 @@ american: national: - New York Mets - Chicago Cubs - - Atlanta Braves \ No newline at end of file + - Atlanta Braves diff --git a/src/test/resources/yaml/spec/README.adoc b/src/test/resources/yaml/spec/README.adoc index 842dad717e..517bddcf55 100644 --- a/src/test/resources/yaml/spec/README.adoc +++ b/src/test/resources/yaml/spec/README.adoc @@ -1 +1 @@ -Please see the spec attached below \ No newline at end of file +Please see the spec attached below diff --git a/systemProperties.adoc b/systemProperties.adoc index 49a8ee9e24..00d19f8aea 100644 --- a/systemProperties.adoc +++ b/systemProperties.adoc @@ -1,11 +1,8 @@ == System Properties Below, a number of relevant System Properties are listed. - - NOTE: All boolean properties below are read using link:https://javadoc.io/static/net.openhft/chronicle-core/2.23ea13/net/openhft/chronicle/core/Jvm.html#getBoolean-java.lang.String-[net.openhft.chronicle.core.Jvm.getBoolean(java.lang.String)], and so are enabled if either `-Dflag` or `-Dflag=true` or `-Dflag=yes` - .System properties [cols=4*, options="header"] |=== @@ -18,4 +15,4 @@ NOTE: All boolean properties below are read using link:https://javadoc.io/static | wire.testAsYaml | `false` | To enable system property, see NOTE | _TEXT_AS_YAML_ (boolean) | wire.usePadding | `true` | Set system property to "false" to disable | _DEFAULT_USE_PADDING_ (boolean) | yaml.logging | `false` | If enabled, controls whether to log Yaml messages for debugging or documentation | _clientReads_ (boolean) -|=== \ No newline at end of file +|===