From a62b01df1e5d0b3ba2b2f83ccf5d039baf84c356 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 09:16:22 +0000 Subject: [PATCH] Remove duplicated line separators and trailing whitespace from Java files - Consolidate 3+ consecutive blank lines to single blank lines - Strip trailing whitespace from all lines - Remove trailing blank lines at end of files - Ensure proper file endings with newlines - 325 out of 746 Java files cleaned --- ...nfigurationPropertyJSONElementVisitor.java | 2 +- ...rationPropertyAnnotationProcessorTest.java | 2 +- ...urationPropertyJSONElementVisitorTest.java | 3 +- .../processor/FilerProcessorTest.java | 3 +- .../processor/ResourceProcessorTest.java | 3 +- .../annotation/ConfigurationProperty.java | 2 +- .../microsphere/annotation/Experimental.java | 2 +- .../io/microsphere/annotation/Immutable.java | 2 +- .../io/microsphere/annotation/Nonnull.java | 3 +- .../io/microsphere/annotation/Nullable.java | 2 +- .../java/io/microsphere/annotation/Since.java | 2 +- .../microsphere/annotation/NonnullTest.java | 2 +- .../microsphere/annotation/NullableTest.java | 2 +- .../io/microsphere/annotation/SinceTest.java | 2 +- .../io/microsphere/beans/BeanMetadata.java | 3 +- .../ArchiveFileArtifactResourceResolver.java | 2 +- .../classloading/ArtifactDetector.java | 2 +- .../StreamArtifactResourceResolver.java | 3 +- .../collection/CollectionUtils.java | 1 - .../collection/DelegatingIterator.java | 2 +- .../microsphere/collection/EmptyIterator.java | 1 - .../collection/IterableAdapter.java | 2 +- .../io/microsphere/collection/Iterators.java | 2 +- .../microsphere/concurrent/ExecutorUtils.java | 2 +- .../constants/SeparatorConstants.java | 1 - .../convert/ByteArrayToObjectConverter.java | 1 - .../io/microsphere/convert/Converter.java | 1 - .../convert/MapToPropertiesConverter.java | 1 - .../convert/StringToCharArrayConverter.java | 1 - .../convert/StringToCharacterConverter.java | 1 - .../convert/StringToClassConverter.java | 1 - .../multiple/StringToArrayConverter.java | 2 -- .../multiple/StringToMultiValueConverter.java | 1 - .../io/microsphere/event/EventListener.java | 2 +- .../java/io/microsphere/filter/Filter.java | 2 +- .../io/microsphere/io/DefaultSerializer.java | 1 - .../java/io/microsphere/io/Deserializers.java | 2 +- .../io/FastByteArrayOutputStream.java | 2 +- .../java/io/microsphere/io/FileUtils.java | 1 - .../main/java/io/microsphere/io/IOUtils.java | 2 -- .../java/io/microsphere/io/Serializers.java | 4 +-- .../io/StandardFileWatchService.java | 2 +- .../microsphere/io/StringBuilderWriter.java | 1 - .../io/filter/FileExtensionFilter.java | 2 +- .../microsphere/io/filter/NameFileFilter.java | 2 +- .../io/microsphere/io/scanner/Scanner.java | 1 - .../io/scanner/SimpleClassScanner.java | 2 +- .../io/scanner/SimpleFileScanner.java | 1 - .../io/scanner/SimpleJarEntryScanner.java | 1 - .../java/io/microsphere/json/JSONTokener.java | 2 +- .../java/io/microsphere/json/JSONUtils.java | 2 -- .../io/microsphere/json/package-info.java | 2 +- .../microsphere/lang/ClassDataRepository.java | 2 +- .../java/io/microsphere/lang/Deprecation.java | 3 +- .../java/io/microsphere/lang/Wrapper.java | 1 - .../io/microsphere/lang/WrapperProcessor.java | 1 - .../io/microsphere/lang/function/Streams.java | 2 -- .../lang/function/ThrowableBiConsumer.java | 1 - .../lang/function/ThrowableConsumer.java | 2 +- .../lang/function/ThrowableSupplier.java | 1 - .../io/microsphere/logging/NoOpLogger.java | 2 +- .../io/microsphere/management/JmxUtils.java | 3 +- .../management/ManagementUtils.java | 3 +- .../builder/MBeanAttributeInfoBuilder.java | 2 +- .../builder/MBeanConstructorInfoBuilder.java | 2 +- .../builder/MBeanDescribableBuilder.java | 2 +- .../builder/MBeanExecutableInfoBuilder.java | 2 +- .../builder/MBeanFeatureInfoBuilder.java | 2 +- .../management/builder/MBeanInfoBuilder.java | 2 +- .../builder/MBeanOperationInfoBuilder.java | 2 +- ...positeSubProtocolURLConnectionFactory.java | 2 +- .../ServiceLoaderURLStreamHandlerFactory.java | 2 +- .../net/StandardURLStreamHandlerFactory.java | 2 +- .../java/io/microsphere/net/URLUtils.java | 2 +- .../process/ClassicProcessIdResolver.java | 2 +- .../microsphere/process/ProcessExecutor.java | 2 +- .../microsphere/process/ProcessManager.java | 2 +- .../microsphere/reflect/ClassDefinition.java | 2 +- .../io/microsphere/reflect/FieldUtils.java | 2 +- .../io/microsphere/reflect/MemberUtils.java | 2 +- .../io/microsphere/reflect/MethodUtils.java | 1 - .../io/microsphere/reflect/ProxyUtils.java | 1 - .../microsphere/reflect/ReflectionUtils.java | 4 +-- .../reflect/ReflectiveDefinition.java | 2 +- .../io/microsphere/reflect/TypeUtils.java | 1 - .../reflect/generics/TypeArgument.java | 1 - .../microsphere/security/SecurityUtils.java | 2 +- .../io/microsphere/util/AnnotationUtils.java | 3 +- .../java/io/microsphere/util/ArrayUtils.java | 1 - .../main/java/io/microsphere/util/Assert.java | 2 +- .../microsphere/util/CharSequenceUtils.java | 1 - .../io/microsphere/util/ClassLoaderUtils.java | 3 +- .../io/microsphere/util/ClassPathUtils.java | 3 +- .../java/io/microsphere/util/ClassUtils.java | 3 +- .../java/io/microsphere/util/Compatible.java | 2 +- .../java/io/microsphere/util/Configurer.java | 1 - .../io/microsphere/util/ExceptionUtils.java | 2 +- .../java/io/microsphere/util/NumberUtils.java | 1 - .../java/io/microsphere/util/ObjectUtils.java | 3 +- .../microsphere/util/PriorityComparator.java | 2 +- .../util/PropertyResourceBundleControl.java | 1 - .../microsphere/util/ServiceLoaderUtils.java | 2 +- .../microsphere/util/ShutdownHookUtils.java | 2 +- .../io/microsphere/util/StackTraceUtils.java | 2 +- .../java/io/microsphere/util/StringUtils.java | 2 +- .../java/io/microsphere/util/SystemUtils.java | 1 - .../io/microsphere/util/ThrowableUtils.java | 1 - .../java/io/microsphere/util/TypeFinder.java | 2 +- .../java/io/microsphere/util/ValueHolder.java | 2 +- .../java/io/microsphere/util/Version.java | 2 +- .../io/microsphere/util/jar/JarUtils.java | 3 +- .../microsphere/beans/BeanMetadataTest.java | 3 +- .../io/microsphere/beans/BeanUtilsTest.java | 4 +-- .../classloading/ArtifactDetectorTest.java | 1 - ...annedArtifactClassLoadingExecutorTest.java | 2 +- .../ErrorArtifactResourceResolverTest.java | 2 +- .../ManifestArtifactResourceResolverTest.java | 2 +- .../MavenArtifactResourceResolverTest.java | 2 +- .../classloading/MavenArtifactTest.java | 1 - .../classloading/URLClassPathHandleTest.java | 2 +- .../collection/AbstractDequeTest.java | 2 +- .../collection/AbstractEnumerationTest.java | 3 +- .../collection/ArrayEnumerationTest.java | 3 +- .../collection/ArrayStackTest.java | 3 +- .../collection/CollectionUtilsTest.java | 2 +- .../collection/DefaultEntryTest.java | 3 +- .../collection/DelegatingDequeTest.java | 3 +- .../collection/DelegatingIteratorTest.java | 3 +- .../collection/EmptyDequeTest.java | 3 +- .../collection/EmptyIterableTest.java | 2 +- .../collection/EmptyIteratorTest.java | 2 +- .../collection/EmptyQueueTest.java | 3 +- .../collection/ImmutableEntryTest.java | 3 +- .../collection/IterableAdapterTest.java | 2 +- .../microsphere/collection/IteratorsTest.java | 3 +- .../microsphere/collection/ListUtilsTest.java | 2 +- .../io/microsphere/collection/ListsTest.java | 2 +- .../io/microsphere/collection/MapsTest.java | 2 +- .../collection/QueueUtilsTest.java | 4 +-- .../collection/ReversedDequeTest.java | 3 +- .../microsphere/collection/SetUtilsTest.java | 2 +- .../io/microsphere/collection/SetsTest.java | 2 +- .../collection/SingletonDequeTest.java | 3 +- .../io/microsphere/collection/TestDeque.java | 2 +- .../collection/UnmodifiableDequeTest.java | 3 +- .../collection/UnmodifiableQueueTest.java | 3 +- .../DelegatingBlockingQueueTest.java | 3 +- ...elegatingScheduledExecutorServiceTest.java | 3 +- .../concurrent/ExecutorUtilsTest.java | 2 +- .../constants/ResourceConstantsTest.java | 3 +- .../convert/BaseConverterTest.java | 3 +- .../convert/NumberToByteConverterTest.java | 3 +- .../NumberToCharacterConverterTest.java | 3 +- .../convert/NumberToDoubleConverterTest.java | 3 +- .../convert/NumberToFloatConverterTest.java | 3 +- .../convert/NumberToIntegerConverterTest.java | 3 +- .../convert/NumberToLongConverterTest.java | 3 +- .../convert/NumberToShortConverterTest.java | 3 +- .../StringToDurationConverterTest.java | 2 +- .../StringToMultiValueConverterTest.java | 2 +- .../event/AbstractEventDispatcherTest.java | 2 +- .../event/AbstractEventListener.java | 2 +- .../microsphere/event/EchoEventListener.java | 2 +- .../event/EventDispatcherTest.java | 1 - .../microsphere/event/EventListenerTest.java | 3 +- .../io/microsphere/event/ListenableTest.java | 4 +-- .../filter/FilterOperatorTest.java | 3 +- .../io/microsphere/filter/FilterTest.java | 3 +- .../microsphere/filter/FilterUtilsTest.java | 2 +- .../filter/PackageNameClassFilterTest.java | 2 +- .../PackageNameClassNameFilterTest.java | 2 +- .../filter/TrueClassFilterTest.java | 2 +- .../invoke/MethodHandleUtilsTest.java | 1 - .../io/DefaultDeserializerTest.java | 2 +- .../io/microsphere/io/DeserializersTest.java | 3 +- .../io/FastByteArrayInputStreamTest.java | 2 +- .../io/FastByteArrayOutputStreamTest.java | 2 +- .../java/io/microsphere/io/FileUtilsTest.java | 2 +- .../microsphere/io/FileWatchServiceTest.java | 2 +- .../java/io/microsphere/io/IOUtilsTest.java | 3 +- .../io/microsphere/io/SerializersTest.java | 3 +- .../io/StringBuilderWriterTest.java | 2 +- .../io/event/FileChangedEventTest.java | 2 +- .../io/event/FileChangedListenerTest.java | 2 +- .../event/LoggingFileChangedListenerTest.java | 3 +- .../io/filter/DirectoryFileFilterTest.java | 2 +- .../io/filter/FileExtensionFilterTest.java | 2 +- .../io/filter/IOFileFilterTest.java | 2 +- .../io/filter/NameFileFilterTest.java | 3 +- .../io/filter/TrueFileFilterTest.java | 2 +- .../io/scanner/SimpleClassScannerTest.java | 2 +- .../io/scanner/SimpleFileScannerTest.java | 2 +- .../io/scanner/SimpleJarEntryScannerTest.java | 1 - .../io/microsphere/json/JSONArrayTest.java | 3 +- .../io/microsphere/json/JSONObjectTest.java | 7 +--- .../io/microsphere/json/JSONStringerTest.java | 3 +- .../java/io/microsphere/json/JSONTest.java | 3 +- .../io/microsphere/json/JSONTokenerTest.java | 5 +-- .../io/microsphere/json/JSONUtilsTest.java | 4 +-- .../lang/ClassDataRepositoryTest.java | 2 +- .../io/microsphere/lang/DeprecationTest.java | 3 -- .../microsphere/lang/MutableIntegerTest.java | 3 +- .../io/microsphere/lang/PrioritizedTest.java | 2 +- .../lang/function/StreamsTest.java | 1 - .../function/ThrowableBiConsumerTest.java | 2 +- .../lang/function/ThrowableConsumerTest.java | 2 +- .../logging/ACLLoggerFactoryTest.java | 2 +- .../logging/JDKLoggerFactoryTest.java | 2 +- .../logging/NoOpLoggerFactoryTest.java | 2 +- .../microsphere/logging/NoOpLoggerTest.java | 2 +- .../logging/Sfl4jLoggerFactoryTest.java | 2 +- .../microsphere/management/CacheControl.java | 2 +- .../management/CacheControlMBean.java | 2 +- .../management/MBeanAttributeTest.java | 2 +- .../management/ManagementUtilsTest.java | 2 +- .../MBeanAttributeInfoBuilderTest.java | 3 +- .../MBeanConstructorInfoBuilderTest.java | 3 +- .../builder/MBeanFeatureInfoBuilderTest.java | 3 +- .../builder/MBeanInfoBuilderTest.java | 3 +- .../MBeanNotificationInfoBuilderTest.java | 3 +- .../MBeanOperationInfoBuilderTest.java | 3 +- .../MBeanParameterInfoBuilderTest.java | 3 +- ...sourceConfigurationPropertyLoaderTest.java | 3 +- ...sourceConfigurationPropertyLoaderTest.java | 4 +-- ...ConfigurationPropertiesJSONReaderTest.java | 3 +- .../ConfigurationPropertyLoaderTest.java | 3 +- ...ultConfigurationPropertyGeneratorTest.java | 3 +- ...efaultConfigurationPropertyReaderTest.java | 3 +- ...sourceConfigurationPropertyLoaderTest.java | 3 +- ...iveConfigurationPropertyGeneratorTest.java | 3 +- ...teSubProtocolURLConnectionFactoryTest.java | 2 +- .../CompositeURLStreamHandlerFactoryTest.java | 2 +- ...DelegatingURLStreamHandlerFactoryTest.java | 2 +- .../FalseSubProtocolURLConnectionFactory.java | 2 +- .../MutableURLStreamHandlerFactoryTest.java | 2 +- .../StandardURLStreamHandlerFactoryTest.java | 3 +- .../java/io/microsphere/net/URLUtilsTest.java | 2 -- .../net/console/ConsoleURLConnectionTest.java | 2 +- .../nio/charset/CharsetUtilsTest.java | 2 +- .../process/ClassicProcessIdResolverTest.java | 2 +- .../process/ModernProcessIdResolverTest.java | 2 +- .../process/ProcessExecutorTest.java | 2 +- .../process/ProcessManagerTest.java | 2 +- .../VirtualMachineProcessIdResolverTest.java | 2 +- .../AbstractReflectiveDefinitionTest.java | 2 +- .../reflect/AccessibleObjectUtilsTest.java | 2 +- .../reflect/ConstructorDefinitionTest.java | 2 +- .../reflect/JavaTypeTestForClass.java | 2 -- .../JavaTypeTestForParameterizedType.java | 1 - .../microsphere/reflect/MemberUtilsTest.java | 3 +- .../microsphere/reflect/MethodUtilsTest.java | 1 - .../io/microsphere/reflect/ModifierTest.java | 1 - .../microsphere/reflect/MultipleTypeTest.java | 2 +- .../reflect/ReflectionUtilsTest.java | 1 - .../reflect/ReflectiveDefinitionTest.java | 3 +- .../io/microsphere/reflect/TypeUtilsTest.java | 8 +---- .../generics/ParameterizedTypeImplTest.java | 2 +- .../reflect/generics/TypeArgumentTest.java | 2 +- .../security/SecurityUtilsTest.java | 3 +- .../microsphere/util/AnnotationUtilsTest.java | 4 --- .../io/microsphere/util/ArrayUtilsTest.java | 2 +- .../java/io/microsphere/util/AssertTest.java | 5 --- .../io/microsphere/util/BaseUtilsTest.java | 2 +- .../util/CharSequenceUtilsTest.java | 2 +- .../util/ClassLoaderUtilsTest.java | 1 - .../microsphere/util/ClassPathUtilsTest.java | 1 - .../io/microsphere/util/ClassUtilsTest.java | 4 +-- .../microsphere/util/ExceptionUtilsTest.java | 3 +- .../util/HierarchicalClassComparatorTest.java | 3 +- .../microsphere/util/IterableUtilsTest.java | 3 +- .../io/microsphere/util/ObjectUtilsTest.java | 4 +-- .../io/microsphere/util/ResourceTypeTest.java | 1 - .../util/ShutdownHookCallbacksThreadTest.java | 2 +- .../util/ShutdownHookUtilsTest.java | 2 +- .../microsphere/util/StackTraceUtilsTest.java | 2 +- .../io/microsphere/util/StopWatchTest.java | 2 -- .../io/microsphere/util/StringUtilsTest.java | 3 +- .../microsphere/util/ThrowableUtilsTest.java | 3 +- .../io/microsphere/util/TypeFinderTest.java | 2 +- .../io/microsphere/util/ValueHolderTest.java | 1 - .../test/annotation/TestAnnotation.java | 2 +- .../AbstractAnnotationProcessingTest.java | 2 +- .../AnnotationProcessingTestProcessor.java | 2 +- .../CompilerInvocationInterceptor.java | 3 +- .../io/microsphere/test/model/Ancestor.java | 2 +- .../test/model/ArrayTypeModel.java | 2 +- .../test/model/CollectionTypeModel.java | 2 +- .../java/io/microsphere/test/model/Color.java | 2 +- .../model/ConfigurationPropertyModel.java | 2 +- .../microsphere/test/model/MapTypeModel.java | 2 +- .../java/io/microsphere/test/model/Model.java | 2 +- .../io/microsphere/test/model/Parent.java | 2 +- .../test/model/PrimitiveTypeModel.java | 2 +- .../test/model/SimpleTypeModel.java | 2 +- .../test/model/StringArrayList.java | 2 +- .../test/service/DefaultTestService.java | 1 - .../test/service/GenericTestService.java | 3 +- .../microsphere/test/service/TestService.java | 1 - .../processing/AnnotationProcessingTest.java | 2 +- .../microsphere/test/model/AncestorTest.java | 2 +- .../test/model/ArrayTypeModelTest.java | 2 +- .../test/model/CollectionTypeModelTest.java | 32 +++++++++---------- .../io/microsphere/test/model/ColorTest.java | 2 +- .../model/ConfigurationPropertyModelTest.java | 8 ++--- .../test/model/MapTypeModelTest.java | 2 +- .../io/microsphere/test/model/ModelTest.java | 10 +++--- .../io/microsphere/test/model/ParentTest.java | 10 +++--- .../test/model/PrimitiveTypeModelTest.java | 18 +++++------ .../test/model/StringArrayListTest.java | 20 ++++++------ .../jdk/tools/compiler/Compiler.java | 2 +- .../lang/model/util/JSONElementVisitor.java | 2 +- .../lang/model/util/LoggerUtils.java | 1 - .../lang/model/util/MethodUtils.java | 1 - .../lang/model/util/TypeUtils.java | 4 +-- .../element/StringAnnotationValueTest.java | 3 +- ...nnotatedElementJSONElementVisitorTest.java | 3 +- .../lang/model/util/AnnotationUtilsTest.java | 1 - .../lang/model/util/ConstructorUtilsTest.java | 3 +- .../lang/model/util/ElementUtilsTest.java | 3 +- .../util/ExecutableElementComparatorTest.java | 2 +- .../util/JSONAnnotationValueVisitorTest.java | 3 +- .../model/util/JSONElementVisitorTest.java | 4 +-- .../lang/model/util/MessagerUtilsTest.java | 3 +- .../lang/model/util/MethodUtilsTest.java | 1 - .../lang/model/util/TypeUtilsTest.java | 4 +-- 325 files changed, 307 insertions(+), 506 deletions(-) diff --git a/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitor.java b/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitor.java index e30972026..582361d10 100644 --- a/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitor.java +++ b/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitor.java @@ -158,4 +158,4 @@ private void setDeclaredField(io.microsphere.beans.ConfigurationProperty configu String declaredFieldName = field.getSimpleName().toString(); configurationProperty.getMetadata().setDeclaredField(declaredFieldName); } -} \ No newline at end of file +} diff --git a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyAnnotationProcessorTest.java b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyAnnotationProcessorTest.java index 2e2806fa0..5d5c4dbf9 100644 --- a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyAnnotationProcessorTest.java +++ b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyAnnotationProcessorTest.java @@ -40,4 +40,4 @@ void testResolveMetadataOnEmptySet() { String json = processor.toJSON(); assertNotNull("[]", json); } -} \ No newline at end of file +} diff --git a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitorTest.java b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitorTest.java index 89e4e5deb..b5e2f8373 100644 --- a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitorTest.java +++ b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ConfigurationPropertyJSONElementVisitorTest.java @@ -17,7 +17,6 @@ package io.microsphere.annotation.processor; - import io.microsphere.annotation.ConfigurationProperty; import io.microsphere.classloading.ManifestArtifactResourceResolver; import io.microsphere.io.IOUtils; @@ -73,4 +72,4 @@ void testSetSourcesOnNoSource() { visitor.setSources(null, "noSource", null); assertNotNull(visitor); } -} \ No newline at end of file +} diff --git a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/FilerProcessorTest.java b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/FilerProcessorTest.java index 8f715df0f..738ea4d97 100644 --- a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/FilerProcessorTest.java +++ b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/FilerProcessorTest.java @@ -17,7 +17,6 @@ package io.microsphere.annotation.processor; - import io.microsphere.test.annotation.processing.AbstractAnnotationProcessingTest; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtensionContext; @@ -67,4 +66,4 @@ void testGetJavaFileManager() { JavaFileManager javaFileManager = processor.getJavaFileManager(); assertNotNull(javaFileManager); } -} \ No newline at end of file +} diff --git a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ResourceProcessorTest.java b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ResourceProcessorTest.java index 1ed22a16d..6b871e72d 100644 --- a/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ResourceProcessorTest.java +++ b/microsphere-annotation-processor/src/test/java/io/microsphere/annotation/processor/ResourceProcessorTest.java @@ -17,7 +17,6 @@ package io.microsphere.annotation.processor; - import io.microsphere.test.annotation.processing.AbstractAnnotationProcessingTest; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtensionContext; @@ -193,4 +192,4 @@ void testProcessInResourceOnWriterOnFailed() { void testExistsOnNull() { assertFalse(exists(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/ConfigurationProperty.java b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/ConfigurationProperty.java index 10203087e..dd6272f95 100644 --- a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/ConfigurationProperty.java +++ b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/ConfigurationProperty.java @@ -94,4 +94,4 @@ */ String[] source() default {}; -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Experimental.java b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Experimental.java index e3780f909..498df0028 100644 --- a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Experimental.java +++ b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Experimental.java @@ -49,4 +49,4 @@ */ String description() default ""; -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Immutable.java b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Immutable.java index 0ae81044f..593118b5e 100644 --- a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Immutable.java +++ b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Immutable.java @@ -31,4 +31,4 @@ @Documented @Retention(RUNTIME) public @interface Immutable { -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nonnull.java b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nonnull.java index 0a36bb87a..e9e44d01c 100644 --- a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nonnull.java +++ b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nonnull.java @@ -16,7 +16,6 @@ package io.microsphere.annotation; - import javax.annotation.meta.TypeQualifierNickname; import java.lang.annotation.Documented; import java.lang.annotation.Retention; @@ -35,4 +34,4 @@ @javax.annotation.Nonnull @TypeQualifierNickname public @interface Nonnull { -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nullable.java b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nullable.java index 9b708f889..c3a3a49e0 100644 --- a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nullable.java +++ b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Nullable.java @@ -36,4 +36,4 @@ @javax.annotation.Nonnull(when = MAYBE) @TypeQualifierNickname public @interface Nullable { -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Since.java b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Since.java index c2ec0c22d..2b27eecd7 100644 --- a/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Since.java +++ b/microsphere-java-annotations/src/main/java/io/microsphere/annotation/Since.java @@ -65,4 +65,4 @@ */ String value(); -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NonnullTest.java b/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NonnullTest.java index cea51bd42..3fe681abe 100644 --- a/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NonnullTest.java +++ b/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NonnullTest.java @@ -35,4 +35,4 @@ class NonnullTest { void test() { assertNotNull(NonnullTest.class.getAnnotation(Nonnull.class)); } -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NullableTest.java b/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NullableTest.java index 25a6625fe..af514c461 100644 --- a/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NullableTest.java +++ b/microsphere-java-annotations/src/test/java/io/microsphere/annotation/NullableTest.java @@ -35,4 +35,4 @@ class NullableTest { void test() { assertNotNull(NullableTest.class.getAnnotation(Nullable.class)); } -} \ No newline at end of file +} diff --git a/microsphere-java-annotations/src/test/java/io/microsphere/annotation/SinceTest.java b/microsphere-java-annotations/src/test/java/io/microsphere/annotation/SinceTest.java index 1e6314b95..1ecca38c8 100644 --- a/microsphere-java-annotations/src/test/java/io/microsphere/annotation/SinceTest.java +++ b/microsphere-java-annotations/src/test/java/io/microsphere/annotation/SinceTest.java @@ -36,4 +36,4 @@ void test() { assertEquals("microsphere-java-core", since.module()); assertEquals("1.0.0", since.value()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/beans/BeanMetadata.java b/microsphere-java-core/src/main/java/io/microsphere/beans/BeanMetadata.java index 34a91496d..2a3ae998e 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/beans/BeanMetadata.java +++ b/microsphere-java-core/src/main/java/io/microsphere/beans/BeanMetadata.java @@ -122,7 +122,6 @@ public String toString() { return "BeanMetadata{" + "beanClass='" + getTypeName(this.beanClass) + "'}"; } - /** * Create a {@link BeanMetadata} instance from the specified bean class. * @@ -144,4 +143,4 @@ public static BeanMetadata of(@Nonnull Class beanClass) throws RuntimeExcepti return new BeanMetadata(beanClass); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/classloading/ArchiveFileArtifactResourceResolver.java b/microsphere-java-core/src/main/java/io/microsphere/classloading/ArchiveFileArtifactResourceResolver.java index ffb9b4369..804defc65 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/classloading/ArchiveFileArtifactResourceResolver.java +++ b/microsphere-java-core/src/main/java/io/microsphere/classloading/ArchiveFileArtifactResourceResolver.java @@ -106,4 +106,4 @@ static Artifact createArtifact(String archiveFileName, URL resourceURL) { String version = length > 1 ? parts[1] : null; return create(artifactId, version, resourceURL); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/classloading/ArtifactDetector.java b/microsphere-java-core/src/main/java/io/microsphere/classloading/ArtifactDetector.java index c517e80c1..c68aff2c8 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/classloading/ArtifactDetector.java +++ b/microsphere-java-core/src/main/java/io/microsphere/classloading/ArtifactDetector.java @@ -171,4 +171,4 @@ private void removeJdkClassPathURLs(Set classPathURLs) { } } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/classloading/StreamArtifactResourceResolver.java b/microsphere-java-core/src/main/java/io/microsphere/classloading/StreamArtifactResourceResolver.java index 5fba8bc6d..dccb4a678 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/classloading/StreamArtifactResourceResolver.java +++ b/microsphere-java-core/src/main/java/io/microsphere/classloading/StreamArtifactResourceResolver.java @@ -39,7 +39,6 @@ import static io.microsphere.util.Assert.assertNotNull; import static io.microsphere.util.jar.JarUtils.filter; - /** * An abstract base class for implementing {@link ArtifactResourceResolver} that provides a * skeletal implementation to resolve artifact resources from either a streamable resource (like a URL) @@ -199,4 +198,4 @@ protected boolean isArtifactMetadataFile(File directory, File file) { protected abstract boolean isArtifactMetadata(String relativePath); protected abstract Artifact resolve(URL resourceURL, InputStream artifactMetadataData, ClassLoader classLoader) throws IOException; -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/CollectionUtils.java b/microsphere-java-core/src/main/java/io/microsphere/collection/CollectionUtils.java index b76bd134e..0cf6c7ae3 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/CollectionUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/CollectionUtils.java @@ -681,7 +681,6 @@ public static Deque emptyDeque() { return QueueUtils.emptyDeque(); } - private CollectionUtils() { } diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/DelegatingIterator.java b/microsphere-java-core/src/main/java/io/microsphere/collection/DelegatingIterator.java index 3975f19ab..f3f8fd2d7 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/DelegatingIterator.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/DelegatingIterator.java @@ -85,4 +85,4 @@ public final boolean equals(Object obj) { public final String toString() { return this.delegate.toString(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/EmptyIterator.java b/microsphere-java-core/src/main/java/io/microsphere/collection/EmptyIterator.java index 08514248e..a76c79db3 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/EmptyIterator.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/EmptyIterator.java @@ -62,7 +62,6 @@ public class EmptyIterator extends DelegatingIterator { */ public static final EmptyIterator INSTANCE = new EmptyIterator(); - public EmptyIterator() { super(emptyIterator()); } diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/IterableAdapter.java b/microsphere-java-core/src/main/java/io/microsphere/collection/IterableAdapter.java index 54979cd15..247c5039d 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/IterableAdapter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/IterableAdapter.java @@ -56,4 +56,4 @@ public IterableAdapter(Iterator iterator) { public Iterator iterator() { return iterator; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/Iterators.java b/microsphere-java-core/src/main/java/io/microsphere/collection/Iterators.java index 4e16e201a..937993726 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/Iterators.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/Iterators.java @@ -57,4 +57,4 @@ public static boolean equals(Iterator one, Iterator another) { private Iterators() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/concurrent/ExecutorUtils.java b/microsphere-java-core/src/main/java/io/microsphere/concurrent/ExecutorUtils.java index b49c49e93..c8f4a8348 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/concurrent/ExecutorUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/concurrent/ExecutorUtils.java @@ -143,4 +143,4 @@ public static boolean shutdown(ExecutorService executorService) { private ExecutorUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/constants/SeparatorConstants.java b/microsphere-java-core/src/main/java/io/microsphere/constants/SeparatorConstants.java index 60ff450f5..234418f16 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/constants/SeparatorConstants.java +++ b/microsphere-java-core/src/main/java/io/microsphere/constants/SeparatorConstants.java @@ -3,7 +3,6 @@ */ package io.microsphere.constants; - import java.io.File; import static io.microsphere.constants.PathConstants.SLASH; diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/ByteArrayToObjectConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/ByteArrayToObjectConverter.java index d5b5938c2..e3f5911ea 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/ByteArrayToObjectConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/ByteArrayToObjectConverter.java @@ -21,7 +21,6 @@ import java.io.IOException; import java.io.Serializable; - /** * The class coverts the {@link byte[] byte array} object to be a {@link Object} instance . * diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/Converter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/Converter.java index 0f4569bc2..183e15a8e 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/Converter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/Converter.java @@ -23,7 +23,6 @@ import static io.microsphere.reflect.TypeUtils.resolveActualTypeArgumentClass; import static io.microsphere.util.ClassUtils.isAssignableFrom; - /** * A functional interface that defines a strategy for converting values from one type ({@code S}) to another type ({@code T}). *

diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/MapToPropertiesConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/MapToPropertiesConverter.java index e43f6a70a..f5774d64a 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/MapToPropertiesConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/MapToPropertiesConverter.java @@ -16,7 +16,6 @@ */ package io.microsphere.convert; - import java.util.Map; import java.util.Properties; diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharArrayConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharArrayConverter.java index 8f9963c59..86f64320e 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharArrayConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharArrayConverter.java @@ -16,7 +16,6 @@ */ package io.microsphere.convert; - /** * The class to convert {@link String} to char[] * diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharacterConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharacterConverter.java index 20023ca1c..40acf61d9 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharacterConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/StringToCharacterConverter.java @@ -16,7 +16,6 @@ */ package io.microsphere.convert; - import static io.microsphere.util.CharSequenceUtils.length; /** diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/StringToClassConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/StringToClassConverter.java index 82dfa5e64..b2aff4dee 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/StringToClassConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/StringToClassConverter.java @@ -32,7 +32,6 @@ public class StringToClassConverter extends AbstractConverter imp */ public static final StringToClassConverter INSTANCE = new StringToClassConverter(); - private static final ClassLoader classLoader = getDefaultClassLoader(); @Override diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToArrayConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToArrayConverter.java index 57fc84822..d838f7e9a 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToArrayConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToArrayConverter.java @@ -16,7 +16,6 @@ */ package io.microsphere.convert.multiple; - import io.microsphere.convert.Converter; import static java.lang.reflect.Array.newInstance; @@ -49,7 +48,6 @@ public Object convert(String[] segments, int size, Class targetType, Class return array; } - @Override public int getPriority() { return MIN_PRIORITY; diff --git a/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToMultiValueConverter.java b/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToMultiValueConverter.java index a305a246d..6f7e77351 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToMultiValueConverter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/convert/multiple/StringToMultiValueConverter.java @@ -16,7 +16,6 @@ */ package io.microsphere.convert.multiple; - import static io.microsphere.constants.SymbolConstants.COMMA_CHAR; import static io.microsphere.util.ArrayUtils.length; import static io.microsphere.util.StringUtils.split; diff --git a/microsphere-java-core/src/main/java/io/microsphere/event/EventListener.java b/microsphere-java-core/src/main/java/io/microsphere/event/EventListener.java index c85f1a5f2..7e5643784 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/event/EventListener.java +++ b/microsphere-java-core/src/main/java/io/microsphere/event/EventListener.java @@ -206,4 +206,4 @@ static Class findEventType(ParameterizedType parameterizedType) default int getPriority() { return NORMAL_PRIORITY; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/filter/Filter.java b/microsphere-java-core/src/main/java/io/microsphere/filter/Filter.java index 5850f5118..034e437bb 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/filter/Filter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/filter/Filter.java @@ -45,4 +45,4 @@ public interface Filter extends Predicate { default boolean test(T t) { return accept(t); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/DefaultSerializer.java b/microsphere-java-core/src/main/java/io/microsphere/io/DefaultSerializer.java index 577ae20a1..67e3eeb9f 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/DefaultSerializer.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/DefaultSerializer.java @@ -59,4 +59,3 @@ public byte[] serialize(Object source) throws IOException { return bytes; } } - diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/Deserializers.java b/microsphere-java-core/src/main/java/io/microsphere/io/Deserializers.java index 312f54d13..3cc069988 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/Deserializers.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/Deserializers.java @@ -128,4 +128,4 @@ public Deserializer getLowestPriority(Class deserializedType) { public List> get(Class deserializedType) { return (List) typedDeserializers.getOrDefault(deserializedType, emptyList()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/FastByteArrayOutputStream.java b/microsphere-java-core/src/main/java/io/microsphere/io/FastByteArrayOutputStream.java index f04bcff56..d4e3fa376 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/FastByteArrayOutputStream.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/FastByteArrayOutputStream.java @@ -187,4 +187,4 @@ public String toString(String charsetName) */ public void close() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/FileUtils.java b/microsphere-java-core/src/main/java/io/microsphere/io/FileUtils.java index b11cf416a..3f45d8da7 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/FileUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/FileUtils.java @@ -248,7 +248,6 @@ public static void deleteDirectoryOnExit(File directory) { } } - /** * Schedules all files and subdirectories within the given directory for deletion on JVM exit. * diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/IOUtils.java b/microsphere-java-core/src/main/java/io/microsphere/io/IOUtils.java index eabb60de1..6f35a37df 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/IOUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/IOUtils.java @@ -90,7 +90,6 @@ public abstract class IOUtils implements Utils { ) public static final int BUFFER_SIZE = getInteger(BUFFER_SIZE_PROPERTY_NAME, DEFAULT_BUFFER_SIZE); - /** * Reads all lines from the given {@link InputStream} and returns them as an array of strings, * using the default character set for decoding. @@ -215,7 +214,6 @@ public static byte[] toByteArray(InputStream in) throws IOException { return out.toByteArray(); } - /** * Converts the content of the provided {@link InputStream} into a new {@link String} * using the default charset. diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/Serializers.java b/microsphere-java-core/src/main/java/io/microsphere/io/Serializers.java index 25360579f..59ccc7b4c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/Serializers.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/Serializers.java @@ -16,7 +16,6 @@ */ package io.microsphere.io; - import io.microsphere.annotation.Nonnull; import java.util.HashMap; @@ -106,7 +105,6 @@ public Serializer getHighestPriority(Class serializedType) { return first(serializers); } - /** * Get the lowest priority instance of {@link Serializer} by the specified serialized type * @@ -130,4 +128,4 @@ public Serializer getLowestPriority(Class serializedType) { public List> get(Class serializedType) { return (List) typedSerializers.getOrDefault(serializedType, emptyList()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/StandardFileWatchService.java b/microsphere-java-core/src/main/java/io/microsphere/io/StandardFileWatchService.java index 80b334813..94576736b 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/StandardFileWatchService.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/StandardFileWatchService.java @@ -337,4 +337,4 @@ private static class FileChangedMetadata { private WatchEvent.Kind[] watchEventKinds; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/StringBuilderWriter.java b/microsphere-java-core/src/main/java/io/microsphere/io/StringBuilderWriter.java index 0d0d5b63a..3d86d6130 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/StringBuilderWriter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/StringBuilderWriter.java @@ -17,7 +17,6 @@ package io.microsphere.io; - import java.io.StringWriter; import java.io.Writer; diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/filter/FileExtensionFilter.java b/microsphere-java-core/src/main/java/io/microsphere/io/filter/FileExtensionFilter.java index 6115094f6..8301b4109 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/filter/FileExtensionFilter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/filter/FileExtensionFilter.java @@ -94,4 +94,4 @@ public static FileExtensionFilter of(String extension) { return new FileExtensionFilter(extension); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/filter/NameFileFilter.java b/microsphere-java-core/src/main/java/io/microsphere/io/filter/NameFileFilter.java index c71c2032d..1e53e2231 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/filter/NameFileFilter.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/filter/NameFileFilter.java @@ -46,4 +46,4 @@ public boolean accept(File file) { String name = this.name; return caseSensitive ? fileName.equals(name) : fileName.equalsIgnoreCase(name); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/Scanner.java b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/Scanner.java index 5c0f73e25..60bd37506 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/Scanner.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/Scanner.java @@ -3,7 +3,6 @@ */ package io.microsphere.io.scanner; - import io.microsphere.annotation.Nonnull; import io.microsphere.filter.Filter; diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleClassScanner.java b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleClassScanner.java index ef6c7379f..dc9557bdd 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleClassScanner.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleClassScanner.java @@ -190,4 +190,4 @@ private URL resolveClassPathURL(URL resourceURL, String packageResourceName) { String classPath = substringBefore(resource, packageResourceName); return ofURL(classPath); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleFileScanner.java b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleFileScanner.java index 524ddd0f2..2bdb07168 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleFileScanner.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleFileScanner.java @@ -1,6 +1,5 @@ package io.microsphere.io.scanner; - import io.microsphere.annotation.Immutable; import io.microsphere.annotation.Nonnull; import io.microsphere.io.filter.IOFileFilter; diff --git a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleJarEntryScanner.java b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleJarEntryScanner.java index 9880dd47d..a8bdd8a1c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleJarEntryScanner.java +++ b/microsphere-java-core/src/main/java/io/microsphere/io/scanner/SimpleJarEntryScanner.java @@ -99,7 +99,6 @@ public Set scan(URL jarURL, final boolean recursive, JarEntryFilter ja return scan(jarFile, relativePath, recursive, jarEntryFilter); } - /** * @param jarFile * @param recursive diff --git a/microsphere-java-core/src/main/java/io/microsphere/json/JSONTokener.java b/microsphere-java-core/src/main/java/io/microsphere/json/JSONTokener.java index f17066c58..27d858429 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/json/JSONTokener.java +++ b/microsphere-java-core/src/main/java/io/microsphere/json/JSONTokener.java @@ -579,4 +579,4 @@ public static int dehexchar(char hex) { } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/json/JSONUtils.java b/microsphere-java-core/src/main/java/io/microsphere/json/JSONUtils.java index 9cfb94a91..261c18cae 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/json/JSONUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/json/JSONUtils.java @@ -1089,7 +1089,6 @@ public static Object readValues(JSONArray jsonArray, Type targetType) { return readValues(jsonArray, multipleClass, elementClass); } - /** * Reads a {@link JSONArray} and converts it into an instance of the specified collection or array type. *

@@ -1318,7 +1317,6 @@ public static Class determineElementClass(JSONArray jsonArray) { return targetClass; } - /** * Escapes a string for JSON formatting. *

diff --git a/microsphere-java-core/src/main/java/io/microsphere/json/package-info.java b/microsphere-java-core/src/main/java/io/microsphere/json/package-info.java index 6a4568457..33cdd9046 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/json/package-info.java +++ b/microsphere-java-core/src/main/java/io/microsphere/json/package-info.java @@ -21,4 +21,4 @@ * @author Mercy * @since 1.0.0 */ -package io.microsphere.json; \ No newline at end of file +package io.microsphere.json; diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/ClassDataRepository.java b/microsphere-java-core/src/main/java/io/microsphere/lang/ClassDataRepository.java index adaade820..c61c3154a 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/ClassDataRepository.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/ClassDataRepository.java @@ -247,4 +247,4 @@ private Map> initPackageNameToClassNamesMap() { private ClassDataRepository() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/Deprecation.java b/microsphere-java-core/src/main/java/io/microsphere/lang/Deprecation.java index 94bf822ac..8a6225348 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/Deprecation.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/Deprecation.java @@ -232,7 +232,6 @@ public Builder level(@Nullable Level level) { return this; } - /** * Build an instance of {@link Deprecation} * @@ -277,4 +276,4 @@ public static Deprecation of(String since, String replacement, String reason, St .level(level) .build(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/Wrapper.java b/microsphere-java-core/src/main/java/io/microsphere/lang/Wrapper.java index 8b0e4129e..ab5ebef9f 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/Wrapper.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/Wrapper.java @@ -120,4 +120,3 @@ static T tryUnwrap(Object object, Class type) { return null; } } - diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/WrapperProcessor.java b/microsphere-java-core/src/main/java/io/microsphere/lang/WrapperProcessor.java index e5aa76996..b7ff6513c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/WrapperProcessor.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/WrapperProcessor.java @@ -47,4 +47,3 @@ public interface WrapperProcessor { W process(W wrapper); } - diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/function/Streams.java b/microsphere-java-core/src/main/java/io/microsphere/lang/function/Streams.java index 29273a1ce..863566055 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/function/Streams.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/function/Streams.java @@ -505,5 +505,3 @@ static T filterFirst(Iterable values, Predicate... predicates) .orElse(null); } } - - diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableBiConsumer.java b/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableBiConsumer.java index 0e932b06c..769236384 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableBiConsumer.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableBiConsumer.java @@ -21,7 +21,6 @@ import static java.util.Objects.requireNonNull; - /** * Represents an operation that accepts two input arguments and returns no result, * potentially throwing a {@link Throwable}. This is the two-arity specialization of diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableConsumer.java b/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableConsumer.java index 6f4c1ce7d..1eb9f50d6 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableConsumer.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/function/ThrowableConsumer.java @@ -191,4 +191,4 @@ static void execute(T t, ThrowableConsumer consumer, BiConsumer T execute(ThrowableSupplier supplier, Function excep return supplier.execute(exceptionHandler); } } - diff --git a/microsphere-java-core/src/main/java/io/microsphere/logging/NoOpLogger.java b/microsphere-java-core/src/main/java/io/microsphere/logging/NoOpLogger.java index 9f5cc1f66..8a3f8af0f 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/logging/NoOpLogger.java +++ b/microsphere-java-core/src/main/java/io/microsphere/logging/NoOpLogger.java @@ -107,4 +107,4 @@ public void error(String message) { @Override public void error(String message, Throwable t) { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/JmxUtils.java b/microsphere-java-core/src/main/java/io/microsphere/management/JmxUtils.java index fe1d18dfe..bf5bfe6c2 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/JmxUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/JmxUtils.java @@ -566,7 +566,6 @@ public static MBeanInfo getMBeanInfo(MBeanServer mBeanServer, ObjectName objectN return mBeanInfo; } - /** * @see MBeanOperationInfo#methodSignature(Method) */ @@ -653,4 +652,4 @@ private static void handleAttributeNotFoundException(AttributeNotFoundException private JmxUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/ManagementUtils.java b/microsphere-java-core/src/main/java/io/microsphere/management/ManagementUtils.java index e96d8e662..38bb332e6 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/ManagementUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/ManagementUtils.java @@ -1,6 +1,5 @@ package io.microsphere.management; - import io.microsphere.process.ProcessIdResolver; import io.microsphere.util.ServiceLoaderUtils; import io.microsphere.util.Utils; @@ -60,4 +59,4 @@ public static long getCurrentProcessId() { private ManagementUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanAttributeInfoBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanAttributeInfoBuilder.java index 80b29c817..f98da69ca 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanAttributeInfoBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanAttributeInfoBuilder.java @@ -88,4 +88,4 @@ public static MBeanAttributeInfoBuilder attribute(@Nonnull String attributeType) builder.type = attributeType; return builder; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanConstructorInfoBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanConstructorInfoBuilder.java index 8f84bfa17..824e4665f 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanConstructorInfoBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanConstructorInfoBuilder.java @@ -47,4 +47,4 @@ public static MBeanConstructorInfoBuilder constructor() { public static MBeanConstructorInfoBuilder constructor(Constructor constructor) { return constructor().from(constructor); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanDescribableBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanDescribableBuilder.java index 602b3f1aa..8039aaeb8 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanDescribableBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanDescribableBuilder.java @@ -59,4 +59,4 @@ public B descriptor(Descriptor descriptor) { } public abstract I build(); -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanExecutableInfoBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanExecutableInfoBuilder.java index d195544b2..dbf8e5760 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanExecutableInfoBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanExecutableInfoBuilder.java @@ -86,4 +86,4 @@ public B from(Executable executable) { protected MBeanParameterInfo[] toSignature() { return this.parameters.toArray(NO_PARAMS); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanFeatureInfoBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanFeatureInfoBuilder.java index b572d3be9..4ff758dc3 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanFeatureInfoBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanFeatureInfoBuilder.java @@ -50,4 +50,4 @@ public B name(String name) { public MBeanFeatureInfo build() { return new MBeanFeatureInfo(this.name, this.description, this.descriptor); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanInfoBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanInfoBuilder.java index ac61033d5..25d0b747c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanInfoBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanInfoBuilder.java @@ -183,4 +183,4 @@ public static MBeanInfoBuilder mbeanInfo(BeanInfo beanInfo) { return builder; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanOperationInfoBuilder.java b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanOperationInfoBuilder.java index 576cd103d..0a4a8584a 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanOperationInfoBuilder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/management/builder/MBeanOperationInfoBuilder.java @@ -114,4 +114,4 @@ public int getValue() { return this.value; } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactory.java b/microsphere-java-core/src/main/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactory.java index b9fe07d96..f2e135dab 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactory.java +++ b/microsphere-java-core/src/main/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactory.java @@ -148,4 +148,4 @@ int selectFactoryIndex(URL url, List subProtocols) { } return index; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/net/ServiceLoaderURLStreamHandlerFactory.java b/microsphere-java-core/src/main/java/io/microsphere/net/ServiceLoaderURLStreamHandlerFactory.java index debae146f..fb8f7f102 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/net/ServiceLoaderURLStreamHandlerFactory.java +++ b/microsphere-java-core/src/main/java/io/microsphere/net/ServiceLoaderURLStreamHandlerFactory.java @@ -89,4 +89,4 @@ static Map loadHandlers() { handlers, handler -> immutableEntry(handler.getProtocol(), handler)); return handlersMap; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/net/StandardURLStreamHandlerFactory.java b/microsphere-java-core/src/main/java/io/microsphere/net/StandardURLStreamHandlerFactory.java index 71c6161b7..dbcccacb2 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/net/StandardURLStreamHandlerFactory.java +++ b/microsphere-java-core/src/main/java/io/microsphere/net/StandardURLStreamHandlerFactory.java @@ -95,4 +95,4 @@ URLStreamHandler createURLStreamHandlerFromDefaultFactory(Field defaultFactoryFi URLStreamHandler handler = factory.createURLStreamHandler(protocol); return handler; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/net/URLUtils.java b/microsphere-java-core/src/main/java/io/microsphere/net/URLUtils.java index c1b98258d..6a2e57a15 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/net/URLUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/net/URLUtils.java @@ -1720,4 +1720,4 @@ protected static String getFirst(Map> parameters, String na private URLUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/process/ClassicProcessIdResolver.java b/microsphere-java-core/src/main/java/io/microsphere/process/ClassicProcessIdResolver.java index 496914eab..7a1ce136c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/process/ClassicProcessIdResolver.java +++ b/microsphere-java-core/src/main/java/io/microsphere/process/ClassicProcessIdResolver.java @@ -92,4 +92,4 @@ public Long current() { public int getPriority() { return NORMAL_PRIORITY + 9; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/process/ProcessExecutor.java b/microsphere-java-core/src/main/java/io/microsphere/process/ProcessExecutor.java index f44a17c85..0ac418465 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/process/ProcessExecutor.java +++ b/microsphere-java-core/src/main/java/io/microsphere/process/ProcessExecutor.java @@ -190,4 +190,4 @@ public void execute(OutputStream outputStream, long timeout, TimeUnit timeUnit) throw wrap(e, IOException.class); } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/process/ProcessManager.java b/microsphere-java-core/src/main/java/io/microsphere/process/ProcessManager.java index 616d85b2a..549ca3ecd 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/process/ProcessManager.java +++ b/microsphere-java-core/src/main/java/io/microsphere/process/ProcessManager.java @@ -70,4 +70,4 @@ protected ProcessManager removeUnfinishedProcess(Process process, String argumen public Map unfinishedProcessesMap() { return unmodifiableMap(unfinishedProcessesCache); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/ClassDefinition.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/ClassDefinition.java index 4a2bef849..e698f7af6 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/ClassDefinition.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/ClassDefinition.java @@ -94,4 +94,4 @@ public ClassDefinition(@Nonnull Version since, @Nullable Deprecation deprecation public boolean isPresent() { return nonNull(super.getResolvedClass()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/FieldUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/FieldUtils.java index ff94f85fa..b22c2e5cb 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/FieldUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/FieldUtils.java @@ -685,4 +685,4 @@ static void handleFieldException(Exception e, Object instance, Field field) { private FieldUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/MemberUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/MemberUtils.java index 44208338c..9daa7a243 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/MemberUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/MemberUtils.java @@ -338,4 +338,4 @@ public static Member asMember(Object object) { private MemberUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/MethodUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/MethodUtils.java index c7f38d9af..b926ae8f2 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/MethodUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/MethodUtils.java @@ -1326,7 +1326,6 @@ static boolean isNoArgMethod(Method method) { return matchesParameterCount(method, 0); } - static void filterDeclaredMethodsHierarchically(Class targetClass, Predicate methodToFilter, List methodsToCollect) { filterDeclaredMethods(targetClass, methodToFilter, methodsToCollect); for (Class interfaceClass : targetClass.getInterfaces()) { diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/ProxyUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/ProxyUtils.java index 1bc731eb6..6b1b4bcff 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/ProxyUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/ProxyUtils.java @@ -32,7 +32,6 @@ import static io.microsphere.util.ClassUtils.isPrimitive; import static java.lang.reflect.Modifier.isFinal; - /** * The utilities class for {@link Proxy Proxy} * diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectionUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectionUtils.java index 2f5e5aaf9..41c0d134d 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectionUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectionUtils.java @@ -1,6 +1,5 @@ package io.microsphere.reflect; - import io.microsphere.annotation.Immutable; import io.microsphere.annotation.Nonnull; import io.microsphere.annotation.Nullable; @@ -393,7 +392,6 @@ static Object toObject(Object object) { return object; } - /** * Reads all non-static fields of the given object and returns them as a map. *

@@ -527,4 +525,4 @@ static boolean isInaccessibleObjectException(String className) { private ReflectionUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectiveDefinition.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectiveDefinition.java index 52fc3ba3b..7f18d895c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectiveDefinition.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/ReflectiveDefinition.java @@ -231,4 +231,4 @@ public String toString() { ", resolvedClass=" + this.getResolvedClass() + '}'; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/TypeUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/TypeUtils.java index d105b4059..a4e3252ae 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/TypeUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/TypeUtils.java @@ -661,7 +661,6 @@ private static Map resolveTypeArgumentsMap(Type type, Lis resolveTypeArgumentsMap(type, hierarchicalTypes, -1, hierarchicalTypesSize, typeArgumentsMap, baseClass, baseTypeParameters); - return typeArgumentsMap; } diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/generics/TypeArgument.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/generics/TypeArgument.java index 1b1075fb6..6f9cb1720 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/generics/TypeArgument.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/generics/TypeArgument.java @@ -82,7 +82,6 @@ public int hashCode() { return hash(this.type, this.index); } - public static TypeArgument create(Type type, int index) { return new TypeArgument(type, index); } diff --git a/microsphere-java-core/src/main/java/io/microsphere/security/SecurityUtils.java b/microsphere-java-core/src/main/java/io/microsphere/security/SecurityUtils.java index ff80ca478..0d9091403 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/security/SecurityUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/security/SecurityUtils.java @@ -74,4 +74,4 @@ public static String getJavaSecurityPolicyFile() { private SecurityUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/AnnotationUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/AnnotationUtils.java index 52977767d..5ec058781 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/AnnotationUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/AnnotationUtils.java @@ -489,7 +489,6 @@ public static boolean isMetaAnnotation(Annotation annotation, return isMetaAnnotation(annotation.annotationType(), metaAnnotationTypes); } - /** * Checks whether the specified annotation type is a meta-annotation. * @@ -1837,4 +1836,4 @@ static void findMetaAnnotations(AnnotatedElement annotate private AnnotationUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ArrayUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ArrayUtils.java index c2982b9f8..3a9489f6c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ArrayUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ArrayUtils.java @@ -16,7 +16,6 @@ */ package io.microsphere.util; - import io.microsphere.annotation.Immutable; import java.io.File; diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/Assert.java b/microsphere-java-core/src/main/java/io/microsphere/util/Assert.java index c612d0e79..a7126e726 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/Assert.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/Assert.java @@ -506,4 +506,4 @@ private static String nullSafeGet(Supplier messageSupplier) { private Assert() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/CharSequenceUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/CharSequenceUtils.java index 70569532e..48d00c8d7 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/CharSequenceUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/CharSequenceUtils.java @@ -77,7 +77,6 @@ public static boolean isNotEmpty(@Nullable CharSequence value) { return length(value) > 0; } - /** * Checks whether the given {@code CharSequence} contains any whitespace characters. * diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ClassLoaderUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ClassLoaderUtils.java index 2a07aa0d0..1391767fa 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ClassLoaderUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ClassLoaderUtils.java @@ -66,7 +66,6 @@ import static java.util.Collections.unmodifiableSet; import static java.util.Objects.nonNull; - /** * {@link ClassLoader} Utility * @@ -2135,4 +2134,4 @@ public String resolve(String name) { private ClassLoaderUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ClassPathUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ClassPathUtils.java index 876e72f41..605d32558 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ClassPathUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ClassPathUtils.java @@ -3,7 +3,6 @@ */ package io.microsphere.util; - import io.microsphere.annotation.Immutable; import io.microsphere.annotation.Nonnull; import io.microsphere.annotation.Nullable; @@ -220,4 +219,4 @@ public static URL getRuntimeClassLocation(Class type) { private ClassPathUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ClassUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ClassUtils.java index 73d968937..fac729172 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ClassUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ClassUtils.java @@ -1514,7 +1514,6 @@ public static List> getAllClasses(@Nullable Class type) { return findAllClasses(type, EMPTY_PREDICATE_ARRAY); } - /** * Find all super classes from the specified type, optionally filtering the results. *

@@ -2324,4 +2323,4 @@ public static URL getCodeSourceLocation(@Nullable Class type) { private ClassUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/Compatible.java b/microsphere-java-core/src/main/java/io/microsphere/util/Compatible.java index ad78cbee2..48378a3da 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/Compatible.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/Compatible.java @@ -272,4 +272,4 @@ public void accept(Consumer resultConsumer) { public R get() { return call().orElse(null); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/Configurer.java b/microsphere-java-core/src/main/java/io/microsphere/util/Configurer.java index 049d2e440..0894e8e2d 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/Configurer.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/Configurer.java @@ -260,7 +260,6 @@ public Configurer compare(T comparedValue) { return this; } - /** * Filters the current value using the given {@link Predicate}. If the predicate evaluates * to {@code false}, the current value is discarded (set to {@code null}) and subsequent diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ExceptionUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ExceptionUtils.java index da7e89dd9..e772a3b75 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ExceptionUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ExceptionUtils.java @@ -309,4 +309,4 @@ static Object[] resolveArguments(T source) { private ExceptionUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/NumberUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/NumberUtils.java index d26acac9b..77c99bba7 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/NumberUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/NumberUtils.java @@ -30,7 +30,6 @@ */ public abstract class NumberUtils implements Utils { - private NumberUtils() { } } diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ObjectUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ObjectUtils.java index 3becccd04..a0cf3fe7a 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ObjectUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ObjectUtils.java @@ -31,7 +31,6 @@ */ public abstract class ObjectUtils implements Utils { - /** * Applies the given function to the source object if it is non-null, otherwise returns null. * This method helps to avoid NullPointerException when chaining operations on potentially null objects. @@ -94,4 +93,4 @@ public static T defaultIfNull(@Nullable T object, @Nullable T defaultValue) private ObjectUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/PriorityComparator.java b/microsphere-java-core/src/main/java/io/microsphere/util/PriorityComparator.java index df8d23db8..0b5591c07 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/PriorityComparator.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/PriorityComparator.java @@ -150,4 +150,4 @@ static int getValue(Object priority) { int value = priority == null ? UNDEFINED_VALUE : invokeMethod(priority, "value"); return value < 0 ? UNDEFINED_VALUE : value; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/PropertyResourceBundleControl.java b/microsphere-java-core/src/main/java/io/microsphere/util/PropertyResourceBundleControl.java index 73f52bfb5..d4bb73980 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/PropertyResourceBundleControl.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/PropertyResourceBundleControl.java @@ -3,7 +3,6 @@ */ package io.microsphere.util; - import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ServiceLoaderUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ServiceLoaderUtils.java index cfc5085ea..fdcd63aab 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ServiceLoaderUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ServiceLoaderUtils.java @@ -906,4 +906,4 @@ static Set doGetServiceClassNames(Class serviceType, @Nullable ClassL private ServiceLoaderUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookUtils.java index 97839eb56..e8abe67af 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookUtils.java @@ -417,4 +417,4 @@ static Map shutdownHookThreadsMap(Class applicationShutdownHo private ShutdownHookUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/StackTraceUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/StackTraceUtils.java index 4ad4b6f97..4a67f4529 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/StackTraceUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/StackTraceUtils.java @@ -134,4 +134,4 @@ public static StackTraceElement[] getStackTrace() { private StackTraceUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/StringUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/StringUtils.java index 9d630c40b..60f18402e 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/StringUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/StringUtils.java @@ -923,4 +923,4 @@ static String trimWhitespace(String str, boolean includeLeading, boolean include private StringUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/SystemUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/SystemUtils.java index 72322f86f..7274d28a4 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/SystemUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/SystemUtils.java @@ -42,7 +42,6 @@ public abstract class SystemUtils implements Utils { private static final Logger logger = getLogger(SystemUtils.class); - public static final String OS_NAME_WINDOWS_PREFIX = "Windows"; /** diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ThrowableUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/ThrowableUtils.java index f54c48b0c..9487ffea3 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ThrowableUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ThrowableUtils.java @@ -49,7 +49,6 @@ public static Throwable getRootCause(Throwable throwable) { return rootCause; } - private ThrowableUtils() { } } diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/TypeFinder.java b/microsphere-java-core/src/main/java/io/microsphere/util/TypeFinder.java index dad5f0e15..8c7f67660 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/TypeFinder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/TypeFinder.java @@ -467,4 +467,4 @@ public static TypeFinder genericTypeFinder(Type type, boolean includeSelf, return new TypeFinder(type, genericTypeGetSuperClassFunction, genericTypeGetInterfacesFunction, includeSelf, includeHierarchicalTypes, includeSuperclass, includeInterfaces); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ValueHolder.java b/microsphere-java-core/src/main/java/io/microsphere/util/ValueHolder.java index 8982e1a85..b2b34340c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ValueHolder.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ValueHolder.java @@ -200,4 +200,4 @@ public static ValueHolder of(V value) { return new ValueHolder<>(value); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/Version.java b/microsphere-java-core/src/main/java/io/microsphere/util/Version.java index f0a97f088..08db120fe 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/Version.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/Version.java @@ -788,4 +788,4 @@ public static Operator of(String symbol) { throw new IllegalArgumentException(messageBuilder.toString()); } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/jar/JarUtils.java b/microsphere-java-core/src/main/java/io/microsphere/util/jar/JarUtils.java index b0b128c59..e0e802dfc 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/jar/JarUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/jar/JarUtils.java @@ -411,7 +411,6 @@ public static void extract(@Nonnull URL jarResourceURL, @Nonnull File targetDire } } - /** * Determines whether the specified URL points to a directory entry within a JAR file. * @@ -510,4 +509,4 @@ protected static void doExtract(JarFile jarFile, Collection jarEntries private JarUtils() { } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/beans/BeanMetadataTest.java b/microsphere-java-core/src/test/java/io/microsphere/beans/BeanMetadataTest.java index ae2474162..9641eea31 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/beans/BeanMetadataTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/beans/BeanMetadataTest.java @@ -17,7 +17,6 @@ package io.microsphere.beans; - import io.microsphere.beans.BeanUtilsTest.TestBean; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -102,4 +101,4 @@ void testHashCode() { void testToString() { assertEquals(this.beanMetadata.toString(), of(TestBean.class).toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/beans/BeanUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/beans/BeanUtilsTest.java index 3318cfa74..85cc8ed04 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/beans/BeanUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/beans/BeanUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.beans; - import io.microsphere.LoggingTest; import io.microsphere.io.event.FileChangedEvent; import io.microsphere.test.MultipleValueData; @@ -104,7 +103,6 @@ void testFindWriteMethodOnNotFound() { assertNull(writeMethod); } - @Test void testResolvePropertiesAsMap() { ConfigurationProperty configurationProperty = new ConfigurationProperty("test"); @@ -289,4 +287,4 @@ public Object getObject() { return object; } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/ArtifactDetectorTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/ArtifactDetectorTest.java index adf4c6e4b..7cf2deb90 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/ArtifactDetectorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/ArtifactDetectorTest.java @@ -16,7 +16,6 @@ */ package io.microsphere.classloading; - import io.microsphere.LoggingTest; import org.junit.jupiter.api.Test; diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutorTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutorTest.java index f94a96960..5da47d088 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutorTest.java @@ -56,4 +56,4 @@ public Enumeration getResources(String name) throws IOException { void testLoadBannedArtifactConfigOnFailed() { assertThrows(IllegalArgumentException.class, () -> loadBannedArtifactConfig("invalid-definition")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/ErrorArtifactResourceResolverTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/ErrorArtifactResourceResolverTest.java index 8f0342996..1e4cced4e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/ErrorArtifactResourceResolverTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/ErrorArtifactResourceResolverTest.java @@ -15,4 +15,4 @@ class ErrorArtifactResourceResolverTest extends StreamArtifactResourceResolverTe void assertArtifact(Artifact artifact) throws Throwable { assertNull(artifact); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/ManifestArtifactResourceResolverTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/ManifestArtifactResourceResolverTest.java index 91edaf153..7e5dda553 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/ManifestArtifactResourceResolverTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/ManifestArtifactResourceResolverTest.java @@ -29,4 +29,4 @@ void testresolveArtifactMetaInfoInManifestOnNotFound() { Artifact artifact = resolver.resolveArtifactMetaInfoInManifest(manifest, null); assertNull(artifact); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactResourceResolverTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactResourceResolverTest.java index 6754d79cb..66928ec1d 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactResourceResolverTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactResourceResolverTest.java @@ -22,4 +22,4 @@ void assertArtifact(Artifact artifact) throws Throwable { assertEquals(TEST_VERSION, mavenArtifact.getVersion()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactTest.java index 998c0e2c3..4b96b6a4a 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/MavenArtifactTest.java @@ -32,7 +32,6 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; - /** * {@link MavenArtifact} Test * diff --git a/microsphere-java-core/src/test/java/io/microsphere/classloading/URLClassPathHandleTest.java b/microsphere-java-core/src/test/java/io/microsphere/classloading/URLClassPathHandleTest.java index 3d2596905..5d5af3180 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/classloading/URLClassPathHandleTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/classloading/URLClassPathHandleTest.java @@ -59,4 +59,4 @@ void testInitializeLoaders() { void testGetPriority() { assertEquals(MIN_PRIORITY, handle.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractDequeTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractDequeTest.java index 7e6ba5eb5..b07b48bd9 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractDequeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractDequeTest.java @@ -237,4 +237,4 @@ void testPushAndPop() { assertEquals("X", multiDeque.pop()); assertThrows(NoSuchElementException.class, () -> multiDeque.pop()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractEnumerationTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractEnumerationTest.java index 14c63c3f2..4755b215a 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractEnumerationTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/AbstractEnumerationTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -89,4 +88,4 @@ void testNextElement() { assertFalse(this.enumeration.hasMoreElements()); assertThrows(NoSuchElementException.class, this.enumeration::nextElement); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayEnumerationTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayEnumerationTest.java index 272415f56..5e44d41fb 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayEnumerationTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayEnumerationTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import java.util.Enumeration; import static io.microsphere.collection.EnumerationUtils.ofEnumeration; @@ -35,4 +34,4 @@ class ArrayEnumerationTest extends AbstractEnumerationTest { protected Enumeration createEnumeration() { return ofEnumeration(values); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayStackTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayStackTest.java index 9b14bf716..6cee3c3c3 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayStackTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ArrayStackTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -90,4 +89,4 @@ void testSearch() { assertEquals(1, this.stack.search("A")); assertEquals(-1, this.stack.search("B")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/CollectionUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/CollectionUtilsTest.java index cfe3a7a38..94bf9ed11 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/CollectionUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/CollectionUtilsTest.java @@ -278,4 +278,4 @@ void testEmptyDeque() { assertSame(QueueUtils.emptyDeque(), emptyDeque()); assertSame(EMPTY_DEQUE, emptyDeque()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/DefaultEntryTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/DefaultEntryTest.java index 4d9940cd6..8e69a4f6f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/DefaultEntryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/DefaultEntryTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -74,4 +73,4 @@ void testHashCode() { void testToString() { assertEquals("key=value", entry.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingDequeTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingDequeTest.java index eec9d7bcb..7507f1074 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingDequeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingDequeTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Test; import java.util.Deque; @@ -65,4 +64,4 @@ void testUnwrap() { LinkedList linkedList = delegatingDeque.unwrap(LinkedList.class); assertNotNull(linkedList); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingIteratorTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingIteratorTest.java index b9a197f00..2362ed525 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingIteratorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/DelegatingIteratorTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -98,4 +97,4 @@ void testEquals() { void testToString() { assertEquals(this.delegatingIterator.toString(), this.iterator.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyDequeTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyDequeTest.java index eb5bdd732..49bde2902 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyDequeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyDequeTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Test; import java.util.NoSuchElementException; @@ -90,4 +89,4 @@ void testRemoveLastOccurrence() { void testSize() { assertEquals(0, emptyDeque.size()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIterableTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIterableTest.java index c3c891cdd..4ac16b69a 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIterableTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIterableTest.java @@ -18,4 +18,4 @@ class EmptyIterableTest { void testIterator() { assertSame(EmptyIterator.INSTANCE, INSTANCE.iterator()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIteratorTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIteratorTest.java index f5e39953b..f81894d2e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIteratorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyIteratorTest.java @@ -38,4 +38,4 @@ void testNext() { void testRemove() { assertThrows(IllegalStateException.class, emptyIterator::remove); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyQueueTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyQueueTest.java index 1df47ce12..4c53a7773 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyQueueTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/EmptyQueueTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Test; import java.util.NoSuchElementException; @@ -82,4 +81,4 @@ void testPeek() { void testSize() { assertEquals(0, emptyDeque.size()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ImmutableEntryTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ImmutableEntryTest.java index 45ad55ed9..3804d1585 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ImmutableEntryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ImmutableEntryTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -74,4 +73,4 @@ void testHashCode() { void testToString() { assertEquals("key=value", entry.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/IterableAdapterTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/IterableAdapterTest.java index f11acfeec..5507e0347 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/IterableAdapterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/IterableAdapterTest.java @@ -42,4 +42,4 @@ void test() { assertSame(INSTANCE, new IterableAdapter(null).iterator()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/IteratorsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/IteratorsTest.java index 2ed2ed945..f0bec9ab4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/IteratorsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/IteratorsTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Test; import java.util.Iterator; @@ -56,4 +55,4 @@ void testEquals() { // the same-sizz iterators assertFalse(Iterators.equals(values.iterator(), ofList("B", "C", "A").iterator())); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ListUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ListUtilsTest.java index a51411614..af6803933 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ListUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ListUtilsTest.java @@ -213,4 +213,4 @@ void testAddIfAbsent() { assertFalse(addIfAbsent(values, "A")); assertTrue(addIfAbsent(values, "B")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ListsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ListsTest.java index 298d06b5a..3335e2f28 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ListsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ListsTest.java @@ -236,4 +236,4 @@ void testOfListElementsWithWrongMethodHandle() { Integer[] elements = {1, 2, 3}; assertEquals(of(elements), ofListElements(wrongMethodHandle, elements)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/MapsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/MapsTest.java index 325159209..bcd1f1247 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/MapsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/MapsTest.java @@ -384,4 +384,4 @@ void testOfMapEntriesWithWrongMethodHandle() { assertEquals(1, map.get("A")); assertEquals(2, map.get("B")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/QueueUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/QueueUtilsTest.java index 6afd3fc11..29184676b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/QueueUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/QueueUtilsTest.java @@ -1,6 +1,5 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Test; import java.util.Deque; @@ -136,7 +135,6 @@ void testSingletonDeque() { assertEquals("a", singletonDeque.getFirst()); assertEquals("a", singletonDeque.getLast()); - assertEquals(1, singletonDeque.size()); } @@ -245,4 +243,4 @@ void testNewArrayDequeWithElements() { assertTrue(deque.containsAll(asList("a", "b", "c"))); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ReversedDequeTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ReversedDequeTest.java index c82921028..1c8f4f931 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ReversedDequeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ReversedDequeTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.Test; import java.util.Deque; @@ -76,4 +75,4 @@ void testRemove() { this.instance.remove(null); super.testRemove(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/SetUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/SetUtilsTest.java index 9cf7887a8..36d3eca85 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/SetUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/SetUtilsTest.java @@ -165,4 +165,4 @@ private void assertSet(Set set) { assertTrue(set.contains("c")); assertFalse(set.contains("d")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/SetsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/SetsTest.java index f718e84e8..7d29f5dbb 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/SetsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/SetsTest.java @@ -236,4 +236,4 @@ void testOfSetElementsWithWrongMethodHandle() { Integer[] elements = {1, 2, 3}; assertEquals(of(elements), ofSetElements(wrongMethodHandle, elements)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/SingletonDequeTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/SingletonDequeTest.java index b09f6fa8a..4843378d1 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/SingletonDequeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/SingletonDequeTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -125,4 +124,4 @@ void testHashCode() { assertEquals(singletonDeque.hashCode(), singletonDeque.hashCode()); assertEquals(TEST_ELEMENT.hashCode(), singletonDeque.hashCode()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/TestDeque.java b/microsphere-java-core/src/test/java/io/microsphere/collection/TestDeque.java index f14674a7b..52e0baca7 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/TestDeque.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/TestDeque.java @@ -191,4 +191,4 @@ public int size() { public boolean isFull() { return this.size() >= this.maxCapacity; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableDequeTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableDequeTest.java index 18d132910..4c9f043c9 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableDequeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableDequeTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -126,4 +125,4 @@ void testPop() { void testDescendingIterator() { assertTrue(deque.descendingIterator() instanceof UnmodifiableIterator); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableQueueTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableQueueTest.java index fbb7e483f..32cb37524 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableQueueTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/UnmodifiableQueueTest.java @@ -17,7 +17,6 @@ package io.microsphere.collection; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -169,4 +168,4 @@ void testHashCode() { void testToString() { assertEquals(queue.toString(), singletonQueue(TEST_ELEMENT).toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingBlockingQueueTest.java b/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingBlockingQueueTest.java index 37de437cf..381f0adc1 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingBlockingQueueTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingBlockingQueueTest.java @@ -104,7 +104,6 @@ void test() throws Throwable { // test hashCode assertEquals(System.identityHashCode(delegate), queue.hashCode()); - // test offer assertTrue(queue.offer(1)); assertTrue(queue.offer(2, 1, SECONDS)); @@ -176,4 +175,4 @@ void test() throws Throwable { // test toString assertEquals(queue.toString(), delegate.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java b/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java index 212252e6b..47a6c9f51 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java @@ -61,7 +61,6 @@ void test() throws Throwable { log("scheduleWithFixedDelay"); }, 1, 1, MILLISECONDS); - // test submit future = instance.submit(() -> { log("submit"); @@ -109,4 +108,4 @@ void test() throws Throwable { assertTrue(instance.isTerminated()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/concurrent/ExecutorUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/concurrent/ExecutorUtilsTest.java index 106cbeee7..ca2488c38 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/concurrent/ExecutorUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/concurrent/ExecutorUtilsTest.java @@ -87,4 +87,4 @@ void testShutdownForExecutorService() { void testShutdownForExecutorServiceOnNull() { assertFalse(shutdown(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/constants/ResourceConstantsTest.java b/microsphere-java-core/src/test/java/io/microsphere/constants/ResourceConstantsTest.java index 1f208cbcc..9fea2b443 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/constants/ResourceConstantsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/constants/ResourceConstantsTest.java @@ -17,7 +17,6 @@ package io.microsphere.constants; - import org.junit.jupiter.api.Test; import static io.microsphere.constants.ResourceConstants.ADDITIONAL_CONFIGURATION_PROPERTY_METADATA_FILE_NAME; @@ -46,4 +45,4 @@ void testConstants() { assertEquals("META-INF/microsphere/configuration-properties.json", CONFIGURATION_PROPERTY_METADATA_RESOURCE); assertEquals("META-INF/microsphere/additional-configuration-properties.json", ADDITIONAL_CONFIGURATION_PROPERTY_METADATA_RESOURCE); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/BaseConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/BaseConverterTest.java index 481858868..96176bc70 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/BaseConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/BaseConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import io.microsphere.Loggable; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -102,4 +101,4 @@ void testGetConverter() { void testConvertIfPossible() throws Throwable { assertTrue(deepEquals(getTarget(), convertIfPossible(getSource(), this.targetType))); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToByteConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToByteConverterTest.java index fcf5bbb33..3e7164ba3 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToByteConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToByteConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToByteConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Byte getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToCharacterConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToCharacterConverterTest.java index 7fbf337d3..fdf3b3d86 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToCharacterConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToCharacterConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToCharacterConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Character getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToDoubleConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToDoubleConverterTest.java index 6a0db42de..e77b11d81 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToDoubleConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToDoubleConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToDoubleConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Double getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToFloatConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToFloatConverterTest.java index 56ebb5c5e..de2e09854 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToFloatConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToFloatConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToFloatConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Float getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToIntegerConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToIntegerConverterTest.java index 5642e30b9..991309f5b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToIntegerConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToIntegerConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToIntegerConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Integer getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(Double.valueOf(1.0))); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToLongConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToLongConverterTest.java index 7ab01e94c..96b21ba91 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToLongConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToLongConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToLongConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Long getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToShortConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToShortConverterTest.java index bb57a9c71..c35695421 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToShortConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/NumberToShortConverterTest.java @@ -17,7 +17,6 @@ package io.microsphere.convert; - import org.junit.jupiter.api.Test; import static io.microsphere.convert.NumberToShortConverter.INSTANCE; @@ -52,4 +51,4 @@ protected Short getTarget() { void testCovertMore() { assertEquals(getTarget(), this.converter.convert(1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/StringToDurationConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/StringToDurationConverterTest.java index 0f407256e..7bbea56e5 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/StringToDurationConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/StringToDurationConverterTest.java @@ -28,4 +28,4 @@ protected String getSource() throws Throwable { protected Duration getTarget() throws Throwable { return Duration.ofSeconds(12, MILLISECONDS.toNanos(345)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/convert/multiple/StringToMultiValueConverterTest.java b/microsphere-java-core/src/test/java/io/microsphere/convert/multiple/StringToMultiValueConverterTest.java index 9c7a3c127..6596641d3 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/convert/multiple/StringToMultiValueConverterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/convert/multiple/StringToMultiValueConverterTest.java @@ -46,4 +46,4 @@ void testConvert() { void testConvertOnNull() { assertArrayEquals(null, (String[]) converter.convert(null, null, null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventDispatcherTest.java b/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventDispatcherTest.java index ab63b0f5a..e871d7f80 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventDispatcherTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventDispatcherTest.java @@ -68,4 +68,4 @@ void testDoInListener() { assertDoesNotThrow(() -> this.eventDispatcher.doInListener((Class) null, eventListeners -> { })); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventListener.java b/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventListener.java index 36e9c4074..a5cc10bba 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventListener.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/AbstractEventListener.java @@ -39,4 +39,4 @@ public int getEventOccurs() { protected void println(String message) { log("[{}] {}", Thread.currentThread().getName(), message); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/EchoEventListener.java b/microsphere-java-core/src/test/java/io/microsphere/event/EchoEventListener.java index 7a4ff9346..93bc38098 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/EchoEventListener.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/EchoEventListener.java @@ -29,4 +29,4 @@ public class EchoEventListener extends AbstractEventListener implemen public void handleEvent(EchoEvent event) { println("EchoEventListener : " + event); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/EventDispatcherTest.java b/microsphere-java-core/src/test/java/io/microsphere/event/EventDispatcherTest.java index 24a039196..e05023003 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/EventDispatcherTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/EventDispatcherTest.java @@ -50,7 +50,6 @@ void testDefaultMethods() { void testGetExecutor() throws Throwable { assertSame(DIRECT_EXECUTOR, defaultInstance.getExecutor()); - EventDispatcher executor = new EventDispatcher() { @Override public void addEventListener(EventListener listener) throws NullPointerException, IllegalArgumentException { diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/EventListenerTest.java b/microsphere-java-core/src/test/java/io/microsphere/event/EventListenerTest.java index a916c5528..0d7118561 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/EventListenerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/EventListenerTest.java @@ -23,7 +23,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; - /** * {@link EventListener} Test * @@ -61,4 +60,4 @@ public int getPriority() { assertEquals(NORMAL_PRIORITY, listener.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/ListenableTest.java b/microsphere-java-core/src/test/java/io/microsphere/event/ListenableTest.java index 4e7026148..8b58dd395 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/ListenableTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/ListenableTest.java @@ -24,7 +24,6 @@ void testAssertListenerOnInterface() { assertThrows(IllegalArgumentException.class, () -> assertListener(new FinalEventListener())); } - static final class FinalEventListener implements EventListener { @Override @@ -33,5 +32,4 @@ public void onEvent(Event event) { } } - -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/filter/FilterOperatorTest.java b/microsphere-java-core/src/test/java/io/microsphere/filter/FilterOperatorTest.java index 9e6bf0b2d..90adcf75c 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/filter/FilterOperatorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/filter/FilterOperatorTest.java @@ -19,7 +19,6 @@ class FilterOperatorTest { TrueClassFilter filter1 = TrueClassFilter.INSTANCE; - PackageNameClassFilter filter2 = new PackageNameClassFilter("io.microsphere", true); @Test @@ -85,4 +84,4 @@ void testXOROnEmptyFilters() { assertTrue(filter.accept(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/filter/FilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/filter/FilterTest.java index eae613363..3a9c9613b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/filter/FilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/filter/FilterTest.java @@ -17,7 +17,6 @@ package io.microsphere.filter; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -51,4 +50,4 @@ void testTest() { assertFalse(this.filter.test("test")); assertTrue(this.filter.test("true")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/filter/FilterUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/filter/FilterUtilsTest.java index f0cf9cfc0..f0e61d7a4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/filter/FilterUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/filter/FilterUtilsTest.java @@ -38,4 +38,4 @@ void testFilter() { assertEquals(asList(1, 3, 5, 7, 9), result); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassFilterTest.java index dbd81c0b1..a0617c398 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassFilterTest.java @@ -27,4 +27,4 @@ void testAccept() { filter = new PackageNameClassFilter("io.microsphere.filter", false); assertTrue(filter.accept(PackageNameClassFilterTest.class)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassNameFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassNameFilterTest.java index d83e83d8e..fcc4410c2 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassNameFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/filter/PackageNameClassNameFilterTest.java @@ -21,4 +21,4 @@ void testAccept() { assertFalse(filter.accept("java.lang.String")); assertFalse(filter.accept(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/filter/TrueClassFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/filter/TrueClassFilterTest.java index 33091f0f4..7382fa4ca 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/filter/TrueClassFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/filter/TrueClassFilterTest.java @@ -18,4 +18,4 @@ void testAccept() { assertTrue(TrueClassFilter.INSTANCE.accept(null)); assertTrue(TrueClassFilter.INSTANCE.accept(getClass())); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/invoke/MethodHandleUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/invoke/MethodHandleUtilsTest.java index d7765d440..689976d38 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/invoke/MethodHandleUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/invoke/MethodHandleUtilsTest.java @@ -91,7 +91,6 @@ void testFindStaticOnDefaultStaticMethod() throws Throwable { testFindStatic("defaultStaticMethod"); } - @Test void testFindStaticOnPrivateStaticMethod() throws Throwable { testFindStatic("privateStaticMethod"); diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/DefaultDeserializerTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/DefaultDeserializerTest.java index 8e1cb155c..7de24e867 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/DefaultDeserializerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/DefaultDeserializerTest.java @@ -21,4 +21,4 @@ class DefaultDeserializerTest { void testDeserializeOnNull() throws IOException { assertNull(deserializer.deserialize(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/DeserializersTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/DeserializersTest.java index b2ced2e96..3e0fbe953 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/DeserializersTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/DeserializersTest.java @@ -17,7 +17,6 @@ package io.microsphere.io; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -96,4 +95,4 @@ void testGet() { assertNotNull(this.deserializers.getMostCompatible(String.class)); assertNotNull(this.deserializers.getMostCompatible(Object.class)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayInputStreamTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayInputStreamTest.java index 6e10eae5b..f3b85ca89 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayInputStreamTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayInputStreamTest.java @@ -137,4 +137,4 @@ void testEquals() { void testHashCode() { assertEquals(inputStream.hashCode(), inputStream2.hashCode()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayOutputStreamTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayOutputStreamTest.java index 75cd7a797..8a107b1db 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayOutputStreamTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/FastByteArrayOutputStreamTest.java @@ -116,4 +116,4 @@ void testClose() { void testAssertCapacityOnOutOfMemoryError() { assertThrows(OutOfMemoryError.class, () -> this.outputStream.assertCapacity(Integer.MAX_VALUE)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/FileUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/FileUtilsTest.java index 39c774ee4..fcf7fcea1 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/FileUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/FileUtilsTest.java @@ -377,4 +377,4 @@ File handleDirectoryOnIOException0(ThrowableConsumer directoryHandler) thr return testDir; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/FileWatchServiceTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/FileWatchServiceTest.java index 6d392e557..9c8a54537 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/FileWatchServiceTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/FileWatchServiceTest.java @@ -29,4 +29,4 @@ void testWatch() { service.watch(file, new LoggingFileChangedListener(), values()); service.watch(file, ofList(new LoggingFileChangedListener()), values()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/IOUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/IOUtilsTest.java index 19f9b80c6..f6e6532e8 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/IOUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/IOUtilsTest.java @@ -190,7 +190,6 @@ void testCopyToStringWithNullReader() throws IOException { assertNull(copyToString((Reader) null)); } - @Test void testCopy() throws IOException { FastByteArrayOutputStream outputStream = new FastByteArrayOutputStream(TEST_BYTES.length); @@ -215,4 +214,4 @@ void testCloseOnIOException() { throw new IOException("For testing"); }); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/SerializersTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/SerializersTest.java index 61abdcc1c..eaf6055a4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/SerializersTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/SerializersTest.java @@ -17,7 +17,6 @@ package io.microsphere.io; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -96,4 +95,4 @@ void testGet() { assertNotNull(this.serializers.getMostCompatible(String.class)); assertNotNull(this.serializers.getMostCompatible(Object.class)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/StringBuilderWriterTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/StringBuilderWriterTest.java index f910acef5..6ca100ddc 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/StringBuilderWriterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/StringBuilderWriterTest.java @@ -147,4 +147,4 @@ void testClose() { void testFlush() { writer.flush(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedEventTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedEventTest.java index 0ecb480cc..e66641b0e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedEventTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedEventTest.java @@ -34,4 +34,4 @@ void testOnFailed() { assertThrows(IllegalArgumentException.class, () -> new FileChangedEvent(new File(""), null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedListenerTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedListenerTest.java index c65fa3add..8c511c788 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedListenerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/event/FileChangedListenerTest.java @@ -101,4 +101,4 @@ private void testEvent(FileChangedListener listener, Kind kind) throws IOExcepti listener.onEvent(event); forceDelete(file); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/event/LoggingFileChangedListenerTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/event/LoggingFileChangedListenerTest.java index 574eee052..29efea5ed 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/event/LoggingFileChangedListenerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/event/LoggingFileChangedListenerTest.java @@ -17,7 +17,6 @@ package io.microsphere.io.event; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -72,4 +71,4 @@ void testOnFileDeleted() throws IOException { assertSame(file, event.getFile()); assertSame(DELETED, event.getKind()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/filter/DirectoryFileFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/filter/DirectoryFileFilterTest.java index 422bc5f41..367a1b969 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/filter/DirectoryFileFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/filter/DirectoryFileFilterTest.java @@ -41,4 +41,4 @@ void testAcceptOnFile() throws IOException { testFile.deleteOnExit(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/filter/FileExtensionFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/filter/FileExtensionFilterTest.java index 9f724957e..21f7f5f3f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/filter/FileExtensionFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/filter/FileExtensionFilterTest.java @@ -77,4 +77,4 @@ void testAcceptFilenameFilter() throws IOException { assertFalse(this.instance.accept(tmpDir, "file.xml")); testFile.deleteOnExit(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/filter/IOFileFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/filter/IOFileFilterTest.java index 73fa6bf49..d7a6b42f0 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/filter/IOFileFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/filter/IOFileFilterTest.java @@ -26,4 +26,4 @@ void tes() { assertTrue(filter.accept(file.getParentFile(), file.getName())); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/filter/NameFileFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/filter/NameFileFilterTest.java index b30f7c637..3c3529903 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/filter/NameFileFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/filter/NameFileFilterTest.java @@ -17,7 +17,6 @@ package io.microsphere.io.filter; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -67,4 +66,4 @@ void testAcceptOnIgnoreCaseSensitive() { filter = new NameFileFilter(FILE_NAME.toLowerCase(), false); assertTrue(filter.accept(this.file)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/filter/TrueFileFilterTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/filter/TrueFileFilterTest.java index 6af20b5b2..4d83cbd98 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/filter/TrueFileFilterTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/filter/TrueFileFilterTest.java @@ -19,4 +19,4 @@ void test() { assertTrue(INSTANCE.accept(null)); assertTrue(INSTANCE.accept(null, null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleClassScannerTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleClassScannerTest.java index ba92570a5..fd6ad53e1 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleClassScannerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleClassScannerTest.java @@ -56,4 +56,4 @@ void testScanInArchive() { classesSet = simpleClassScanner.scan(TEST_CLASS_LOADER, nonnullClassResource, true); assertFalse(classesSet.isEmpty()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleFileScannerTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleFileScannerTest.java index 9c84641a2..ca3c2eb3c 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleFileScannerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleFileScannerTest.java @@ -68,4 +68,4 @@ void testScanOnFile() throws IOException { assertEquals(1, files.size()); assertTrue(files.contains(file)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleJarEntryScannerTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleJarEntryScannerTest.java index 6bc50d44e..7a60a004f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleJarEntryScannerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/scanner/SimpleJarEntryScannerTest.java @@ -43,7 +43,6 @@ void testScanInJarURL() throws IOException { assertEquals(5, jarEntrySet.size()); } - @Test void testScanInJarFile() throws IOException { URL resourceURL = getClassResource(classLoader, Nonnull.class); diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONArrayTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONArrayTest.java index c1b36ae30..811dd8298 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONArrayTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONArrayTest.java @@ -17,7 +17,6 @@ package io.microsphere.json; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -508,4 +507,4 @@ void testOptStringWithFallback() { assertEquals("default", jsonArray.optString(1, "default")); assertEquals("default", jsonArray.optString(-1, "default")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONObjectTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONObjectTest.java index 65d9c398c..d949efa37 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONObjectTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONObjectTest.java @@ -17,7 +17,6 @@ package io.microsphere.json; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -298,7 +297,6 @@ void testGetJSONObjectOnNotFound() throws JSONException { assertThrows(JSONException.class, () -> jsonObject.getJSONObject("value")); } - @Test void testOpt() throws JSONException { jsonObject.put("name", "Mercy"); @@ -340,7 +338,6 @@ void testOptString() throws JSONException { assertEquals("", jsonObject.optString("name1")); } - @Test void testOptJSONArray() throws JSONException { JSONArray jsonArray = new JSONArray(); @@ -349,7 +346,6 @@ void testOptJSONArray() throws JSONException { assertNull(this.jsonObject.optJSONArray("value1")); } - @Test void testOptJSONObject() throws JSONException { JSONObject jsonObject = new JSONObject(); @@ -381,7 +377,6 @@ void testToJSONArrayOnEmptyJSONArray() { assertNull(jsonObject.toJSONArray(new JSONArray())); } - @Test void testKeys() throws JSONException { long time = currentTimeMillis(); @@ -592,4 +587,4 @@ void testWriteTo() throws JSONException { void assertWrap(Object object) { assertEquals(object, wrap(object)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONStringerTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONStringerTest.java index 8d87c868c..904f44e99 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONStringerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONStringerTest.java @@ -17,7 +17,6 @@ package io.microsphere.json; - import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -217,4 +216,4 @@ void testBeforeValueOnJSONException() throws JSONException { void testToString() { assertNull(jsonStringer.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONTest.java index bec552aaf..133ed7298 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONTest.java @@ -17,7 +17,6 @@ package io.microsphere.json; - import org.junit.jupiter.api.Test; import static io.microsphere.AbstractTestCase.random; @@ -115,4 +114,4 @@ void testTypeMismatchOnActualNull() { assertThrows(JSONException.class, () -> typeMismatch(null, "String")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONTokenerTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONTokenerTest.java index 241e1e3d1..e8ea4ef44 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONTokenerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONTokenerTest.java @@ -17,7 +17,6 @@ package io.microsphere.json; - import org.junit.jupiter.api.Test; import static io.microsphere.json.JSONObject.NULL; @@ -134,7 +133,6 @@ void testReadArray() throws Throwable { assertEquals("name", jsonArray.getString(0)); assertEquals("age", jsonArray.getString(1)); - jsonTokener = new JSONTokener(" \"name\" ; \"age\" ; \"gender\" ]"); jsonArray = jsonTokener.readArray(); assertEquals(3, jsonArray.length()); @@ -200,7 +198,6 @@ void testNextString() { JSONTokener jsonTokener = new JSONTokener(""); } - @Test void testNextStringOnSyntaxError() { assertThrows(JSONException.class, () -> new JSONTokener("").nextString('\'')); @@ -420,4 +417,4 @@ void testDehexchar() { assertEquals(-1, dehexchar('#')); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONUtilsTest.java index ce0e2bb29..0d0ede12f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.json; - import io.microsphere.beans.ConfigurationProperty; import io.microsphere.collection.CollectionUtils; import io.microsphere.test.A; @@ -531,7 +530,6 @@ void testJsonArrayOnInvalidContent() { assertThrows(IllegalArgumentException.class, () -> jsonArray("[1,2,3")); } - @Test void testReadValueWithMap() { Data data = createData(); @@ -840,4 +838,4 @@ Data createData() { return data; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/ClassDataRepositoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/ClassDataRepositoryTest.java index 5d43226a0..c6b22334d 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/ClassDataRepositoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/ClassDataRepositoryTest.java @@ -110,4 +110,4 @@ void testGetAllClassNamesInClassPath() { assertFalse(allClassNames.isEmpty()); assertThrows(UnsupportedOperationException.class, allClassNames::clear); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/DeprecationTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/DeprecationTest.java index 6adf34180..e8a4dc8db 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/DeprecationTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/DeprecationTest.java @@ -82,7 +82,6 @@ void test() { assertEquals(deprecation.hashCode(), new Deprecation(deprecation).hashCode()); assertNotEquals(of(SINCE, REPLACEMENT, REASON, LINK + ".git"), deprecation); - deprecation = of(SINCE, REPLACEMENT, REASON); assertObjectMethods(deprecation); assertEquals(Version.of(SINCE), deprecation.getSince()); @@ -95,7 +94,6 @@ void test() { assertEquals(deprecation.hashCode(), new Deprecation(deprecation).hashCode()); assertNotEquals(of(SINCE, REPLACEMENT, "Reason"), deprecation); - deprecation = of(SINCE, REPLACEMENT); assertObjectMethods(deprecation); assertEquals(Version.of(SINCE), deprecation.getSince()); @@ -108,7 +106,6 @@ void test() { assertEquals(deprecation.hashCode(), new Deprecation(deprecation).hashCode()); assertNotEquals(of(SINCE, "Replacement"), deprecation); - deprecation = of(SINCE); assertObjectMethods(deprecation); assertEquals(Version.of(SINCE), deprecation.getSince()); diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/MutableIntegerTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/MutableIntegerTest.java index b3b208641..a19cc1219 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/MutableIntegerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/MutableIntegerTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang; - import org.junit.jupiter.api.Test; import static io.microsphere.lang.MutableInteger.of; @@ -169,4 +168,4 @@ void testEqualsWithSelf() { MutableInteger a = of(10); assertTrue(a.equals(a)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/PrioritizedTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/PrioritizedTest.java index 8287b3a21..c66768d4c 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/PrioritizedTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/PrioritizedTest.java @@ -72,4 +72,4 @@ void testComparator() { assertEquals(0, COMPARATOR.compare("prioritized", null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/function/StreamsTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/function/StreamsTest.java index 270b0763c..1754a12cc 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/function/StreamsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/function/StreamsTest.java @@ -16,7 +16,6 @@ */ package io.microsphere.lang.function; - import org.junit.jupiter.api.Test; import java.util.List; diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableBiConsumerTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableBiConsumerTest.java index 13463dca8..b5c08576a 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableBiConsumerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableBiConsumerTest.java @@ -46,4 +46,4 @@ void testAndThen() throws Throwable { log("andThen -> The String is : {}, the Integer is : {}", s, i); }).accept("Mercy", 1); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableConsumerTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableConsumerTest.java index f56f7e1d8..c024df3b6 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableConsumerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableConsumerTest.java @@ -76,4 +76,4 @@ void testExecute3OnException() { throw new RuntimeException(t, e); })); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/logging/ACLLoggerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/logging/ACLLoggerFactoryTest.java index fa4341c83..09756d374 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/logging/ACLLoggerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/logging/ACLLoggerFactoryTest.java @@ -13,4 +13,4 @@ class ACLLoggerFactoryTest extends AbstractLoggerTest { protected Logger createLogger() { return new ACLLoggerFactory().createLogger(ACLLoggerFactory.class.getName()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/logging/JDKLoggerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/logging/JDKLoggerFactoryTest.java index 2fe174193..142256be4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/logging/JDKLoggerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/logging/JDKLoggerFactoryTest.java @@ -28,4 +28,4 @@ static void beforeAll() throws IOException { protected Logger createLogger() { return new JDKLoggerFactory().createLogger(JDKLoggerFactoryTest.class.getName()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerFactoryTest.java index 9f038a71a..15299e60a 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerFactoryTest.java @@ -56,4 +56,4 @@ void testCreateLogger() { logger = factory.createLogger(null); assertEquals("", logger.getName()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerTest.java b/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerTest.java index eed348a1f..f6083dbbd 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/logging/NoOpLoggerTest.java @@ -13,4 +13,4 @@ class NoOpLoggerTest extends AbstractLoggerTest { protected Logger createLogger() { return new NoOpLogger("No-OP"); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/logging/Sfl4jLoggerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/logging/Sfl4jLoggerFactoryTest.java index 16502dca6..4f9f699aa 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/logging/Sfl4jLoggerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/logging/Sfl4jLoggerFactoryTest.java @@ -13,4 +13,4 @@ class Sfl4jLoggerFactoryTest extends AbstractLoggerTest { protected Logger createLogger() { return new Sfl4jLoggerFactory().createLogger(Sfl4jLoggerFactoryTest.class.getName()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/CacheControl.java b/microsphere-java-core/src/test/java/io/microsphere/management/CacheControl.java index 99ad1b723..cd4a5aa19 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/CacheControl.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/CacheControl.java @@ -40,4 +40,4 @@ public long getCacheSize() { public void setCacheSize(long cacheSize) { this.cacheSize = cacheSize; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/CacheControlMBean.java b/microsphere-java-core/src/test/java/io/microsphere/management/CacheControlMBean.java index 6e8b7ecb1..c9cbc481f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/CacheControlMBean.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/CacheControlMBean.java @@ -30,4 +30,4 @@ public interface CacheControlMBean { long getCacheSize(); void setCacheSize(@Units("bytes") long cacheSize); -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/MBeanAttributeTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/MBeanAttributeTest.java index 9180e3a11..3404051fb 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/MBeanAttributeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/MBeanAttributeTest.java @@ -94,4 +94,4 @@ private void forEach(Consumer mBeanAttributeConsumer) { mBeanAttributeConsumer.accept(mBeanAttribute); } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/ManagementUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/ManagementUtilsTest.java index f0fe200af..727401436 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/ManagementUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/ManagementUtilsTest.java @@ -22,4 +22,4 @@ void testGetCurrentProcessId() { assertTrue(processId > 0); assertEquals(currentProcessId, getCurrentProcessId()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanAttributeInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanAttributeInfoBuilderTest.java index 24aa84965..92a674435 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanAttributeInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanAttributeInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - import org.junit.jupiter.api.Test; import javax.management.MBeanAttributeInfo; @@ -64,4 +63,4 @@ void testBuild() { assertTrue(info.isWritable()); assertTrue(info.isIs()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanConstructorInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanConstructorInfoBuilderTest.java index cfb27e808..025d1126e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanConstructorInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanConstructorInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - import org.junit.jupiter.api.Test; import javax.management.MBeanConstructorInfo; @@ -67,4 +66,4 @@ void assertMBeanConstructorInfoBuilder(MBeanConstructorInfo info, Constructor MBeanParameterInfo parameterInfo = signature[0]; assertEquals("arg0", parameterInfo.getName()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanFeatureInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanFeatureInfoBuilderTest.java index 34eefb29a..65be23515 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanFeatureInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanFeatureInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - /** * {@link MBeanFeatureInfoBuilder} Test * @@ -26,4 +25,4 @@ * @since 1.0.0 */ class MBeanFeatureInfoBuilderTest extends AbstractMBeanFeatureInfoBuilderTest { -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanInfoBuilderTest.java index bfd1472cb..b6329bd9e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - import io.microsphere.beans.BeanMetadata; import io.microsphere.test.Data; import org.junit.jupiter.api.Test; @@ -259,4 +258,4 @@ private void assertOperation(MBeanInfoBuilder builder, Integer index, MethodDesc assertEquals(getTypeName(returnType), operationInfoBuilder.returnType); assertEquals(method.toString(), operationInfoBuilder.description); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanNotificationInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanNotificationInfoBuilderTest.java index 689d97782..65d64b354 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanNotificationInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanNotificationInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - import org.junit.jupiter.api.Test; import javax.management.MBeanNotificationInfo; @@ -79,4 +78,4 @@ void assertNotification(MBeanNotificationInfoBuilder builder, String... classNam assertArrayEquals(classNames, info.getNotifTypes()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanOperationInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanOperationInfoBuilderTest.java index dca5272aa..323556302 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanOperationInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanOperationInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - import io.microsphere.management.CacheControlMBean; import org.junit.jupiter.api.Test; @@ -80,4 +79,4 @@ void testParam() { assertEquals(TEST_NAME, info.getName()); assertEquals(TEST_DESCRIPTION, info.getDescription()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanParameterInfoBuilderTest.java b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanParameterInfoBuilderTest.java index 0d95c2b37..9ec44cb60 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanParameterInfoBuilderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/management/builder/MBeanParameterInfoBuilderTest.java @@ -17,7 +17,6 @@ package io.microsphere.management.builder; - import javax.management.MBeanParameterInfo; import static io.microsphere.management.builder.MBeanParameterInfoBuilder.parameter; @@ -42,4 +41,4 @@ void testBuild() { MBeanParameterInfo info = this.builder.build(); assertEquals(String.class.getName(), info.getType()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/AdditionalMetadataResourceConfigurationPropertyLoaderTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/AdditionalMetadataResourceConfigurationPropertyLoaderTest.java index cf58c79b5..85301b2f1 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/AdditionalMetadataResourceConfigurationPropertyLoaderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/AdditionalMetadataResourceConfigurationPropertyLoaderTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -53,4 +52,4 @@ void testLoad() throws Throwable { void testGetPriority() { assertEquals(MIN_PRIORITY + 9, configurationPropertyLoader.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/ClassPathResourceConfigurationPropertyLoaderTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/ClassPathResourceConfigurationPropertyLoaderTest.java index bf8126a28..150ff64ec 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/ClassPathResourceConfigurationPropertyLoaderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/ClassPathResourceConfigurationPropertyLoaderTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.LoggingTest; import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.Test; @@ -53,7 +52,6 @@ void testLoadWithClassLoader() throws Throwable { assertConfigurationProperties(loader); } - @Test void testLoadWithAllResources() throws Throwable { ClassPathResourceConfigurationPropertyLoader loader = new ClassPathResourceConfigurationPropertyLoader(ADDITIONAL_CONFIGURATION_PROPERTY_METADATA_RESOURCE, true) { @@ -96,4 +94,4 @@ void assertConfigurationProperties(ClassPathResourceConfigurationPropertyLoader List configurationProperties = loader.load(); assertEquals(2, configurationProperties.size()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertiesJSONReaderTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertiesJSONReaderTest.java index b1c5b4966..3d6088cf8 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertiesJSONReaderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertiesJSONReaderTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -54,4 +53,4 @@ void testLoad() throws Throwable { assertEquals(7, configurationProperties.size()); } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertyLoaderTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertyLoaderTest.java index d1cf7253c..af6bcd4e7 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertyLoaderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/ConfigurationPropertyLoaderTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.Test; @@ -52,4 +51,4 @@ void testLoadAll() { ConfigurationProperty newConfigurationProperty() { return new ConfigurationProperty(MICROSPHERE_PROPERTY_NAME_PREFIX + "test"); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyGeneratorTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyGeneratorTest.java index f9aa56deb..72431b982 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyGeneratorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyGeneratorTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import io.microsphere.beans.ConfigurationProperty.Metadata; import io.microsphere.json.JSONArray; @@ -144,4 +143,4 @@ void testGetPriority() { int priority = generator.getPriority(); assertEquals(MIN_PRIORITY, priority); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyReaderTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyReaderTest.java index 613fc8832..bc4593d3c 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyReaderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/DefaultConfigurationPropertyReaderTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -59,4 +58,4 @@ void testRead() throws Throwable { void testGetPriority() { assertEquals(MIN_PRIORITY, configurationPropertyReader.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/MetadataResourceConfigurationPropertyLoaderTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/MetadataResourceConfigurationPropertyLoaderTest.java index 9b2a9be5c..b93368c7f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/MetadataResourceConfigurationPropertyLoaderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/MetadataResourceConfigurationPropertyLoaderTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -53,4 +52,4 @@ void testLoad() throws Throwable { void testGetPriority() { assertEquals(MIN_PRIORITY, configurationPropertyLoader.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/metadata/ReflectiveConfigurationPropertyGeneratorTest.java b/microsphere-java-core/src/test/java/io/microsphere/metadata/ReflectiveConfigurationPropertyGeneratorTest.java index 2bd82b7ef..8d2dd0ddf 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/metadata/ReflectiveConfigurationPropertyGeneratorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/metadata/ReflectiveConfigurationPropertyGeneratorTest.java @@ -17,7 +17,6 @@ package io.microsphere.metadata; - import io.microsphere.beans.ConfigurationProperty; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -55,4 +54,4 @@ void testGetPriority() { int priority = generator.getPriority(); assertEquals(NORMAL_PRIORITY, priority); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactoryTest.java index 57ae3eaf8..d36e8723e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/CompositeSubProtocolURLConnectionFactoryTest.java @@ -93,4 +93,4 @@ void testSupports() throws MalformedURLException { composite.addInternal(factory); assertFalse(composite.supports(url, ofList("test"))); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/CompositeURLStreamHandlerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/CompositeURLStreamHandlerFactoryTest.java index 4eb7e94d5..c7963e4fe 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/CompositeURLStreamHandlerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/CompositeURLStreamHandlerFactoryTest.java @@ -74,4 +74,4 @@ void testGetComparator() { void testTestToString() { assertNotNull(compositeFactory.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/DelegatingURLStreamHandlerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/DelegatingURLStreamHandlerFactoryTest.java index fef97a0ef..53f781b80 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/DelegatingURLStreamHandlerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/DelegatingURLStreamHandlerFactoryTest.java @@ -41,4 +41,4 @@ void testCreateURLStreamHandler() { void testGetDelegate() { assertSame(this.delegate, this.factory.getDelegate()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/FalseSubProtocolURLConnectionFactory.java b/microsphere-java-core/src/test/java/io/microsphere/net/FalseSubProtocolURLConnectionFactory.java index aa0777789..974088801 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/FalseSubProtocolURLConnectionFactory.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/FalseSubProtocolURLConnectionFactory.java @@ -41,4 +41,4 @@ public boolean supports(URL url, List subProtocols) { public URLConnection create(URL url, List subProtocols, Proxy proxy) throws IOException { return null; } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/MutableURLStreamHandlerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/MutableURLStreamHandlerFactoryTest.java index fbf9da786..14772596e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/MutableURLStreamHandlerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/MutableURLStreamHandlerFactoryTest.java @@ -122,4 +122,4 @@ protected void assertURLStreamHandler(ExtendableProtocolURLStreamHandler handler assertSame(factory, factory.clearHandlers()); } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/StandardURLStreamHandlerFactoryTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/StandardURLStreamHandlerFactoryTest.java index a75c25ff3..c6fbc29cb 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/StandardURLStreamHandlerFactoryTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/StandardURLStreamHandlerFactoryTest.java @@ -17,7 +17,6 @@ package io.microsphere.net; - import io.microsphere.LoggingTest; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -45,4 +44,4 @@ void testCreateURLStreamHandler() { assertNotNull(this.factory.createURLStreamHandler("file")); assertNotNull(this.factory.createURLStreamHandler(null, "file")); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/URLUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/URLUtilsTest.java index eaeaedde4..3aebfe601 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/URLUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/URLUtilsTest.java @@ -279,7 +279,6 @@ void testNormalizePath() { resolvedPath = normalizePath(path); assertEquals(expectedPath, resolvedPath); - path = "//\\abc///"; expectedPath = "/abc/"; resolvedPath = normalizePath(path); @@ -538,7 +537,6 @@ void testResolveProtocol() { assertEquals(HTTP_PROTOCOL, resolveProtocol("http://...")); } - @Test void testResolvePath() { assertResolvePath(userDirURL); diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/console/ConsoleURLConnectionTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/console/ConsoleURLConnectionTest.java index fcc0eb3a4..ba661dbfd 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/console/ConsoleURLConnectionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/console/ConsoleURLConnectionTest.java @@ -40,4 +40,4 @@ void testGetInputStream() throws IOException { void testGetOutputStream() throws IOException { assertSame(System.out, connection.getOutputStream()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/nio/charset/CharsetUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/nio/charset/CharsetUtilsTest.java index e9cc1d16b..79e22f602 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/nio/charset/CharsetUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/nio/charset/CharsetUtilsTest.java @@ -19,4 +19,4 @@ void testConstants() { assertNotNull(DEFAULT_CHARSET); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/process/ClassicProcessIdResolverTest.java b/microsphere-java-core/src/test/java/io/microsphere/process/ClassicProcessIdResolverTest.java index 4d4acb7a2..47bd9a517 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/process/ClassicProcessIdResolverTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/process/ClassicProcessIdResolverTest.java @@ -38,4 +38,4 @@ void testCurrent() { void testGetPriority() { assertEquals(9, resolver.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/process/ModernProcessIdResolverTest.java b/microsphere-java-core/src/test/java/io/microsphere/process/ModernProcessIdResolverTest.java index 8a82333e0..b1064fa36 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/process/ModernProcessIdResolverTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/process/ModernProcessIdResolverTest.java @@ -47,4 +47,4 @@ void testCurrent() { void testGetPriority() { assertEquals(1, resolver.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/process/ProcessExecutorTest.java b/microsphere-java-core/src/test/java/io/microsphere/process/ProcessExecutorTest.java index 1c9f0ecbb..eab37158b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/process/ProcessExecutorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/process/ProcessExecutorTest.java @@ -62,4 +62,4 @@ void testExecuteOnNotFoundCommand() { ProcessExecutor processExecutor = new ProcessExecutor("not-found-command"); assertThrows(IOException.class, () -> processExecutor.execute(this.outputStream)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/process/ProcessManagerTest.java b/microsphere-java-core/src/test/java/io/microsphere/process/ProcessManagerTest.java index 7ad4cfbb1..fcbe0dd1b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/process/ProcessManagerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/process/ProcessManagerTest.java @@ -59,4 +59,4 @@ void test() { log(response); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/process/VirtualMachineProcessIdResolverTest.java b/microsphere-java-core/src/test/java/io/microsphere/process/VirtualMachineProcessIdResolverTest.java index c80f8828e..1ed35f120 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/process/VirtualMachineProcessIdResolverTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/process/VirtualMachineProcessIdResolverTest.java @@ -38,4 +38,4 @@ void testCurrent() { void testGetPriority() { assertEquals(5, resolver.getPriority()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/AbstractReflectiveDefinitionTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/AbstractReflectiveDefinitionTest.java index fe20c3c4f..1dd0bd23d 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/AbstractReflectiveDefinitionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/AbstractReflectiveDefinitionTest.java @@ -149,4 +149,4 @@ void testToString() { assertNotEquals(definitions.get(0).toString(), definitions.get(2).toString()); assertNotEquals(definitions.get(0).toString(), definitions.get(4).toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/AccessibleObjectUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/AccessibleObjectUtilsTest.java index 1819ef404..ecc96db15 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/AccessibleObjectUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/AccessibleObjectUtilsTest.java @@ -122,4 +122,4 @@ void testTryCanAccessOnFailed() { void testHandleInaccessibleObjectExceptionIfFound() { assertDoesNotThrow(() -> handleInaccessibleObjectExceptionIfFound(new RuntimeException("For testing"))); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/ConstructorDefinitionTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/ConstructorDefinitionTest.java index 83a9b9ae5..8b5fad11e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/ConstructorDefinitionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/ConstructorDefinitionTest.java @@ -52,4 +52,4 @@ public TestData(String name) { } } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForClass.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForClass.java index a99f1454d..5e1d8c93e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForClass.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForClass.java @@ -93,7 +93,6 @@ private void testC() { assertArrayEquals(ofArray(from(String.class, CLASS, cType)), cType.getGenericTypes()); } - private void testB() { JavaType bType = javaType.as(B.class); @@ -114,7 +113,6 @@ private void testB() { assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, bType.getGenericTypes()); } - private void testA() { JavaType aType = javaType.as(A.class); diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForParameterizedType.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForParameterizedType.java index 7fd66bd92..77537871b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForParameterizedType.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForParameterizedType.java @@ -93,7 +93,6 @@ private void testB() { assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, bType.getGenericTypes()); } - private void testA() { JavaType aType = javaType.as(A.class); diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/MemberUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/MemberUtilsTest.java index c2af07786..2568e6261 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/MemberUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/MemberUtilsTest.java @@ -75,7 +75,6 @@ void testIsStaticOnNull() { assertFalse(isStatic(null)); } - @Test void testIsAbstract() { assertTrue(isAbstract(findMethod(Map.class, "size"))); @@ -182,4 +181,4 @@ void testAsMemberOnNotMember() { void testAsMemberOnNull() { assertNull(asMember(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/MethodUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/MethodUtilsTest.java index ccc6bede2..11bfa33fa 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/MethodUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/MethodUtilsTest.java @@ -523,7 +523,6 @@ void testOverridesOnDefaultMethod() { assertFalse(overrides(compareToMethod1, compareToMethod2)); } - @Test void testOverridesOnSameDeclaringClass() { Method waitMethod1 = findMethod(Object.class, "wait"); diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/ModifierTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/ModifierTest.java index c7bee110d..91d23f87b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/ModifierTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/ModifierTest.java @@ -200,5 +200,4 @@ private int findModifierValue(String name) { return getStaticFieldValue(java.lang.reflect.Modifier.class, name); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/MultipleTypeTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/MultipleTypeTest.java index 94bab70b8..6ee189af7 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/MultipleTypeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/MultipleTypeTest.java @@ -43,4 +43,4 @@ void testEquals() { void testToString() { assertEquals("MultipleType : [class java.lang.String, class java.lang.Object]", this.multipleType.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionUtilsTest.java index 0d639d66c..3bda7aca5 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionUtilsTest.java @@ -104,7 +104,6 @@ void testToList() { Object expectedList = asList(1, 2, 3, 4, 5, 6, 7, 8, 9); assertEquals(expectedList, list); - int[][] intIntArray = new int[][]{{1, 2, 3}, {4, 5, 6,}, {7, 8, 9}}; list = toList(intIntArray); expectedList = asList(asList(1, 2, 3), asList(4, 5, 6), asList(7, 8, 9)); diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectiveDefinitionTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectiveDefinitionTest.java index 7a4fdc020..cd66edaae 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectiveDefinitionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectiveDefinitionTest.java @@ -17,7 +17,6 @@ package io.microsphere.reflect; - import org.junit.jupiter.api.Test; import java.util.List; @@ -49,4 +48,4 @@ void testEquals() { ReflectiveDefinitionImpl df2 = new ReflectiveDefinitionImpl(SINCE, DEPRECATION, "df2"); assertNotEquals(df1, df2); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/TypeUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/TypeUtilsTest.java index 13f8a4502..33df90a17 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/TypeUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/TypeUtilsTest.java @@ -172,7 +172,6 @@ void testIsObjectClassOnNotObjectClass() { assertFalse(isObjectClass(String.class)); } - @Test void testIsObjectType() { assertTrue(isObjectType(Object.class)); @@ -397,7 +396,6 @@ void testGetAllGenericSuperclasses() { assertEGenericSuperclasses(types); } - @Test void testGetAllGenericInterfaces() { List types = getAllGenericInterfaces(A.class); @@ -519,7 +517,6 @@ void testGetAllTypes() { assertTrue(types.contains(RandomAccess.class)); } - @Test void testFindAllGenericSuperclasses() { List types = findAllGenericSuperclasses(E.class); @@ -529,7 +526,6 @@ void testFindAllGenericSuperclasses() { assertTrue(types.contains(C.class)); assertTrue(types.contains(Object.class)); - types = findAllGenericSuperclasses(D.class); assertEquals(4, types.size()); @@ -652,7 +648,6 @@ void testFindHierarchicalTypes() { assertTrue(types.isEmpty()); } - @Test void testFindAllTypes() { List types = findAllTypes(D.class, TypeUtils::isParameterizedType); @@ -780,7 +775,6 @@ void testDoResolveActualTypeArguments() { actualTypeArguments = doResolveActualTypeArguments(StringIntegerBooleanHashMap.class, Map.class); assertValues(actualTypeArguments, String.class, Integer.class); - actualTypeArguments = doResolveActualTypeArguments(StringToStringConverter.class, Converter.class); assertValues(actualTypeArguments, String.class, String.class); @@ -1093,4 +1087,4 @@ private void assertEGenericInterfaces(List types) { assertDGenericInterfaces(types); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/ParameterizedTypeImplTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/ParameterizedTypeImplTest.java index 4049e5c91..be4af7dc0 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/ParameterizedTypeImplTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/ParameterizedTypeImplTest.java @@ -146,4 +146,4 @@ void testToStringOnDifferentType() { void testToString() { assertEquals("java.lang.String", of(String.class).toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/TypeArgumentTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/TypeArgumentTest.java index 28d388416..bfb50952e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/TypeArgumentTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/generics/TypeArgumentTest.java @@ -78,4 +78,4 @@ void testCreateOnIllegalArgumentException() { assertThrows(IllegalArgumentException.class, () -> create(null, 0)); assertThrows(IllegalArgumentException.class, () -> create(String.class, -1)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/security/SecurityUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/security/SecurityUtilsTest.java index 3ac8ddb6e..1b8dde17c 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/security/SecurityUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/security/SecurityUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.security; - import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; @@ -70,4 +69,4 @@ void testJavaSecurityPolicyFile() { setJavaSecurityPolicyFile(policyFile); assertEquals(policyFile.getAbsolutePath(), getJavaSecurityPolicyFile()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/AnnotationUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/AnnotationUtilsTest.java index 64a1b00b6..2287b5940 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/AnnotationUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/AnnotationUtilsTest.java @@ -119,7 +119,6 @@ class AnnotationUtilsTest { private static final DataAccess dataAccessOfB = B.class.getAnnotation(DataAccess.class); - @Test void testNATIVE_ANNOTATION_TYPES() { assertEquals(6, NATIVE_ANNOTATION_TYPES.size()); @@ -622,7 +621,6 @@ void testIsAnnotationInterfaceMethod() { assertFalse(isAnnotationInterfaceMethod(targetValueMethod)); } - @Test void testIsCallerSensitivePresent() { assertEquals(isPresent(CALLER_SENSITIVE_ANNOTATION_CLASS_NAME), isCallerSensitivePresent()); @@ -714,5 +712,3 @@ class B extends A { } } - - diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ArrayUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ArrayUtilsTest.java index 202159e11..4b409c5a9 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ArrayUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ArrayUtilsTest.java @@ -1149,4 +1149,4 @@ private void assertEmptyArray(E[] array, Class expectedComponentType) { assertEquals(0, array.length); assertEquals(expectedComponentType, getTopComponentType(array)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/AssertTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/AssertTest.java index 510262ab9..68888a967 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/AssertTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/AssertTest.java @@ -41,7 +41,6 @@ import static java.util.Collections.emptyMap; import static org.junit.jupiter.api.Assertions.assertThrows; - /** * {@link Assert} Test * @@ -165,7 +164,6 @@ void testAssertArrayNoNullElements() { assertNoNullElements(array, () -> "array"); assertNoNullElements(array, (Supplier) null); - assertNoNullElements(TEST_NULL_OBJECT_ARRAY, "null"); assertNoNullElements(TEST_NULL_OBJECT_ARRAY, () -> "null"); assertNoNullElements(TEST_NULL_OBJECT_ARRAY, (Supplier) null); @@ -190,7 +188,6 @@ void testAssertIterableNoNullElements() { assertNoNullElements(collection, () -> "collection"); assertNoNullElements(collection, (Supplier) null); - assertNoNullElements((Collection) null, "null"); assertNoNullElements((Collection) null, () -> "null"); assertNoNullElements((Collection) null, (Supplier) null); @@ -208,7 +205,6 @@ void testAssertIterableNoNullElements() { assertThrows(IllegalArgumentException.class, () -> assertNoNullElements(collectionWithNull, (Supplier) null)); } - @Test void testAssertArrayIndex() { int size = 10; @@ -236,7 +232,6 @@ void testAssertArrayIndexOnArrayIndexOutOfBoundsException() { } } - @Test void testAssertArrayType() { testAssertArrayType(long.class); diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/BaseUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/BaseUtilsTest.java index 496e28ba3..5197b136e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/BaseUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/BaseUtilsTest.java @@ -19,4 +19,4 @@ void testConstructor() { }); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/CharSequenceUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/CharSequenceUtilsTest.java index 69c1f9737..577510739 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/CharSequenceUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/CharSequenceUtilsTest.java @@ -76,4 +76,4 @@ void testTrimAllWhitespace() { assertEquals("helloworld", trimAllWhitespace("hello\tworld").toString()); assertEquals("helloworld", trimAllWhitespace("helloworld").toString()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ClassLoaderUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ClassLoaderUtilsTest.java index 4dc89ec3e..0d2e5bd75 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ClassLoaderUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ClassLoaderUtilsTest.java @@ -749,7 +749,6 @@ private void assertFindURLClassLoader(ClassLoader classLoader, ClassLoader expec private static class TestClassLoader extends ClassLoader { } - private static class ClassComparator implements Comparator> { @Override diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ClassPathUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ClassPathUtilsTest.java index 57fce58ce..fa21db4d4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ClassPathUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ClassPathUtilsTest.java @@ -76,7 +76,6 @@ void testGetRuntimeClassLocation() { location = getRuntimeClassLocation(predicate.getClass()); assertNull(location); - Set classNames = INSTANCE.getAllClassNamesInClassPaths(); for (String className : classNames) { if (!isLoadedClass(TEST_CLASS_LOADER, className)) { diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ClassUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ClassUtilsTest.java index 58422e212..782789ab6 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ClassUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ClassUtilsTest.java @@ -168,7 +168,6 @@ void testIsConcreteClass() { assertFalse(isConcreteClass(Object[].class)); } - @Test void testIsAbstractClass() { // test null @@ -527,7 +526,6 @@ void testFindClassNamesInClassPathWithFilePath() throws Exception { assertTrue(findClassNamesInClassPath(tempFile, true).isEmpty()); assertTrue(findClassNamesInClassPath(tempFile, false).isEmpty()); - File link = makeLinkFile(tempFile); assertTrue(findClassNamesInClassPath(link, false).isEmpty()); } @@ -974,4 +972,4 @@ private void assertFindClassNamesInClassPath(URL location) { Set classNamesInClassPath = findClassNamesInClassPath(path, true); assertFalse(classNamesInClassPath.isEmpty()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ExceptionUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ExceptionUtilsTest.java index 1bb91a0fc..afff3f928 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ExceptionUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ExceptionUtilsTest.java @@ -76,7 +76,6 @@ void testCreateWithTypeAndMessage() { assertCreate(RuntimeException.class, "Hello,World"); } - @Test void testCreateWithTypeAndCause() { assertCreate(RuntimeException.class, new NullPointerException()); @@ -167,4 +166,4 @@ private void assertCreate(Class throwableClass, Throwab assertEquals(cause, t.getCause()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/HierarchicalClassComparatorTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/HierarchicalClassComparatorTest.java index 5b7c82930..3bb1258b3 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/HierarchicalClassComparatorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/HierarchicalClassComparatorTest.java @@ -17,7 +17,6 @@ package io.microsphere.util; - import org.junit.jupiter.api.Test; import java.util.Comparator; @@ -52,4 +51,4 @@ void testCompareOrderByDescent() { assertEquals(0, descent.compare(String.class, String.class)); assertEquals(-1, descent.compare(String.class, CharSequence.class)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/IterableUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/IterableUtilsTest.java index 35292e205..b7230d5c0 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/IterableUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/IterableUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.util; - import org.junit.jupiter.api.Test; import java.util.Collection; @@ -93,4 +92,4 @@ public void testForEachWithNullElements() { forEach(null, i -> { }); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ObjectUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ObjectUtilsTest.java index c0f0154b9..3f3769e26 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ObjectUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ObjectUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.util; - import org.junit.jupiter.api.Test; import static io.microsphere.util.ObjectUtils.defaultIfNull; @@ -41,11 +40,10 @@ void testNullSafe() { assertNull(nullSafe(null, String::length)); } - @Test void testDefaultIfNull() { assertEquals("default", defaultIfNull(null, () -> "default")); assertEquals("value", defaultIfNull("value", () -> "default")); assertNull(defaultIfNull(null, () -> null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ResourceTypeTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ResourceTypeTest.java index c801f7806..37ca79a38 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ResourceTypeTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ResourceTypeTest.java @@ -46,7 +46,6 @@ CLASS, ofArray("java.lang.String.class", "java/lang/String.class"), PACKAGE, ofArray("java.lang", "java/lang/") ); - @Test void testSupports() { assertTrue(DEFAULT.supports(null)); diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookCallbacksThreadTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookCallbacksThreadTest.java index 36a25dd7b..6f302a988 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookCallbacksThreadTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookCallbacksThreadTest.java @@ -27,4 +27,4 @@ void testRun() { thread.run(); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookUtilsTest.java index ce79b62fd..9e7d9fe37 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ShutdownHookUtilsTest.java @@ -155,4 +155,4 @@ public void run() { void testShutdownHookThreadsMapWithNullClass() { assertSame(emptyMap(), shutdownHookThreadsMap(null)); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/StackTraceUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/StackTraceUtilsTest.java index 12fb90663..ea02d8489 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/StackTraceUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/StackTraceUtilsTest.java @@ -43,4 +43,4 @@ void testGetCallerClassInStatckTraceWithFrame() { void testGetStackTrace() { assertNotNull(getStackTrace()); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/StopWatchTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/StopWatchTest.java index d586aec84..60d008b7b 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/StopWatchTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/StopWatchTest.java @@ -33,7 +33,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; - /** * {@link StopWatch} Test * @@ -44,7 +43,6 @@ class StopWatchTest implements Loggable { private static final String testName = "test"; - private StopWatch stopWatch; @BeforeEach diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/StringUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/StringUtilsTest.java index 63b4f3112..bbf4c441c 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/StringUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/StringUtilsTest.java @@ -134,7 +134,6 @@ void testContains() { assertTrue(contains(TEST_CSV_STRING, COMMA)); } - @Test void testStartsWith() { assertFalse(startsWith(null, null)); @@ -360,4 +359,4 @@ void testToStringArray() { assertArrayEquals(ofArray("a", "b", "c"), toStringArray(ofList("a", "b", "c"))); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ThrowableUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ThrowableUtilsTest.java index 883f8e5e1..844bbc712 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ThrowableUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ThrowableUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.util; - import io.microsphere.lang.function.ThrowableAction; import org.junit.jupiter.api.Test; @@ -61,4 +60,4 @@ void testGetRootCause() { } }); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/TypeFinderTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/TypeFinderTest.java index 5f461ce59..62e2f0727 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/TypeFinderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/TypeFinderTest.java @@ -319,4 +319,4 @@ private void assertBiFunction(Type type) { assertEquals(Object.class, typeVariable2.getBounds()[0]); } -} \ No newline at end of file +} diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ValueHolderTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ValueHolderTest.java index 292250ba9..b52ae50a4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ValueHolderTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ValueHolderTest.java @@ -70,7 +70,6 @@ void testReset() { assertNull(valueHolder.getValue()); } - @Test void testToString() { ValueHolder valueHolder = of(1); diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/TestAnnotation.java b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/TestAnnotation.java index 5669e4936..bfc591691 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/TestAnnotation.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/TestAnnotation.java @@ -70,4 +70,4 @@ ConfigurationProperty[] properties() default {}; -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AbstractAnnotationProcessingTest.java b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AbstractAnnotationProcessingTest.java index 57f4a8daf..7c484ecb4 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AbstractAnnotationProcessingTest.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AbstractAnnotationProcessingTest.java @@ -160,4 +160,4 @@ protected void beforeTest(ReflectiveInvocationContext invocationContext, protected void afterTest(ReflectiveInvocationContext invocationContext, ExtensionContext extensionContext, @Nullable Object result, @Nullable Throwable failure) { } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AnnotationProcessingTestProcessor.java b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AnnotationProcessingTestProcessor.java index 3192d0140..59d2bd55d 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AnnotationProcessingTestProcessor.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/AnnotationProcessingTestProcessor.java @@ -103,4 +103,4 @@ void prepare(RoundEnvironment roundEnv) { public SourceVersion getSupportedSourceVersion() { return latestSupported(); } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/CompilerInvocationInterceptor.java b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/CompilerInvocationInterceptor.java index 9841b1a3f..76a24ffbe 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/CompilerInvocationInterceptor.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/annotation/processing/CompilerInvocationInterceptor.java @@ -33,7 +33,6 @@ import static io.microsphere.util.ArrayUtils.EMPTY_CLASS_ARRAY; import static java.util.ServiceLoader.load; - /** * {@link InvocationInterceptor} based on Java {@link Compiler} * @@ -65,4 +64,4 @@ public void interceptTestMethod(Invocation invocation, ReflectiveInvocatio compiler.processors(processors.toArray(new Processor[0])); compiler.compile(compiledClasses); } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/Ancestor.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/Ancestor.java index cf0e07f70..4c4658964 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/Ancestor.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/Ancestor.java @@ -35,4 +35,4 @@ public boolean isZ() { public void setZ(boolean z) { this.z = z; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/ArrayTypeModel.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/ArrayTypeModel.java index d9588781e..db74dc9dc 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/ArrayTypeModel.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/ArrayTypeModel.java @@ -73,4 +73,4 @@ public Color[] getColors() { public void setColors(Color[] colors) { this.colors = colors; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/CollectionTypeModel.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/CollectionTypeModel.java index 414d65451..aaf86a7ff 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/CollectionTypeModel.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/CollectionTypeModel.java @@ -79,4 +79,4 @@ public Set getModelArrays() { public void setModelArrays(Set modelArrays) { this.modelArrays = modelArrays; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/Color.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/Color.java index f362a8376..cbdb9ea43 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/Color.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/Color.java @@ -44,4 +44,4 @@ public String toString() { public int getValue() { return value; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/ConfigurationPropertyModel.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/ConfigurationPropertyModel.java index a8e206bd0..24f7a3dee 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/ConfigurationPropertyModel.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/ConfigurationPropertyModel.java @@ -82,4 +82,4 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/MapTypeModel.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/MapTypeModel.java index bf051c5b9..a8113f7e8 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/MapTypeModel.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/MapTypeModel.java @@ -79,4 +79,4 @@ public TreeMap getModelArrays() { public void setModelArrays(TreeMap modelArrays) { this.modelArrays = modelArrays; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/Model.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/Model.java index 5d972f3c9..10853a576 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/Model.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/Model.java @@ -87,4 +87,4 @@ public BigDecimal getBd() { public void setBd(BigDecimal bd) { this.bd = bd; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/Parent.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/Parent.java index f5e85fe1e..b73e2eaad 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/Parent.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/Parent.java @@ -63,4 +63,4 @@ public long getL() { public void setL(long l) { this.l = l; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/PrimitiveTypeModel.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/PrimitiveTypeModel.java index 5a1065fc7..7e988e54b 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/PrimitiveTypeModel.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/PrimitiveTypeModel.java @@ -71,4 +71,4 @@ public float getF() { public double getD() { return d; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/SimpleTypeModel.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/SimpleTypeModel.java index 86a8b6b8b..f0d9775eb 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/SimpleTypeModel.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/SimpleTypeModel.java @@ -159,4 +159,4 @@ public Date getDt() { public void setDt(Date dt) { this.dt = dt; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/model/StringArrayList.java b/microsphere-java-test/src/main/java/io/microsphere/test/model/StringArrayList.java index e7c115a09..382f2dc51 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/model/StringArrayList.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/model/StringArrayList.java @@ -27,4 +27,4 @@ * @since 1.0.0 */ public class StringArrayList extends ArrayList { -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/service/DefaultTestService.java b/microsphere-java-test/src/main/java/io/microsphere/test/service/DefaultTestService.java index 4ca1d694b..0e1eb6f67 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/service/DefaultTestService.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/service/DefaultTestService.java @@ -16,7 +16,6 @@ */ package io.microsphere.test.service; - import io.microsphere.test.model.Model; import java.util.concurrent.TimeUnit; diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/service/GenericTestService.java b/microsphere-java-test/src/main/java/io/microsphere/test/service/GenericTestService.java index d4a81a787..5ee8b7681 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/service/GenericTestService.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/service/GenericTestService.java @@ -16,7 +16,6 @@ */ package io.microsphere.test.service; - import java.util.EventListener; /** @@ -30,4 +29,4 @@ public class GenericTestService extends DefaultTestService implements TestServic public String echo(String message) { return "[ECHO] " + message; } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/main/java/io/microsphere/test/service/TestService.java b/microsphere-java-test/src/main/java/io/microsphere/test/service/TestService.java index 22839bc80..dc0133968 100644 --- a/microsphere-java-test/src/main/java/io/microsphere/test/service/TestService.java +++ b/microsphere-java-test/src/main/java/io/microsphere/test/service/TestService.java @@ -16,7 +16,6 @@ */ package io.microsphere.test.service; - import io.microsphere.test.model.Model; import javax.ws.rs.DefaultValue; diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/annotation/processing/AnnotationProcessingTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/annotation/processing/AnnotationProcessingTest.java index 7696da277..eab60203e 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/annotation/processing/AnnotationProcessingTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/annotation/processing/AnnotationProcessingTest.java @@ -98,4 +98,4 @@ public void handleTestExecutionException(ExtensionContext context, Throwable thr } } } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/AncestorTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/AncestorTest.java index b96c57b36..c780ce0ab 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/AncestorTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/AncestorTest.java @@ -74,7 +74,7 @@ void testSerializableImplementation() { // This test verifies basic functionality without actual serialization ancestor.setZ(true); assertTrue(ancestor.isZ(), "Should properly handle boolean value when used as Serializable"); - + ancestor.setZ(false); assertFalse(ancestor.isZ(), "Should properly handle boolean value when used as Serializable"); } diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/ArrayTypeModelTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/ArrayTypeModelTest.java index ebf9644af..db1da9248 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/ArrayTypeModelTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/ArrayTypeModelTest.java @@ -119,4 +119,4 @@ void testArrayMutability() { assertEquals(999, model.getIntegers()[0], "Changes to the original array should be reflected since arrays are passed by reference"); } -} \ No newline at end of file +} diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/CollectionTypeModelTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/CollectionTypeModelTest.java index 1fea54d4a..b5aa7321f 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/CollectionTypeModelTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/CollectionTypeModelTest.java @@ -47,10 +47,10 @@ void testDefaultValues() { @Test void testSetGetStrings() { Collection testCollection = asList("hello", "world", "test"); - + model.setStrings(testCollection); assertSame(testCollection, model.getStrings(), "Should return the same collection reference that was set"); - + // Verify the contents match assertEquals(testCollection, model.getStrings(), "Collection contents should match the set value"); } @@ -58,10 +58,10 @@ void testSetGetStrings() { @Test void testSetGetColors() { List testList = asList(RED, BLUE, YELLOW); - + model.setColors(testList); assertSame(testList, model.getColors(), "Should return the same list reference that was set"); - + // Verify the contents match assertEquals(testList, model.getColors(), "List contents should match the set value"); } @@ -71,10 +71,10 @@ void testSetGetPrimitiveTypeModels() { Queue testQueue = new LinkedList<>(); testQueue.add(new PrimitiveTypeModel()); testQueue.add(new PrimitiveTypeModel()); - + model.setPrimitiveTypeModels(testQueue); assertSame(testQueue, model.getPrimitiveTypeModels(), "Should return the same queue reference that was set"); - + // Verify the contents match assertEquals(testQueue, model.getPrimitiveTypeModels(), "Queue contents should match the set value"); } @@ -84,10 +84,10 @@ void testSetGetModels() { Deque testDeque = new LinkedList<>(); testDeque.add(new Model()); testDeque.add(new Model()); - + model.setModels(testDeque); assertSame(testDeque, model.getModels(), "Should return the same deque reference that was set"); - + // Verify the contents match assertEquals(testDeque, model.getModels(), "Deque contents should match the set value"); } @@ -97,10 +97,10 @@ void testSetGetModelArrays() { Set testSet = newHashSet(); testSet.add(new Model[]{new Model(), new Model()}); testSet.add(new Model[]{new Model()}); - + model.setModelArrays(testSet); assertSame(testSet, model.getModelArrays(), "Should return the same set reference that was set"); - + // Verify the contents match assertEquals(testSet, model.getModelArrays(), "Set contents should match the set value"); } @@ -110,16 +110,16 @@ void testSetNullValues() { // Test setting each field to null model.setStrings(null); assertNull(model.getStrings(), "strings should be null after setting to null"); - + model.setColors(null); assertNull(model.getColors(), "colors should be null after setting to null"); - + model.setPrimitiveTypeModels(null); assertNull(model.getPrimitiveTypeModels(), "primitiveTypeModels should be null after setting to null"); - + model.setModels(null); assertNull(model.getModels(), "models should be null after setting to null"); - + model.setModelArrays(null); assertNull(model.getModelArrays(), "modelArrays should be null after setting to null"); } @@ -128,10 +128,10 @@ void testSetNullValues() { void testCollectionMutability() { List originalList = new ArrayList<>(asList(RED, BLUE)); model.setColors(originalList); - + // Modify the original collection originalList.add(RED); - + // Check if the change is reflected in the getter result assertTrue(model.getColors().contains(RED), "Changes to the original collection should be reflected since collections are passed by reference"); diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/ColorTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/ColorTest.java index cd3f6557e..6298ef655 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/ColorTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/ColorTest.java @@ -95,7 +95,7 @@ void testAllEnumConstantsExist() { // Verify that we can retrieve all enum constants Color[] allColors = values(); assertEquals(3, allColors.length, "There should be exactly 3 color constants"); - + // Verify that all expected colors are present assertTrue(asList(allColors).contains(RED), "All colors should include RED"); assertTrue(asList(allColors).contains(YELLOW), "All colors should include YELLOW"); diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/ConfigurationPropertyModelTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/ConfigurationPropertyModelTest.java index 4218d3d43..4f476c38c 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/ConfigurationPropertyModelTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/ConfigurationPropertyModelTest.java @@ -72,17 +72,17 @@ void testSetDescriptionAndGet() { void testConfigurationPropertyAnnotations() { // Test that the ConfigurationProperty annotations are present on the fields java.lang.reflect.Field[] fields = ConfigurationPropertyModel.class.getDeclaredFields(); - + boolean hasNameAnnotation = false; boolean hasTypeAnnotation = false; boolean hasDefaultValueAnnotation = false; boolean hasRequiredAnnotation = false; boolean hasDescriptionAnnotation = false; - + for (java.lang.reflect.Field field : fields) { if (field.isAnnotationPresent(ConfigurationProperty.class)) { ConfigurationProperty annotation = field.getAnnotation(ConfigurationProperty.class); - + switch (field.getName()) { case "name": if ("microsphere.annotation.processor.model.name".equals(annotation.name())) { @@ -112,7 +112,7 @@ void testConfigurationPropertyAnnotations() { } } } - + assertTrue(hasNameAnnotation, "name field should have ConfigurationProperty annotation with correct name"); assertTrue(hasTypeAnnotation, "type field should have ConfigurationProperty annotation with correct name"); assertTrue(hasDefaultValueAnnotation, "defaultValue field should have ConfigurationProperty annotation with correct name"); diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/MapTypeModelTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/MapTypeModelTest.java index 3a694d45f..487f894a4 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/MapTypeModelTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/MapTypeModelTest.java @@ -134,7 +134,7 @@ void testMapMutability() { originalMap.put("added", "new_value"); // Check if the change is reflected in the getter result - assertTrue(model.getStrings().containsKey("added"), + assertTrue(model.getStrings().containsKey("added"), "Changes to the original map should be reflected since maps are passed by reference"); } } diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/ModelTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/ModelTest.java index 5a9b63b28..340c1d199 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/ModelTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/ModelTest.java @@ -28,7 +28,7 @@ void testDefaultValues() { // Verify all primitive fields have their default values assertEquals(0.0f, model.getF(), "float field f should be 0.0f by default"); assertEquals(0.0d, model.getD(), "double field d should be 0.0d by default"); - + // Verify all object fields are null by default assertNull(model.getTu(), "TimeUnit field tu should be null by default"); assertNull(model.getStr(), "String field str should be null by default"); @@ -89,13 +89,13 @@ void testMultipleValueChanges() { // Test changing values multiple times model.setF(1.0f); assertEquals(1.0f, model.getF(), "f should be 1.0f"); - + model.setF(2.0f); assertEquals(2.0f, model.getF(), "f should be 2.0f after second assignment"); - + model.setD(10.0d); assertEquals(10.0d, model.getD(), "d should be 10.0d"); - + model.setD(20.0d); assertEquals(20.0d, model.getD(), "d should be 20.0d after second assignment"); } @@ -107,7 +107,7 @@ void testNullHandling() { model.setStr(null); model.setBi(null); model.setBd(null); - + assertNull(model.getTu(), "tu should be null after setting to null"); assertNull(model.getStr(), "str should be null after setting to null"); assertNull(model.getBi(), "bi should be null after setting to null"); diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/ParentTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/ParentTest.java index 30d489e6e..675fe4330 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/ParentTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/ParentTest.java @@ -60,10 +60,10 @@ void testSetGetLong() { void testInheritanceFromAncestor() { // Verify that the parent inherits from Ancestor class assertTrue(parent instanceof Ancestor, "Parent should extend Ancestor class"); - + // Test inherited functionality assertFalse(parent.isZ(), "Should inherit default z value of false from Ancestor"); - + parent.setZ(true); assertTrue(parent.isZ(), "Should be able to modify inherited z field"); } @@ -73,13 +73,13 @@ void testMultipleValueChanges() { // Test changing values multiple times parent.setB((byte) 1); assertEquals((byte) 1, parent.getB(), "b should be 1"); - + parent.setB((byte) 2); assertEquals((byte) 2, parent.getB(), "b should be 2 after second assignment"); - + parent.setI(100); assertEquals(100, parent.getI(), "i should be 100"); - + parent.setI(200); assertEquals(200, parent.getI(), "i should be 200 after second assignment"); } diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/PrimitiveTypeModelTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/PrimitiveTypeModelTest.java index 1f28bcb4d..720cdccbb 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/PrimitiveTypeModelTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/PrimitiveTypeModelTest.java @@ -41,38 +41,38 @@ void testBooleanField() { void testPrimitiveTypesRange() { // Test various ranges for different primitive types PrimitiveTypeModel testModel = new PrimitiveTypeModel(); - + // Boolean // Cannot set values directly as there are no setters, but we can verify the default - + // Byte range (-128 to 127) byte minByte = Byte.MIN_VALUE; byte maxByte = Byte.MAX_VALUE; - + // Char range (0 to 65535) char minChar = Character.MIN_VALUE; char maxChar = Character.MAX_VALUE; - + // Short range (-32768 to 32767) short minShort = Short.MIN_VALUE; short maxShort = Short.MAX_VALUE; - + // Int range int minInt = Integer.MIN_VALUE; int maxInt = Integer.MAX_VALUE; - + // Long range long minLong = Long.MIN_VALUE; long maxLong = Long.MAX_VALUE; - + // Float range float minFloat = Float.MIN_VALUE; float maxFloat = Float.MAX_VALUE; - + // Double range double minDouble = Double.MIN_VALUE; double maxDouble = Double.MAX_VALUE; - + // These are just to ensure the getters work with different possible values // Since there are no setters, we're just validating the getters return values assertEquals(0, testModel.getI(), "Integer field should have default value"); diff --git a/microsphere-java-test/src/test/java/io/microsphere/test/model/StringArrayListTest.java b/microsphere-java-test/src/test/java/io/microsphere/test/model/StringArrayListTest.java index cc417fa20..537b55d64 100644 --- a/microsphere-java-test/src/test/java/io/microsphere/test/model/StringArrayListTest.java +++ b/microsphere-java-test/src/test/java/io/microsphere/test/model/StringArrayListTest.java @@ -62,10 +62,10 @@ void testAddAndGetElements() { void testAddAll() { // Test adding multiple elements at once String[] elements = {"item1", "item2", "item3"}; - + boolean result = stringArrayList.addAll(Arrays.asList(elements)); assertTrue(result, "addAll should return true when elements are added"); - + assertEquals(3, stringArrayList.size(), "Size should match number of added elements"); assertEquals("item1", stringArrayList.get(0), "First element should match"); assertEquals("item2", stringArrayList.get(1), "Second element should match"); @@ -77,7 +77,7 @@ void testRemoveElement() { // Test removing elements stringArrayList.add("element1"); stringArrayList.add("element2"); - + boolean removed = stringArrayList.remove("element1"); assertTrue(removed, "Should return true when element is successfully removed"); assertEquals(1, stringArrayList.size(), "Size should decrease after removal"); @@ -90,11 +90,11 @@ void testClear() { stringArrayList.add("element1"); stringArrayList.add("element2"); stringArrayList.add("element3"); - + assertEquals(3, stringArrayList.size(), "Size should be 3 before clear"); - + stringArrayList.clear(); - + assertTrue(stringArrayList.isEmpty(), "List should be empty after clear"); assertEquals(0, stringArrayList.size(), "Size should be 0 after clear"); } @@ -104,7 +104,7 @@ void testContains() { // Test contains functionality String element = "test_element"; stringArrayList.add(element); - + assertTrue(stringArrayList.contains(element), "List should contain the added element"); assertFalse(stringArrayList.contains("non_existent"), "List should not contain non-existent element"); } @@ -114,16 +114,16 @@ void testIterator() { // Test iterator functionality String[] elements = {"a", "b", "c"}; stringArrayList.addAll(Arrays.asList(elements)); - + Iterator iterator = stringArrayList.iterator(); int index = 0; - + while (iterator.hasNext() && index < elements.length) { String nextElement = iterator.next(); assertEquals(elements[index], nextElement, "Iterator should return elements in order"); index++; } - + assertFalse(iterator.hasNext(), "Iterator should be exhausted after processing all elements"); } diff --git a/microsphere-jdk-tools/src/main/java/io/microsphere/jdk/tools/compiler/Compiler.java b/microsphere-jdk-tools/src/main/java/io/microsphere/jdk/tools/compiler/Compiler.java index 50aa1588b..595bc9355 100644 --- a/microsphere-jdk-tools/src/main/java/io/microsphere/jdk/tools/compiler/Compiler.java +++ b/microsphere-jdk-tools/src/main/java/io/microsphere/jdk/tools/compiler/Compiler.java @@ -279,4 +279,4 @@ public static File detectClassPath(Class sourceClass) { public static String resolveJavaSourceFileRelativePath(Class sourceClass) { return sourceClass.getName().replace(DOT_CHAR, separatorChar).concat(JAVA_EXTENSION); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/JSONElementVisitor.java b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/JSONElementVisitor.java index 416eafce3..f8daed825 100644 --- a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/JSONElementVisitor.java +++ b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/JSONElementVisitor.java @@ -217,4 +217,4 @@ protected boolean doVisitPackage(PackageElement e, StringBuilder jsonBuilder) { protected boolean doVisitTypeParameter(TypeParameterElement e, StringBuilder jsonBuilder) { return super.visitTypeParameter(e, jsonBuilder); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/LoggerUtils.java b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/LoggerUtils.java index 4fed09a7f..3abdcc7e8 100644 --- a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/LoggerUtils.java +++ b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/LoggerUtils.java @@ -16,7 +16,6 @@ */ package io.microsphere.lang.model.util; - import io.microsphere.logging.Logger; import io.microsphere.util.Utils; diff --git a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MethodUtils.java b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MethodUtils.java index de250a897..fd8886e57 100644 --- a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MethodUtils.java +++ b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MethodUtils.java @@ -16,7 +16,6 @@ */ package io.microsphere.lang.model.util; - import io.microsphere.annotation.Immutable; import io.microsphere.annotation.Nonnull; import io.microsphere.annotation.Nullable; diff --git a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/TypeUtils.java b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/TypeUtils.java index 1da76f704..6b363b167 100644 --- a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/TypeUtils.java +++ b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/TypeUtils.java @@ -96,7 +96,6 @@ public interface TypeUtils extends Utils { .map(TypeUtils::ofTypeElement) .toArray(TypeElement[]::new); - /** * Checks if the given Element represents a simple type. * A simple type is defined as a basic data type that can be directly represented without further resolution. @@ -1704,7 +1703,6 @@ static List getDeclaredTypes(TypeMirror type, return findDeclaredTypes(type, includeSelf, includeHierarchicalTypes, includeSuperClasses, includeSuperInterfaces, EMPTY_PREDICATE_ARRAY); } - /** * Finds and returns a list of DeclaredTypes associated with the given TypeMirror, * excluding any types that match the specified excludedTypes. @@ -2505,4 +2503,4 @@ static TypeFinder typeElementFinder(TypeElement typeElement, boolea return new TypeFinder(typeElement, TYPE_ELEMENT_GET_SUPERCLASS, TYPE_ELEMENT_GET_INTERFACES, includeSelf, includeHierarchicalTypes, includeSuperclass, includeInterfaces); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/element/StringAnnotationValueTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/element/StringAnnotationValueTest.java index df77ef12c..fb818fc76 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/element/StringAnnotationValueTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/element/StringAnnotationValueTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.element; - import io.microsphere.lang.model.util.ResolvableAnnotationValueVisitor; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -50,4 +49,4 @@ void testAccept() { ResolvableAnnotationValueVisitor visitor = new ResolvableAnnotationValueVisitor(); assertEquals("testing", value.accept(visitor, null)); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotatedElementJSONElementVisitorTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotatedElementJSONElementVisitorTest.java index 3dd0cc74c..0d0caec57 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotatedElementJSONElementVisitorTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotatedElementJSONElementVisitorTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.util; - import org.junit.jupiter.api.Test; import javax.lang.model.element.ExecutableElement; @@ -49,4 +48,4 @@ void test() { assertFalse(visitor.supports(NULL_ELEMENT)); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotationUtilsTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotationUtilsTest.java index 5b01b35da..bb656b60d 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotationUtilsTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/AnnotationUtilsTest.java @@ -687,7 +687,6 @@ void testGetElementValuesOnAnnotatedMethod() { assertEquals(1, elementValues.size()); assertAttributeEntry(elementValues, "cacheNames", ofArray("cache-1", "cache-2")); - elementValues = getElementValues(method, Cacheable.class, true); assertEquals(9, elementValues.size()); assertAttributeEntry(elementValues, "value", EMPTY_STRING_ARRAY); diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ConstructorUtilsTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ConstructorUtilsTest.java index a4b513650..6b394d8f0 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ConstructorUtilsTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ConstructorUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.util; - import org.junit.jupiter.api.Test; import org.springframework.core.env.Environment; @@ -146,4 +145,4 @@ void assertTestServiceImpl2ndConstructor(ExecutableElement constructor) { assertEquals(1, constructor.getParameters().size()); assertTrue(matchParameterTypes(constructor, Environment.class)); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ElementUtilsTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ElementUtilsTest.java index b65ea7b2c..b093f94d5 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ElementUtilsTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ElementUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.util; - import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtensionContext; import org.junit.jupiter.api.extension.ReflectiveInvocationContext; @@ -352,4 +351,4 @@ void assertElementKind(ElementType elementType) { void assertMatchesElementType(ElementType elementType) { assertTrue(matchesElementType(toElementKind(elementType), elementType)); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ExecutableElementComparatorTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ExecutableElementComparatorTest.java index 9043220bb..abf1fe3aa 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ExecutableElementComparatorTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/ExecutableElementComparatorTest.java @@ -72,4 +72,4 @@ public boolean equals(Object object) { private ExecutableElement getMethod(String methodName, Type... parameterTypes) { return findMethod(testTypeElement, methodName, parameterTypes); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONAnnotationValueVisitorTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONAnnotationValueVisitorTest.java index d89d3c732..9afc76439 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONAnnotationValueVisitorTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONAnnotationValueVisitorTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.util; - import io.microsphere.test.annotation.TestAnnotation; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtensionContext; @@ -133,4 +132,4 @@ void testVisit(String attributeName, String expectedJson) { StringBuilder jsonBuilder = visitor.visit(annotationValue, attributeMethod); assertEquals(expectedJson, jsonBuilder.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONElementVisitorTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONElementVisitorTest.java index f9c20e905..2511436b6 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONElementVisitorTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/JSONElementVisitorTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.util; - import io.microsphere.test.annotation.TestAnnotation; import io.microsphere.test.model.Color; import io.microsphere.test.model.StringArrayList; @@ -55,7 +54,6 @@ class JSONElementVisitorTest extends UtilTest { private JSONElementVisitor visitor; - @BeforeEach void setUp() { this.supported = true; @@ -255,4 +253,4 @@ void testVisitTypeParameterOnUnsupported() { void assertJson(String expected) { assertEquals(expected, jsonBuilder.toString()); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MessagerUtilsTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MessagerUtilsTest.java index f76759559..6efcdf49d 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MessagerUtilsTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MessagerUtilsTest.java @@ -17,7 +17,6 @@ package io.microsphere.lang.model.util; - import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtensionContext; import org.junit.jupiter.api.extension.ReflectiveInvocationContext; @@ -80,4 +79,4 @@ void testPrintMessage() { assertDoesNotThrow(() -> printMessage(this.processingEnv, OTHER, "Hello, {}!", "printMessage")); assertDoesNotThrow(() -> printMessage(this.messager, OTHER, "Hello, {}!", "printMessage")); } -} \ No newline at end of file +} diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MethodUtilsTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MethodUtilsTest.java index 1c760eb0f..a50486e15 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MethodUtilsTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/MethodUtilsTest.java @@ -333,7 +333,6 @@ void testFindMethodOnNull() { assertNull(findMethod(testTypeMirror, NULL_STRING, NULL_TYPE_ARRAY)); assertNull(findMethod(testTypeMirror, NULL_STRING, NULL_STRING_ARRAY)); - assertNull(findMethod(testTypeElement, "toString", NULL_TYPE_ARRAY)); assertNull(findMethod(testTypeElement, "toString", NULL_STRING_ARRAY)); diff --git a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/TypeUtilsTest.java b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/TypeUtilsTest.java index 9e73f8b5c..fdec926b5 100644 --- a/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/TypeUtilsTest.java +++ b/microsphere-lang-model/src/test/java/io/microsphere/lang/model/util/TypeUtilsTest.java @@ -762,7 +762,6 @@ void testFindTypeElementsOnNullFilterElement() { () -> findTypeElements(testTypeElement, true, true, true, true, new Predicate[]{null})); } - @Test void testGetDeclaredTypeOfSuperclass() { DeclaredType superDeclaredType = getDeclaredTypeOfSuperclass(testTypeMirror); @@ -1063,7 +1062,6 @@ void testFindAllDeclaredTypesWithExcludedTypes() { List declaredTypes = findAllDeclaredTypes(testTypeElement, testClass); assertDeclaredTypes(declaredTypes, ALL_SUPER_TYPES); - declaredTypes = findAllDeclaredTypes(testTypeMirror, testClass); assertDeclaredTypes(declaredTypes, ALL_SUPER_TYPES); } @@ -1873,4 +1871,4 @@ private void assertToString(Type... types) { private void assertToString(TypeMirror type) { assertEquals(type.toString(), TypeUtils.toString(type)); } -} \ No newline at end of file +}