From 8b737a482edff755454b5b6ac538f0575089fafe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 15:33:21 +0000 Subject: [PATCH 1/2] Remove blank lines before closing braces - fix 103 files --- CODE_OF_CONDUCT.md | 3 +-- microsphere-annotation-processor/pom.xml | 2 +- .../io/microsphere/annotation/processor/FilerProcessor.java | 1 - .../src/test/resources/logback-test.xml | 2 +- microsphere-java-annotations/pom.xml | 2 +- microsphere-java-core/pom.xml | 2 +- .../src/main/java/io/microsphere/beans/BeanMetadata.java | 1 - .../classloading/BannedArtifactClassLoadingExecutor.java | 1 - .../main/java/io/microsphere/collection/CollectionUtils.java | 1 - .../src/main/java/io/microsphere/collection/Iterators.java | 1 - .../src/main/java/io/microsphere/collection/MapUtils.java | 1 - .../main/java/io/microsphere/collection/ReadOnlyIterator.java | 1 - .../src/main/java/io/microsphere/filter/FilterOperator.java | 1 - .../main/java/io/microsphere/io/StandardFileWatchService.java | 1 - .../java/io/microsphere/io/filter/FileExtensionFilter.java | 1 - .../main/java/io/microsphere/io/scanner/SimpleFileScanner.java | 1 - .../src/main/java/io/microsphere/json/JSONArray.java | 1 - .../src/main/java/io/microsphere/json/JSONException.java | 1 - .../src/main/java/io/microsphere/json/JSONObject.java | 1 - .../src/main/java/io/microsphere/json/JSONTokener.java | 1 - .../src/main/java/io/microsphere/json/JSONUtils.java | 1 - .../src/main/java/io/microsphere/lang/function/Predicates.java | 1 - .../src/main/java/io/microsphere/reflect/ConstructorUtils.java | 1 - .../src/main/java/io/microsphere/reflect/JavaType.java | 1 - .../src/main/java/io/microsphere/reflect/Modifier.java | 1 - .../src/main/java/io/microsphere/reflect/TypeUtils.java | 1 - .../src/main/java/io/microsphere/util/AnnotationUtils.java | 1 - .../src/main/java/io/microsphere/util/ClassPathUtils.java | 1 - .../io/microsphere/util/PropertyResourceBundleControl.java | 1 - .../java/io/microsphere/util/ShutdownHookCallbacksThread.java | 1 - .../src/main/java/io/microsphere/util/ShutdownHookUtils.java | 1 - .../src/main/java/io/microsphere/util/ValueHolder.java | 1 - .../classloading/MavenArtifactResourceResolverTest.java | 1 - .../java/io/microsphere/collection/EnumerationUtilsTest.java | 1 - .../test/java/io/microsphere/collection/QueueUtilsTest.java | 1 - .../java/io/microsphere/collection/ReadOnlyIteratorTest.java | 1 - .../src/test/java/io/microsphere/event/EventListenerTest.java | 1 - .../src/test/java/io/microsphere/event/GenericEventTest.java | 1 - .../src/test/java/io/microsphere/event/ListenableTest.java | 1 - .../java/io/microsphere/event/ParallelEventDispatcherTest.java | 1 - .../test/java/io/microsphere/filter/FilterOperatorTest.java | 1 - .../src/test/java/io/microsphere/io/FileUtilsTest.java | 1 - .../java/io/microsphere/io/StandardFileWatchServiceTest.java | 1 - .../java/io/microsphere/io/event/FileChangedEventTest.java | 1 - .../java/io/microsphere/io/filter/DirectoryFileFilterTest.java | 1 - .../test/java/io/microsphere/io/filter/IOFileFilterTest.java | 1 - .../src/test/java/io/microsphere/json/JSONExceptionTest.java | 1 - .../src/test/java/io/microsphere/json/JSONTest.java | 1 - .../src/test/java/io/microsphere/json/JSONTokenerTest.java | 1 - .../src/test/java/io/microsphere/json/JSONUtilsTest.java | 1 - .../test/java/io/microsphere/lang/DelegatingWrapperTest.java | 1 - .../src/test/java/io/microsphere/lang/PrioritizedTest.java | 1 - .../src/test/java/io/microsphere/lang/WrapperTest.java | 1 - .../test/java/io/microsphere/lang/function/StreamsTest.java | 1 - .../io/microsphere/lang/function/ThrowableFunctionTest.java | 1 - .../net/ExtendableProtocolURLStreamHandlerTest.java | 1 - .../src/test/java/io/microsphere/net/URLUtilsTest.java | 1 - .../src/test/java/io/microsphere/net/test/Handler.java | 1 - .../test/java/io/microsphere/nio/charset/CharsetUtilsTest.java | 1 - .../test/java/io/microsphere/process/ProcessManagerTest.java | 1 - .../java/io/microsphere/reflect/ConstructorDefinitionTest.java | 1 - .../test/java/io/microsphere/reflect/ExecutableUtilsTest.java | 1 - .../test/java/io/microsphere/reflect/FieldDefinitionTest.java | 1 - .../test/java/io/microsphere/reflect/JavaTypeTestForClass.java | 1 - .../microsphere/reflect/JavaTypeTestForGenericArrayType.java | 1 - .../io/microsphere/reflect/JavaTypeTestForObjectClass.java | 1 - .../microsphere/reflect/JavaTypeTestForParameterizedType.java | 1 - .../io/microsphere/reflect/JavaTypeTestForTypeVariable.java | 1 - .../java/io/microsphere/reflect/JavaTypeTestForUnknown.java | 1 - .../io/microsphere/reflect/JavaTypeTestForWildcardType.java | 1 - .../src/test/java/io/microsphere/reflect/ModifierTest.java | 1 - .../src/test/java/io/microsphere/reflect/ReflectionTest.java | 1 - .../src/test/java/io/microsphere/reflect/TypeUtilsTest.java | 1 - .../src/test/java/io/microsphere/util/AnnotationUtilsTest.java | 1 - .../src/test/java/io/microsphere/util/BaseUtilsTest.java | 1 - .../test/java/io/microsphere/util/ClassLoaderUtilsTest.java | 1 - .../src/test/java/io/microsphere/util/ConfigurerTest.java | 1 - .../src/test/java/io/microsphere/util/ExceptionUtilsTest.java | 1 - .../src/test/java/io/microsphere/util/FunctionalTest.java | 1 - .../io/microsphere/util/PropertyResourceBundleUtilsTest.java | 1 - .../src/test/java/io/microsphere/util/StringUtilsTest.java | 1 - .../src/test/java/io/microsphere/util/TypeFinderTest.java | 1 - .../src/test/resources/META-INF/System.properties | 2 +- .../src/test/resources/META-INF/logging.properties | 2 +- .../src/test/resources/META-INF/test.properties | 2 +- .../src/test/resources/META-INF/test_zh_CN.properties | 2 +- .../src/test/resources/junit-platform.properties | 2 +- microsphere-java-core/src/test/resources/logback-test.xml | 2 +- microsphere-java-core/src/test/resources/test.txt | 2 +- microsphere-java-core/src/test/resources/test/json/clean.txt | 3 +-- microsphere-java-dependencies/pom.xml | 2 +- microsphere-java-parent/pom.xml | 2 +- microsphere-java-test/pom.xml | 2 +- .../src/main/resources/junit-platform.properties | 2 +- microsphere-java-test/src/main/resources/logback-test.xml | 2 +- microsphere-jdk-tools/pom.xml | 2 +- microsphere-jdk-tools/src/test/resources/logback-test.xml | 2 +- microsphere-lang-model/pom.xml | 2 +- .../java/io/microsphere/lang/model/util/ConstructorUtils.java | 1 - .../main/java/io/microsphere/lang/model/util/MemberUtils.java | 1 - .../model/util/AnnotatedElementJSONElementVisitorTest.java | 1 - pom.xml | 2 +- release-notes.md | 2 +- 103 files changed, 23 insertions(+), 105 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index d57aa809e..f618cac7a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -41,8 +41,7 @@ is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident. - This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at https://www.contributor-covenant.org/version/1/3/0/code-of-conduct.html -[homepage]: https://www.contributor-covenant.org \ No newline at end of file +[homepage]: https://www.contributor-covenant.org diff --git a/microsphere-annotation-processor/pom.xml b/microsphere-annotation-processor/pom.xml index 26473f3d3..3ea859508 100644 --- a/microsphere-annotation-processor/pom.xml +++ b/microsphere-annotation-processor/pom.xml @@ -130,4 +130,4 @@ - \ No newline at end of file + diff --git a/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/FilerProcessor.java b/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/FilerProcessor.java index 5a34c0fa5..2fe505f3e 100644 --- a/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/FilerProcessor.java +++ b/microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/FilerProcessor.java @@ -99,5 +99,4 @@ public T processInFiler(ThrowableFunction filerCallback, BiFunctio public JavaFileManager getJavaFileManager() { return processInFiler(filer -> getFieldValue(filer, "fileManager")); } - } diff --git a/microsphere-annotation-processor/src/test/resources/logback-test.xml b/microsphere-annotation-processor/src/test/resources/logback-test.xml index e3375b74c..95b820dd6 100644 --- a/microsphere-annotation-processor/src/test/resources/logback-test.xml +++ b/microsphere-annotation-processor/src/test/resources/logback-test.xml @@ -12,4 +12,4 @@ - \ No newline at end of file + diff --git a/microsphere-java-annotations/pom.xml b/microsphere-java-annotations/pom.xml index e80e54ea5..2a4188cd5 100644 --- a/microsphere-java-annotations/pom.xml +++ b/microsphere-java-annotations/pom.xml @@ -41,4 +41,4 @@ - \ No newline at end of file + diff --git a/microsphere-java-core/pom.xml b/microsphere-java-core/pom.xml index c31c60b8c..0eeafdd4e 100644 --- a/microsphere-java-core/pom.xml +++ b/microsphere-java-core/pom.xml @@ -97,4 +97,4 @@ - \ 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 2a3ae998e..5972c718c 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 @@ -142,5 +142,4 @@ public String toString() { public static BeanMetadata of(@Nonnull Class beanClass) throws RuntimeException { return new BeanMetadata(beanClass); } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutor.java b/microsphere-java-core/src/main/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutor.java index 4d5f8325a..98704f397 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutor.java +++ b/microsphere-java-core/src/main/java/io/microsphere/classloading/BannedArtifactClassLoadingExecutor.java @@ -135,5 +135,4 @@ static MavenArtifact loadBannedArtifactConfig(String definition) throws IllegalA String version = gav[2]; return MavenArtifact.create(groupId, artifactId, version); } - } 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 0cf6c7ae3..c9e132107 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 @@ -683,5 +683,4 @@ public static Deque emptyDeque() { private CollectionUtils() { } - } 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 937993726..86d5925ba 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 @@ -56,5 +56,4 @@ public static boolean equals(Iterator one, Iterator another) { private Iterators() { } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/MapUtils.java b/microsphere-java-core/src/main/java/io/microsphere/collection/MapUtils.java index 832f4f683..331ed7c92 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/MapUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/MapUtils.java @@ -1257,5 +1257,4 @@ static Map extraProperties(Map map) { private MapUtils() { } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/collection/ReadOnlyIterator.java b/microsphere-java-core/src/main/java/io/microsphere/collection/ReadOnlyIterator.java index 2f4a67792..b15e4e48b 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/collection/ReadOnlyIterator.java +++ b/microsphere-java-core/src/main/java/io/microsphere/collection/ReadOnlyIterator.java @@ -53,5 +53,4 @@ public abstract class ReadOnlyIterator implements Iterator { public final void remove() { throw new IllegalStateException("Read-Only"); } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/filter/FilterOperator.java b/microsphere-java-core/src/main/java/io/microsphere/filter/FilterOperator.java index a49dc9c17..a27f3b1f3 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/filter/FilterOperator.java +++ b/microsphere-java-core/src/main/java/io/microsphere/filter/FilterOperator.java @@ -117,5 +117,4 @@ public boolean accept(T filteredObject) { } }; } - } 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 94576736b..02a1483e5 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 @@ -336,5 +336,4 @@ private static class FileChangedMetadata { private WatchEvent.Kind[] watchEventKinds; } - } 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 8301b4109..6bd4fb172 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 @@ -93,5 +93,4 @@ protected boolean matches(String fileExtension, boolean caseSensitive) { public static FileExtensionFilter of(String extension) { return new FileExtensionFilter(extension); } - } 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 2bdb07168..42e6af8be 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 @@ -106,5 +106,4 @@ public Set scan(File rootDirectory, boolean recursive, IOFileFilter ioFile } return unmodifiableSet(filesSet); } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/json/JSONArray.java b/microsphere-java-core/src/main/java/io/microsphere/json/JSONArray.java index b5fe96af6..6100e75cb 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/json/JSONArray.java +++ b/microsphere-java-core/src/main/java/io/microsphere/json/JSONArray.java @@ -744,5 +744,4 @@ public int hashCode() { // diverge from the original, which doesn't implement hashCode return this.values.hashCode(); } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/json/JSONException.java b/microsphere-java-core/src/main/java/io/microsphere/json/JSONException.java index c5990140f..ff003391c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/json/JSONException.java +++ b/microsphere-java-core/src/main/java/io/microsphere/json/JSONException.java @@ -43,5 +43,4 @@ public class JSONException extends Exception { public JSONException(String s) { super(s); } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/json/JSONObject.java b/microsphere-java-core/src/main/java/io/microsphere/json/JSONObject.java index 8826fe097..ea9eeaeca 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/json/JSONObject.java +++ b/microsphere-java-core/src/main/java/io/microsphere/json/JSONObject.java @@ -885,5 +885,4 @@ public static Object wrap(Object o) { } return null; } - } 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 27d858429..1532b7bfe 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 @@ -578,5 +578,4 @@ public static int dehexchar(char hex) { return -1; } } - } 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 261c18cae..5b19d9b2c 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 @@ -1472,5 +1472,4 @@ static void addValues(JSONArray jsonArray, C collection, private JSONUtils() { } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/lang/function/Predicates.java b/microsphere-java-core/src/main/java/io/microsphere/lang/function/Predicates.java index a4019180c..685482cfe 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/lang/function/Predicates.java +++ b/microsphere-java-core/src/main/java/io/microsphere/lang/function/Predicates.java @@ -190,5 +190,4 @@ static Predicate or(Predicate... predicates) { return orPredicate; } } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/ConstructorUtils.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/ConstructorUtils.java index 17c5a1fbb..eb2910e10 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/ConstructorUtils.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/ConstructorUtils.java @@ -309,5 +309,4 @@ public static T newInstance(Constructor constructor, Object... args) { private ConstructorUtils() { } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/JavaType.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/JavaType.java index efad76a35..caca75494 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/JavaType.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/JavaType.java @@ -1325,5 +1325,4 @@ public static Kind valueOf(Type type) { } } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/reflect/Modifier.java b/microsphere-java-core/src/main/java/io/microsphere/reflect/Modifier.java index 6ea6789be..10d65456c 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/reflect/Modifier.java +++ b/microsphere-java-core/src/main/java/io/microsphere/reflect/Modifier.java @@ -335,5 +335,4 @@ public static boolean isEnum(int modifiers) { public static boolean isMandated(int modifiers) { return MANDATED.matches(modifiers); } - } 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 a4e3252ae..f32aa70ee 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 @@ -1572,5 +1572,4 @@ public static String[] getTypeNames(@Nullable Type... types) throws IllegalArgum private TypeUtils() { } - } 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 5ec058781..6999fb68b 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 @@ -1835,5 +1835,4 @@ static void findMetaAnnotations(AnnotatedElement annotate private AnnotationUtils() { } - } 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 605d32558..5a3050316 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 @@ -218,5 +218,4 @@ public static URL getRuntimeClassLocation(Class type) { private ClassPathUtils() { } - } 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 d4bb73980..ef6e6e300 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 @@ -203,5 +203,4 @@ public String getEncoding() { public static ResourceBundle.Control newControl(final String encoding) throws UnsupportedCharsetException { return encodingControlMap.computeIfAbsent(encoding, PropertyResourceBundleControl::new); } - } diff --git a/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookCallbacksThread.java b/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookCallbacksThread.java index 3e5011302..09ffdffa4 100644 --- a/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookCallbacksThread.java +++ b/microsphere-java-core/src/main/java/io/microsphere/util/ShutdownHookCallbacksThread.java @@ -87,5 +87,4 @@ private void executeShutdownHookCallbacks() { callback.run(); } } - } 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 e8abe67af..d224a3379 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 @@ -416,5 +416,4 @@ static Map shutdownHookThreadsMap(Class applicationShutdownHo private ShutdownHookUtils() { } - } 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 b2b34340c..c0c4e30d2 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 @@ -199,5 +199,4 @@ public String toString() { public static ValueHolder of(V value) { return new ValueHolder<>(value); } - } 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 66928ec1d..40eb3d24a 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 @@ -21,5 +21,4 @@ void assertArtifact(Artifact artifact) throws Throwable { assertEquals(TEST_ARTIFACT_ID, mavenArtifact.getArtifactId()); assertEquals(TEST_VERSION, mavenArtifact.getVersion()); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/EnumerationUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/EnumerationUtilsTest.java index 1558fa5e3..3c3033632 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/EnumerationUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/EnumerationUtilsTest.java @@ -80,5 +80,4 @@ private static void assertEnumeration(Enumeration e) { assertFalse(e.hasMoreElements()); assertThrows(NoSuchElementException.class, e::nextElement); } - } 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 29184676b..75f926be9 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 @@ -242,5 +242,4 @@ void testNewArrayDequeWithElements() { assertEquals(3, deque.size()); assertTrue(deque.containsAll(asList("a", "b", "c"))); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/collection/ReadOnlyIteratorTest.java b/microsphere-java-core/src/test/java/io/microsphere/collection/ReadOnlyIteratorTest.java index 0867b97a8..29f180273 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/collection/ReadOnlyIteratorTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/collection/ReadOnlyIteratorTest.java @@ -63,5 +63,4 @@ void testRemove() { void testForEachRemaining() { instance.forEachRemaining(this::log); } - } 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 0d7118561..3d8d4be0b 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 @@ -59,5 +59,4 @@ public int getPriority() { assertEquals(NORMAL_PRIORITY, listener.getPriority()); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/GenericEventTest.java b/microsphere-java-core/src/test/java/io/microsphere/event/GenericEventTest.java index 5ba723195..e55986aec 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/GenericEventTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/GenericEventTest.java @@ -76,5 +76,4 @@ void testWithListSource() { GenericEvent> event = new GenericEvent<>(source); assertEquals(source, event.getSource()); } - } 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 8b58dd395..f263e3c22 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 @@ -31,5 +31,4 @@ public void onEvent(Event event) { } } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/event/ParallelEventDispatcherTest.java b/microsphere-java-core/src/test/java/io/microsphere/event/ParallelEventDispatcherTest.java index 71a836dfd..713317add 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/event/ParallelEventDispatcherTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/event/ParallelEventDispatcherTest.java @@ -55,5 +55,4 @@ void testDispatchEvent() throws InterruptedException { static void afterAll() { ForkJoinPool.commonPool().shutdown(); } - } 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 90adcf75c..284097108 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 @@ -83,5 +83,4 @@ void testXOROnEmptyFilters() { Filter filter = XOR.createFilter(new Filter[0]); assertTrue(filter.accept(null)); } - } 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 fcf7fcea1..1c82495a3 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 @@ -376,5 +376,4 @@ File handleDirectoryOnIOException0(ThrowableConsumer directoryHandler) thr return testDir; } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/io/StandardFileWatchServiceTest.java b/microsphere-java-core/src/test/java/io/microsphere/io/StandardFileWatchServiceTest.java index f31c4e5f0..c8babac7f 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/io/StandardFileWatchServiceTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/io/StandardFileWatchServiceTest.java @@ -312,5 +312,4 @@ public void onFileCreated(FileChangedEvent event) { assertFalse(fileWatchService.isStarted()); } } - } 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 e66641b0e..535c6ce06 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 @@ -33,5 +33,4 @@ void testOnFailed() { assertThrows(IllegalArgumentException.class, () -> new FileChangedEvent(null, CREATED)); assertThrows(IllegalArgumentException.class, () -> new FileChangedEvent(new File(""), null)); } - } 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 367a1b969..79bc26395 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 @@ -40,5 +40,4 @@ void testAcceptOnFile() throws IOException { assertFalse(INSTANCE.accept(testFile)); testFile.deleteOnExit(); } - } 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 d7a6b42f0..5989b3321 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 @@ -25,5 +25,4 @@ void tes() { assertFalse(filter.accept(null)); assertTrue(filter.accept(file.getParentFile(), file.getName())); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/json/JSONExceptionTest.java b/microsphere-java-core/src/test/java/io/microsphere/json/JSONExceptionTest.java index 7f6b7d35a..904cf1e70 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/json/JSONExceptionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/json/JSONExceptionTest.java @@ -47,5 +47,4 @@ void testNullMessage() { JSONException exception = new JSONException(null); assertNull(exception.getMessage()); } - } 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 133ed7298..bc267a9bf 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 @@ -113,5 +113,4 @@ void testTypeMismatchOnActualNull() { assertThrows(JSONException.class, () -> typeMismatch(null, null, "String")); assertThrows(JSONException.class, () -> typeMismatch(null, "String")); } - } 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 e8ea4ef44..50bcb8a3b 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 @@ -416,5 +416,4 @@ void testDehexchar() { assertEquals(-1, dehexchar(' ')); assertEquals(-1, dehexchar('#')); } - } 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 0d0ede12f..989d165eb 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 @@ -837,5 +837,4 @@ Data createData() { data.setNames(new String[]{"Mercy", "Mercy"}); return data; } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/DelegatingWrapperTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/DelegatingWrapperTest.java index bb8fb646f..7a1d152b4 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/DelegatingWrapperTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/DelegatingWrapperTest.java @@ -48,5 +48,4 @@ void test() { assertThrows(IllegalArgumentException.class, () -> wrapper.unwrap(Integer.class)); } - } 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 c66768d4c..62a820ecc 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 @@ -71,5 +71,4 @@ void testComparator() { assertEquals(0, COMPARATOR.compare("prioritized", "prioritized")); assertEquals(0, COMPARATOR.compare("prioritized", null)); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/WrapperTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/WrapperTest.java index a9c204369..3b931dd79 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/WrapperTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/WrapperTest.java @@ -48,5 +48,4 @@ void testOnNull() { void testOnNonWrapper() { assertNull(tryUnwrap("not a wrapper", String.class)); } - } 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 1754a12cc..a7442c1bd 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 @@ -164,5 +164,4 @@ void testFilterFirst() { assertEquals(2, filterFirst(INTEGERS_LIST, EVEN_PREDICATE)); assertEquals(2, filterFirst(INTEGERS_SET, EVEN_PREDICATE)); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableFunctionTest.java b/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableFunctionTest.java index 3be2e987c..dfc8db9ee 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableFunctionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/lang/function/ThrowableFunctionTest.java @@ -108,5 +108,4 @@ void testExecute3WithNullFunction() { void testExecute3WithNullExceptionHandler() { assertThrows(IllegalArgumentException.class, () -> execute("test", function, null)); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/ExtendableProtocolURLStreamHandlerTest.java b/microsphere-java-core/src/test/java/io/microsphere/net/ExtendableProtocolURLStreamHandlerTest.java index 372b73328..4d7fee0a5 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/ExtendableProtocolURLStreamHandlerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/ExtendableProtocolURLStreamHandlerTest.java @@ -263,5 +263,4 @@ void testReformSpec() throws MalformedURLException { private static class MemberClass extends ExtendableProtocolURLStreamHandler { } - } 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 3aebfe601..c8e470273 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 @@ -717,5 +717,4 @@ void testIsArchiveURL(String protocol) { File archiveFile = resolveArchiveFile(classArchiveEntryURL); assertTrue(isArchiveURL(ofURL(protocol + COLON_CHAR + SLASH_CHAR + archiveFile.getAbsolutePath()))); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/net/test/Handler.java b/microsphere-java-core/src/test/java/io/microsphere/net/test/Handler.java index 6cce71957..0715ff42e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/net/test/Handler.java +++ b/microsphere-java-core/src/test/java/io/microsphere/net/test/Handler.java @@ -33,5 +33,4 @@ public Handler() { public Handler(String protocol) { super(protocol); } - } 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 79e22f602..b6ee25fdc 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 @@ -18,5 +18,4 @@ class CharsetUtilsTest { void testConstants() { assertNotNull(DEFAULT_CHARSET); } - } 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 fcbe0dd1b..f391259e3 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 @@ -58,5 +58,4 @@ void test() { String response = new String(outputStream.toByteArray()); log(response); } - } 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 8b5fad11e..224608eeb 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 @@ -51,5 +51,4 @@ public TestData(String name) { this.name = name; } } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/ExecutableUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/ExecutableUtilsTest.java index 56439f5f3..a6e8a4f4e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/ExecutableUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/ExecutableUtilsTest.java @@ -97,5 +97,4 @@ void testExecuteWithThrowableConsumerOnClassCastException() { assertEquals(1, (int) method.invoke(test, 1)); })); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/FieldDefinitionTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/FieldDefinitionTest.java index 5ae87c559..d0547ac49 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/FieldDefinitionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/FieldDefinitionTest.java @@ -69,5 +69,4 @@ void testSet() { assertEquals(definition.toString(), this.name); } } - } 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 5e1d8c93e..3a7c826ad 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 @@ -152,5 +152,4 @@ private void testObject() { assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, objectType.getGenericTypes()); assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, objectType.getGenericTypes()); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForGenericArrayType.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForGenericArrayType.java index b9127d8aa..956c44e79 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForGenericArrayType.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForGenericArrayType.java @@ -59,5 +59,4 @@ protected void testAs() { JavaType type = javaType.as(null); assertNull(type); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForObjectClass.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForObjectClass.java index 28a35fece..6cbf779ff 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForObjectClass.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForObjectClass.java @@ -69,5 +69,4 @@ private void testAs(Class type) { JavaType aType = javaType.as(type); assertNull(aType); } - } 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 77537871b..eee907038 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 @@ -132,5 +132,4 @@ private void testObject() { assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, objectType.getGenericTypes()); assertArrayEquals(EMPTY_JAVA_TYPE_ARRAY, objectType.getGenericTypes()); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForTypeVariable.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForTypeVariable.java index 5481d28c9..840f2df9e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForTypeVariable.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForTypeVariable.java @@ -70,5 +70,4 @@ private void testAs(Class type) { JavaType aType = javaType.as(type); assertNull(aType); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForUnknown.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForUnknown.java index cbc8851fc..c6c303fcf 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForUnknown.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForUnknown.java @@ -74,5 +74,4 @@ private void testAs(Class type) { JavaType aType = javaType.as(type); assertNull(aType); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForWildcardType.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForWildcardType.java index 3e22383bd..7230d4e8a 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForWildcardType.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/JavaTypeTestForWildcardType.java @@ -77,5 +77,4 @@ private void testAs(Class type) { JavaType aType = javaType.as(type); assertNull(aType); } - } 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 91d23f87b..1ad1cad3b 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 @@ -199,5 +199,4 @@ void testIsMandated() { 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/ReflectionTest.java b/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionTest.java index 77a7c0c4d..3f92caab1 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/reflect/ReflectionTest.java @@ -65,5 +65,4 @@ private int method(int value) { public String method(String message) { return message; } - } 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 33df90a17..390904e31 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 @@ -1086,5 +1086,4 @@ private void assertDGenericInterfaces(List types) { private void assertEGenericInterfaces(List types) { assertDGenericInterfaces(types); } - } 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 2287b5940..e1c810780 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 @@ -710,5 +710,4 @@ class A { @Since(module = "microsphere-java-core", value = "1.0.0") class B extends A { } - } 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 5197b136e..41851d98e 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 @@ -18,5 +18,4 @@ void testConstructor() { assertThrows(IllegalStateException.class, () -> new BaseUtils() { }); } - } 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 0d2e5bd75..32e47fc6e 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 @@ -758,5 +758,4 @@ public int compare(Class o1, Class o2) { return cn1.compareTo(cn2); } } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/ConfigurerTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/ConfigurerTest.java index 4844becba..dbb7bec5e 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/ConfigurerTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/ConfigurerTest.java @@ -83,5 +83,4 @@ void test() { .apply(value -> { }); } - } 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 afff3f928..bb62dace6 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 @@ -165,5 +165,4 @@ private void assertCreate(Class throwableClass, Throwab assertEquals(message, t.getMessage()); assertEquals(cause, t.getCause()); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/FunctionalTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/FunctionalTest.java index 89f31a0d6..4ba681a05 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/FunctionalTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/FunctionalTest.java @@ -83,5 +83,4 @@ private void assertValue(Functional functional, T expected) { assertNotNull(functional.toString()); valueHolder.reset(); } - } diff --git a/microsphere-java-core/src/test/java/io/microsphere/util/PropertyResourceBundleUtilsTest.java b/microsphere-java-core/src/test/java/io/microsphere/util/PropertyResourceBundleUtilsTest.java index 2caadc7fe..897bba651 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/util/PropertyResourceBundleUtilsTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/util/PropertyResourceBundleUtilsTest.java @@ -64,5 +64,4 @@ void testGetBundleWithBaseNameAndLocaleAndEncodingAndClassLoader() { private void assertResourceBundle(ResourceBundle resourceBundle) { assertEquals("测试名称", resourceBundle.getString("name")); } - } 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 bbf4c441c..be9ae8013 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 @@ -358,5 +358,4 @@ void testToStringArray() { assertSame(EMPTY_STRING_ARRAY, toStringArray(newLinkedList())); assertArrayEquals(ofArray("a", "b", "c"), toStringArray(ofList("a", "b", "c"))); } - } 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 62e2f0727..13530b40f 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 @@ -318,5 +318,4 @@ private void assertBiFunction(Type type) { assertEquals(1, typeVariable2.getBounds().length); assertEquals(Object.class, typeVariable2.getBounds()[0]); } - } diff --git a/microsphere-java-core/src/test/resources/META-INF/System.properties b/microsphere-java-core/src/test/resources/META-INF/System.properties index a60d25a37..6b31934f8 100644 --- a/microsphere-java-core/src/test/resources/META-INF/System.properties +++ b/microsphere-java-core/src/test/resources/META-INF/System.properties @@ -25,4 +25,4 @@ path.separator = Path separator (":" on UNIX) line.separator = Line separator ("\\n" on UNIX) user.name = User's account name user.home = User's home directory -user.dir = User's current working directory \ No newline at end of file +user.dir = User's current working directory diff --git a/microsphere-java-core/src/test/resources/META-INF/logging.properties b/microsphere-java-core/src/test/resources/META-INF/logging.properties index efc5f876a..3b15f244a 100644 --- a/microsphere-java-core/src/test/resources/META-INF/logging.properties +++ b/microsphere-java-core/src/test/resources/META-INF/logging.properties @@ -1,3 +1,3 @@ handlers = java.util.logging.ConsoleHandler -.level = ALL \ No newline at end of file +.level = ALL diff --git a/microsphere-java-core/src/test/resources/META-INF/test.properties b/microsphere-java-core/src/test/resources/META-INF/test.properties index 05666e0cb..55b03acb6 100644 --- a/microsphere-java-core/src/test/resources/META-INF/test.properties +++ b/microsphere-java-core/src/test/resources/META-INF/test.properties @@ -1 +1 @@ -name = 测试名称 \ No newline at end of file +name = 测试名称 diff --git a/microsphere-java-core/src/test/resources/META-INF/test_zh_CN.properties b/microsphere-java-core/src/test/resources/META-INF/test_zh_CN.properties index 05666e0cb..55b03acb6 100644 --- a/microsphere-java-core/src/test/resources/META-INF/test_zh_CN.properties +++ b/microsphere-java-core/src/test/resources/META-INF/test_zh_CN.properties @@ -1 +1 @@ -name = 测试名称 \ No newline at end of file +name = 测试名称 diff --git a/microsphere-java-core/src/test/resources/junit-platform.properties b/microsphere-java-core/src/test/resources/junit-platform.properties index 5c558927b..30856afd5 100644 --- a/microsphere-java-core/src/test/resources/junit-platform.properties +++ b/microsphere-java-core/src/test/resources/junit-platform.properties @@ -1,3 +1,3 @@ junit.jupiter.extensions.autodetection.enabled = true -junit.jupiter.execution.parallel.enabled = false \ No newline at end of file +junit.jupiter.execution.parallel.enabled = false diff --git a/microsphere-java-core/src/test/resources/logback-test.xml b/microsphere-java-core/src/test/resources/logback-test.xml index e3375b74c..95b820dd6 100644 --- a/microsphere-java-core/src/test/resources/logback-test.xml +++ b/microsphere-java-core/src/test/resources/logback-test.xml @@ -12,4 +12,4 @@ - \ No newline at end of file + diff --git a/microsphere-java-core/src/test/resources/test.txt b/microsphere-java-core/src/test/resources/test.txt index 30d74d258..9daeafb98 100644 --- a/microsphere-java-core/src/test/resources/test.txt +++ b/microsphere-java-core/src/test/resources/test.txt @@ -1 +1 @@ -test \ No newline at end of file +test diff --git a/microsphere-java-core/src/test/resources/test/json/clean.txt b/microsphere-java-core/src/test/resources/test/json/clean.txt index 235feeb9f..26e56323b 100644 --- a/microsphere-java-core/src/test/resources/test/json/clean.txt +++ b/microsphere-java-core/src/test/resources/test/json/clean.txt @@ -1,5 +1,4 @@ - /** * comment 1 */ @@ -8,4 +7,4 @@ // comment 3 -a \ No newline at end of file +a diff --git a/microsphere-java-dependencies/pom.xml b/microsphere-java-dependencies/pom.xml index aba268cdb..3a21ea1c6 100644 --- a/microsphere-java-dependencies/pom.xml +++ b/microsphere-java-dependencies/pom.xml @@ -61,4 +61,4 @@ - \ No newline at end of file + diff --git a/microsphere-java-parent/pom.xml b/microsphere-java-parent/pom.xml index 445f63f9f..b74bd21b9 100644 --- a/microsphere-java-parent/pom.xml +++ b/microsphere-java-parent/pom.xml @@ -62,4 +62,4 @@ - \ No newline at end of file + diff --git a/microsphere-java-test/pom.xml b/microsphere-java-test/pom.xml index 40504c98e..d1f64ad62 100644 --- a/microsphere-java-test/pom.xml +++ b/microsphere-java-test/pom.xml @@ -91,4 +91,4 @@ - \ No newline at end of file + diff --git a/microsphere-java-test/src/main/resources/junit-platform.properties b/microsphere-java-test/src/main/resources/junit-platform.properties index 1cebb76d5..25ce5c984 100644 --- a/microsphere-java-test/src/main/resources/junit-platform.properties +++ b/microsphere-java-test/src/main/resources/junit-platform.properties @@ -1 +1 @@ -junit.jupiter.extensions.autodetection.enabled = true \ No newline at end of file +junit.jupiter.extensions.autodetection.enabled = true diff --git a/microsphere-java-test/src/main/resources/logback-test.xml b/microsphere-java-test/src/main/resources/logback-test.xml index 888b2ff1b..39dbc010c 100644 --- a/microsphere-java-test/src/main/resources/logback-test.xml +++ b/microsphere-java-test/src/main/resources/logback-test.xml @@ -16,4 +16,4 @@ - \ No newline at end of file + diff --git a/microsphere-jdk-tools/pom.xml b/microsphere-jdk-tools/pom.xml index b0822a8de..d3a1a0b07 100644 --- a/microsphere-jdk-tools/pom.xml +++ b/microsphere-jdk-tools/pom.xml @@ -55,4 +55,4 @@ - \ No newline at end of file + diff --git a/microsphere-jdk-tools/src/test/resources/logback-test.xml b/microsphere-jdk-tools/src/test/resources/logback-test.xml index e3375b74c..95b820dd6 100644 --- a/microsphere-jdk-tools/src/test/resources/logback-test.xml +++ b/microsphere-jdk-tools/src/test/resources/logback-test.xml @@ -12,4 +12,4 @@ - \ No newline at end of file + diff --git a/microsphere-lang-model/pom.xml b/microsphere-lang-model/pom.xml index 101084931..3b9cee924 100644 --- a/microsphere-lang-model/pom.xml +++ b/microsphere-lang-model/pom.xml @@ -92,4 +92,4 @@ - \ No newline at end of file + diff --git a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/ConstructorUtils.java b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/ConstructorUtils.java index c864c1c7d..b33bf84b9 100644 --- a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/ConstructorUtils.java +++ b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/ConstructorUtils.java @@ -289,5 +289,4 @@ static List filterDeclaredConstructors(TypeMirror type, Predi return filterElements(constructors, constructorFilters); } - } diff --git a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MemberUtils.java b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MemberUtils.java index 77f027a4f..6d74aa263 100644 --- a/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MemberUtils.java +++ b/microsphere-lang-model/src/main/java/io/microsphere/lang/model/util/MemberUtils.java @@ -419,5 +419,4 @@ static List findDeclaredMembers(TypeMirror type, boolean static List findDeclaredMembers(TypeElement type, boolean all, Predicate... memberFilters) { return all ? findAllDeclaredMembers(type, memberFilters) : findDeclaredMembers(type, memberFilters); } - } 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 0d0caec57..e6f7fa636 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 @@ -47,5 +47,4 @@ void test() { assertFalse(visitor.supports(super.testTypeElement)); assertFalse(visitor.supports(NULL_ELEMENT)); } - } diff --git a/pom.xml b/pom.xml index 227fd62f8..d1eb25b0f 100644 --- a/pom.xml +++ b/pom.xml @@ -65,4 +65,4 @@ microsphere-annotation-processor - \ No newline at end of file + diff --git a/release-notes.md b/release-notes.md index 664aa5904..6457096b2 100644 --- a/release-notes.md +++ b/release-notes.md @@ -189,4 +189,4 @@ This update includes general enhancements, improved documentation, and dependenc For a detailed list of changes, see the [Full Changelog](https://github.com/microsphere-projects/.../compare/0.3.4...0.3.5). -**Full Changelog**: https://github.com/microsphere-projects/microsphere-java/compare/0.3.4...0.3.5 \ No newline at end of file +**Full Changelog**: https://github.com/microsphere-projects/microsphere-java/compare/0.3.4...0.3.5 From d6c766be5592a529ecad953ee7403feb4fb02a05 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 15:45:40 +0000 Subject: [PATCH 2/2] Strip trailing whitespace from release notes --- release-notes.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/release-notes.md b/release-notes.md index 6457096b2..e43d79994 100644 --- a/release-notes.md +++ b/release-notes.md @@ -5,10 +5,10 @@ # Release Notes - Version 0.2.7 ## New Features -- **Artifact Detector Enhancements**: +- **Artifact Detector Enhancements**: - Added `Version.ofVersion(Class)` for artifact detection. ([6a2e5273](#)) - Refactored `ArtifactDetector` detection API. ([68cc094c](#)) -- **Version Improvements**: +- **Version Improvements**: - Added a test for `javax.annotation.Nullable`. ([d2e39cd7](#)) - Refactored `Version` behavior. ([04feb0ef](#)) @@ -36,12 +36,12 @@ For specific changes, refer to the commit hashes linked above. - Bumped `io.github.microsphere-projects:microsphere-all-bom` to version `0.2.0`. ([#270](https://github.com/microsphere-projects/microsphere-all-bom)) ## Build and Workflow Enhancements -- Enhanced GitHub Actions Maven workflow for tidier execution. -- Updated `dependabot.yml` for improved dependency management. -- Improved release notes generation and release creation process. +- Enhanced GitHub Actions Maven workflow for tidier execution. +- Updated `dependabot.yml` for improved dependency management. +- Improved release notes generation and release creation process. ## Other Changes -- Removed unnecessary newlines in files for improved formatting. +- Removed unnecessary newlines in files for improved formatting. **Full Changelog**: https://github.com/microsphere-projects/microsphere-java/compare/0.2.7...0.2.8## v0.2.9 @@ -52,8 +52,8 @@ For specific changes, refer to the commit hashes linked above. - **microsphere-bom**: Updated to `0.2.1`. ## Build and Workflow Enhancements -- Upgraded Maven Wrapper to `3.9.14`. -- Formatted Java versions matrix spacing for enhanced readability. +- Upgraded Maven Wrapper to `3.9.14`. +- Formatted Java versions matrix spacing for enhanced readability. ## Other Changes - Version bumped to `0.2.9` post-release of `0.2.8` for upcoming development. @@ -86,13 +86,13 @@ For more details, refer to the full changelog in the repository. - Collect multiple artifacts and add trace log for enhanced observability. ([db9cb00f](#)) ## Dependency Updates -- Adopt `microsphere-all-bom` to streamline dependencies. +- Adopt `microsphere-all-bom` to streamline dependencies. - Remove outdated `testing/javaee` BOMs. ([56fa380e](#)) ## Other Changes -- Version bump to prepare for post-0.3.0 development. ([c18526da](#)) +- Version bump to prepare for post-0.3.0 development. ([c18526da](#)) -**Note**: This release includes minor enhancements and dependency refinements to improve overall functionality. +**Note**: This release includes minor enhancements and dependency refinements to improve overall functionality. **Full Changelog**: https://github.com/microsphere-projects/microsphere-java/compare/0.3.0...0.3.1## v0.3.2 @@ -182,7 +182,7 @@ This update includes general enhancements, improved documentation, and dependenc - Cleaned up redundant `@since` tags and improved Javadocs across multiple files. ([4ed7692d](https://github.com/microsphere-projects/...)) - Merged multiple updates and changes from the `main` branch into `release`. ([f32bd04b](https://github.com/microsphere-projects/...), [f675a18f](https://github.com/microsphere-projects/...), etc.) - Updated prompt templates and onboarding files. ([cf27bf1e](https://github.com/microsphere-projects/...)) - + ## Other Changes - Made extensive use of `SetUtils` and `MapUtils` helper methods across codebase for cleaner factory method implementations. ([fc3449c6](https://github.com/microsphere-projects/...), [3181249a](https://github.com/microsphere-projects/...)) - Improved null handling in various utilities by using `nullSafe` and `defaultIfNull` methods. ([ce0d215f](https://github.com/microsphere-projects/...), [d75c00dd](https://github.com/microsphere-projects/...))