Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
fa8a22b
Update ProxyUtils.java
mercyblitz Jun 16, 2024
85a02f9
Update ReflectionUtils.java
mercyblitz Jun 16, 2024
b8b82eb
Update ClassLoaderUtils.java
mercyblitz Jun 16, 2024
0619609
Update ClassUtils.java
mercyblitz Jun 16, 2024
d694d8c
Update Base64.java
mercyblitz Jun 16, 2024
6f5e14c
Update WindowsRegistry.java
mercyblitz Jun 16, 2024
480e791
Update PropertyResourceBundleControl.java
mercyblitz Jun 16, 2024
683fe9b
Update StringUtils.java
mercyblitz Jun 16, 2024
6d03f23
Update Version.java
mercyblitz Jun 16, 2024
e30b568
Update pom.xml
mercyblitz Jun 20, 2024
7f9c6e4
Update URLUtils.java
mercyblitz Jun 20, 2024
2b24c38
Create IOUtils.java
mercyblitz Jun 20, 2024
c92e7e2
Update PropertyResourceBundleControl.java
mercyblitz Jun 20, 2024
1951db5
Update PropertyResourceBundleUtils.java
mercyblitz Jun 20, 2024
375b42c
Create IOFileFilter.java
mercyblitz Jun 20, 2024
2feacab
Create TrueFileFilter.java
mercyblitz Jun 20, 2024
01ae869
Update SimpleFileScanner.java
mercyblitz Jun 20, 2024
41994c3
Update SystemUtils.java
mercyblitz Jun 20, 2024
94b7eb9
Update WindowsRegistry.java
mercyblitz Jun 20, 2024
ac6f82f
Update ReflectionUtils.java
mercyblitz Jun 20, 2024
9fb77e7
Update IOFileFilter.java
mercyblitz Jun 20, 2024
126d9a2
Update FileUtils.java
mercyblitz Jun 20, 2024
89b572f
Update FileConstants.java
mercyblitz Jun 20, 2024
204a1ac
Update FileConstantsTest.java
mercyblitz Jun 20, 2024
6007ef0
Update FileConstants.java
mercyblitz Jun 20, 2024
f52e1d6
Update FileConstantsTest.java
mercyblitz Jun 20, 2024
ec99d4f
Update FileUtils.java
mercyblitz Jun 20, 2024
6abde49
Update ClassUtils.java
mercyblitz Jun 20, 2024
53dabc0
Create FileExtensionFilter.java
mercyblitz Jun 20, 2024
5b17b37
Update IOFileFilter.java
mercyblitz Jun 20, 2024
4b25554
Update TrueFileFilter.java
mercyblitz Jun 20, 2024
057d5d2
Update ExceptionUtils.java
mercyblitz Jun 20, 2024
197420c
Update ClassLoaderUtils.java
mercyblitz Jun 20, 2024
1d2af8a
Update ExtendableProtocolURLStreamHandler.java
mercyblitz Jun 20, 2024
36ccbc7
Update SimpleClassScanner.java
mercyblitz Jun 20, 2024
bc06658
Update StopWatch.java
mercyblitz Jun 20, 2024
5e08f54
Update SystemUtils.java
mercyblitz Jun 20, 2024
b41c8de
Update SystemUtilsTest.java
mercyblitz Jun 20, 2024
5441cc1
Update IOUtils.java
mercyblitz Jun 20, 2024
1fd01a0
Update IOUtils.java
mercyblitz Jun 20, 2024
fac4bd1
Update WindowsRedefinedClassLoader.java
mercyblitz Jun 20, 2024
f508f19
Update SimpleJarEntryScanner.java
mercyblitz Jun 20, 2024
5f6eefa
Update PropertiesToStringConverter.java
mercyblitz Jun 20, 2024
7cc9c1f
Update JarUtils.java
mercyblitz Jun 20, 2024
b2c7301
Update UnsafeUtils.java
mercyblitz Jun 20, 2024
d29fe6f
Update StringToBooleanConverter.java
mercyblitz Jun 20, 2024
ac0412c
Update StringToCharArrayConverter.java
mercyblitz Jun 20, 2024
54641b3
Update StringToDoubleConverter.java
mercyblitz Jun 20, 2024
534cabf
Update StringToFloatConverter.java
mercyblitz Jun 20, 2024
185b277
Update StringToIntegerConverter.java
mercyblitz Jun 20, 2024
d1ee894
Update StringToLongConverter.java
mercyblitz Jun 20, 2024
a0207a3
Update StringToShortConverter.java
mercyblitz Jun 20, 2024
365dab5
Update StringToMultiValueConverter.java
mercyblitz Jun 20, 2024
57b2aea
Update StringToCharacterConverter.java
mercyblitz Jun 20, 2024
e402ec0
Update ManagementUtils.java
mercyblitz Jun 20, 2024
78d9cea
Update DelegatingURLConnectionTest.java
mercyblitz Jun 20, 2024
81d5718
Update URLUtilsTest.java
mercyblitz Jun 20, 2024
f4068df
Update WindowsRegistryTest.java
mercyblitz Jun 20, 2024
dace85b
Update FileUtils.java
mercyblitz Jun 20, 2024
07feecd
Update JarUtilsTest.java
mercyblitz Jun 20, 2024
871e446
Create DirectoryFileFilter.java
mercyblitz Jun 20, 2024
9f46a60
Create NameFileFilter.java
mercyblitz Jun 20, 2024
8820f30
Update SimpleFileScannerTest.java
mercyblitz Jun 20, 2024
a1bf0fb
Update IOFileFilter.java
mercyblitz Jun 20, 2024
f7c32d0
Update JarUtilsTest.java
mercyblitz Jun 20, 2024
e406ba0
Update ClassPathUtils.java
mercyblitz Jun 20, 2024
ecbdd16
Update StringToInputStreamConverterTest.java
mercyblitz Jun 20, 2024
cb3e660
Update FileUtils.java
mercyblitz Jun 20, 2024
5badfe8
Update ClassUtils.java
mercyblitz Jun 20, 2024
3263cac
Merge pull request #10 from microsphere-projects/feature-remove-apach…
mercyblitz Jun 20, 2024
10a9b98
Update JarUtilsTest.java
mercyblitz Jun 20, 2024
760e311
Merge pull request #11 from microsphere-projects/feature-remove-apach…
mercyblitz Jun 20, 2024
7c0325f
Polish #12 : Remove javax.annotation-api
mercyblitz Jun 21, 2024
67e3fe1
Update ClassLoaderUtils.java
mercyblitz Jun 21, 2024
3bd965a
Polish #12 : add optional artifact - commons-logging
mercyblitz Jun 21, 2024
552c183
Create Logger.java
mercyblitz Jun 21, 2024
4e3f384
Create AbstractLogger.java
mercyblitz Jun 21, 2024
dd90ac7
Create LoggerFactory.java
mercyblitz Jun 21, 2024
e5a8286
Create NoOpLogger.java
mercyblitz Jun 21, 2024
145732d
Create Sfl4jLoggerFactory.java
mercyblitz Jun 21, 2024
35cf103
Create ACLLoggerFactory.java
mercyblitz Jun 21, 2024
72b4142
Create JDKLoggerFactory.java
mercyblitz Jun 21, 2024
e375da9
Create io.microsphere.logging.LoggerFactory
mercyblitz Jun 21, 2024
dec2cd6
Update Logger.java
mercyblitz Jun 21, 2024
02bbfb0
Update LoggerFactory.java
mercyblitz Jun 21, 2024
b6b6e24
Update AbstractArtifactResolver.java
mercyblitz Jun 21, 2024
12723b3
Update AbstractURLClassPathHandle.java
mercyblitz Jun 21, 2024
96ce945
Update ArtifactDetector.java
mercyblitz Jun 21, 2024
07ea251
Update BannedArtifactClassLoadingExecutor.java
mercyblitz Jun 21, 2024
770ebdb
Update WindowsRedefinedClassLoader.java
mercyblitz Jun 21, 2024
7326156
Update JmxUtils.java
mercyblitz Jun 21, 2024
c691aed
Update Configurer.java
mercyblitz Jun 21, 2024
3c80f21
Update AbstractTestCase.java
mercyblitz Jun 21, 2024
f394e1b
Update ReflectionUtilsTest.java
mercyblitz Jun 21, 2024
815d517
Update StopWatchTest.java
mercyblitz Jun 21, 2024
a37b41b
Update LoggerFactory.java
mercyblitz Jun 21, 2024
6e9bb0d
Update LoggerFactory.java
mercyblitz Jun 21, 2024
5ba6f27
Create LoggerFactoryTest.java
mercyblitz Jun 21, 2024
3fdf6bf
Update FormatUtils.java
mercyblitz Jun 21, 2024
71cc4c8
Update AbstractLogger.java
mercyblitz Jun 21, 2024
77c1344
Update ACLLoggerFactory.java
mercyblitz Jun 21, 2024
90977fb
Update JDKLoggerFactory.java
mercyblitz Jun 21, 2024
977c6a2
Update Logger.java
mercyblitz Jun 21, 2024
43fc385
Update LoggerFactory.java
mercyblitz Jun 21, 2024
c16f911
Update NoOpLogger.java
mercyblitz Jun 21, 2024
4804344
Update Sfl4jLoggerFactory.java
mercyblitz Jun 21, 2024
3efdfd8
Create logging.properties
mercyblitz Jun 21, 2024
03dd533
Update LoggerFactoryTest.java
mercyblitz Jun 21, 2024
473b3a0
Update LoggerFactoryTest.java
mercyblitz Jun 21, 2024
4b9199e
Update LoggerUtils.java
mercyblitz Jun 21, 2024
b3122d2
Update pom.xml
mercyblitz Jun 21, 2024
c839d0f
Refactor test-cases
mercyblitz Jun 21, 2024
0b34228
Reimport classes
mercyblitz Jun 21, 2024
de908c1
Merge pull request #13 from microsphere-projects/opt-remove-third-par…
mercyblitz Jun 21, 2024
68e5e00
Update DelegatingURLConnectionTest.java
mercyblitz Jun 22, 2024
57a405c
Remove UnsafeUtils temporarily
mercyblitz Jun 22, 2024
faf8d20
Compatible with Java 9
mercyblitz Jun 22, 2024
993b83a
Update JarUtilsTest.java
mercyblitz Jun 22, 2024
7f22709
Update SimpleJarEntryScannerTest.java
mercyblitz Jun 22, 2024
8b31087
Update Configurer.java
mercyblitz Jun 22, 2024
924cbc1
Update ConfigurerTest.java
mercyblitz Jun 22, 2024
d8d72fb
Create ValueHolder.java
mercyblitz Jun 22, 2024
aa8a8a9
Create ValueHolderTest.java
mercyblitz Jun 22, 2024
20387dc
Update ValueHolderTest.java
mercyblitz Jun 22, 2024
9b9f380
Update ValueHolder.java
mercyblitz Jun 22, 2024
8753b45
Update ValueHolderTest.java
mercyblitz Jun 22, 2024
e1aa014
Create Functional.java
mercyblitz Jun 22, 2024
bf152a4
Create FunctionalTest.java
mercyblitz Jun 22, 2024
d86c78c
Update SystemUtils.java
mercyblitz Jun 23, 2024
7ab85ad
Update SystemUtilsTest.java
mercyblitz Jun 23, 2024
bb86c8f
Update URLUtilsTest.java
mercyblitz Jun 23, 2024
b08dd8e
Merge pull request #14 from microsphere-projects/feature-compatible-w…
mercyblitz Jun 23, 2024
8b9751f
Update ManagementUtilsTest.java
mercyblitz Jun 23, 2024
4c759f4
Update ManagementUtils.java
mercyblitz Jun 23, 2024
91923f6
Remove System.err.println
mercyblitz Jun 23, 2024
039fbaf
Update ReflectionUtilsTest.java
mercyblitz Jun 23, 2024
022627a
Remove System.out.printf
mercyblitz Jun 23, 2024
7d3624e
Remove System.out.printf
mercyblitz Jun 23, 2024
e87d5df
Remove System.out.printf
mercyblitz Jun 23, 2024
c4c22fc
Merge pull request #15 from microsphere-projects/feature-compatible-w…
mercyblitz Jun 23, 2024
002fe92
Fix the test-case for Java 21
mercyblitz Jun 23, 2024
f1a6f0b
Fix the test-case for Java 21
mercyblitz Jun 23, 2024
c586f6d
Fix the test-case for Java 21
mercyblitz Jun 23, 2024
cb7d225
Fix the test-case for Java 21
mercyblitz Jun 23, 2024
5ec0515
Update StringToNavigableSetConverterTest.java
mercyblitz Jun 23, 2024
7d8d437
Update StringToSortedSetConverterTest.java
mercyblitz Jun 23, 2024
8ad1506
Update ServiceLoaderUtils.java
mercyblitz Jun 23, 2024
4ab73b4
Create VersionUtils.java
mercyblitz Jun 23, 2024
6f74a98
Create VersionUtilsTest.java
mercyblitz Jun 23, 2024
84fdbcf
Update VersionUtils.java
mercyblitz Jun 23, 2024
d38c8de
Update VersionUtilsTest.java
mercyblitz Jun 23, 2024
6675858
Update ConstructorUtils.java
mercyblitz Jun 23, 2024
1be1410
Update MethodHandleUtils.java
mercyblitz Jun 23, 2024
a2df598
Update VersionUtils.java
mercyblitz Jun 23, 2024
682fa12
Update AccessibleObjectUtils.java
mercyblitz Jun 23, 2024
b55d825
Create AccessibleObjectUtilsTest.java
mercyblitz Jun 23, 2024
fff0fb5
Update MemberUtils.java
mercyblitz Jun 23, 2024
0ec611d
Update AccessibleObjectUtils.java
mercyblitz Jun 23, 2024
d468b75
Update ShutdownHookUtilsTest.java
mercyblitz Jun 23, 2024
705521f
Update VersionUtils.java
mercyblitz Jun 23, 2024
fd1d9cc
Update ClassUtilsTest.java
mercyblitz Jun 23, 2024
b1cdf51
Update AccessibleObjectUtils.java
mercyblitz Jun 23, 2024
5815744
Update MethodHandleUtils.java
mercyblitz Jun 23, 2024
7e2b769
Update ClassPathUtils.java
mercyblitz Jun 23, 2024
effefe1
Update ClassPathUtilsTest.java
mercyblitz Jun 23, 2024
9425635
Update WindowsRegistry.java
mercyblitz Jun 23, 2024
65f9e0c
Update AccessibleObjectUtils.java
mercyblitz Jun 24, 2024
3a9b623
Update AccessibleObjectUtilsTest.java
mercyblitz Jun 24, 2024
3d2d086
Update MethodUtils.java
mercyblitz Jun 24, 2024
d2da6b4
Update MethodUtilsTest.java
mercyblitz Jun 24, 2024
e6ccbe1
Update ProcessExecutor.java
mercyblitz Jun 24, 2024
85b960d
Update JarUtils.java
mercyblitz Jun 24, 2024
402445f
Update FieldUtils.java
mercyblitz Jun 24, 2024
3d94ac5
Update ClassLoaderUtils.java
mercyblitz Jun 24, 2024
eef70c6
Update ReflectionUtils.java
mercyblitz Jun 24, 2024
d2c886a
Update MethodUtils.java
mercyblitz Jun 24, 2024
18c0a56
Update MemberUtils.java
mercyblitz Jun 24, 2024
460865d
Update FieldUtils.java
mercyblitz Jun 24, 2024
ae57c1b
Update ProxyUtils.java
mercyblitz Jun 24, 2024
cd3874b
Update ReflectionUtils.java
mercyblitz Jun 24, 2024
db1f816
Update TypeUtils.java
mercyblitz Jun 24, 2024
d688a09
Remove addShutdownHookCallback
mercyblitz Jun 24, 2024
cf14f9e
Remove addShutdownHookCallback
mercyblitz Jun 24, 2024
e5c1874
Remove addShutdownHookCallback
mercyblitz Jun 24, 2024
130e763
Remove addShutdownHookCallback
mercyblitz Jun 24, 2024
8a2e39c
Add logging for ClassLoading
mercyblitz Jun 24, 2024
4b9d5d2
Add null-safe
mercyblitz Jun 24, 2024
ad5b23d
Update FieldUtilsTest.java
mercyblitz Jun 24, 2024
8b6ee1b
Remove the useless methods
mercyblitz Jun 24, 2024
9e052ab
Create ExecutableUtils.java
mercyblitz Jun 24, 2024
6970260
Update ConstructorUtils.java
mercyblitz Jun 24, 2024
e8283a9
Update ClassLoaderUtilsTest.java
mercyblitz Jun 24, 2024
affd1c9
Refactor ShutdownHookUtils
mercyblitz Jun 24, 2024
18a9d8a
Update ClassUtils.java
mercyblitz Jun 24, 2024
6b21708
Create ExecutableUtilsTest.java
mercyblitz Jun 24, 2024
cbfcea9
Create ReflectionTest.java
mercyblitz Jun 24, 2024
91cfc47
Add Logging
mercyblitz Jun 24, 2024
4e28d1a
Add logging
mercyblitz Jun 24, 2024
d701e3f
Update ClassLoaderUtilsTest.java
mercyblitz Jun 24, 2024
47c4e36
Update URLUtilsTest.java
mercyblitz Jun 24, 2024
1b88fc8
Refactor
mercyblitz Jun 24, 2024
0ff9092
Update ServiceLoaderUtilsTest.java
mercyblitz Jun 24, 2024
ae823cc
Delete java.lang.CharSequence
mercyblitz Jun 24, 2024
da0ea12
Update ExecutableUtilsTest.java
mercyblitz Jun 24, 2024
afe4369
Update FieldUtilsTest.java
mercyblitz Jun 24, 2024
fe988fe
Update ClassLoaderUtilsTest.java
mercyblitz Jun 24, 2024
5106a55
Update ExtendableProtocolURLStreamHandlerTest.java
mercyblitz Jun 24, 2024
7a419aa
Update ReflectionUtils.java
mercyblitz Jun 25, 2024
a7cbeaa
Update ReflectionUtilsTest.java
mercyblitz Jun 25, 2024
b4ddc53
Update VersionUtils.java
mercyblitz Jun 25, 2024
acc6f72
Update ClassLoaderUtils.java
mercyblitz Jun 25, 2024
1675363
Update ReflectionUtils.java
mercyblitz Jun 25, 2024
851ec92
Update ReflectionUtilsTest.java
mercyblitz Jun 25, 2024
163663e
Update VersionUtils.java
mercyblitz Jun 25, 2024
46121f6
Merge pull request #16 from microsphere-projects/feature-compatible-w…
mercyblitz Jun 25, 2024
4170c42
Update MethodUtils.java
mercyblitz Jun 25, 2024
4190a93
Update VersionUtils.java
mercyblitz Jun 25, 2024
3a65d4f
Remove the module 'microsphere-jdk-tools'
mercyblitz Jun 26, 2024
8441562
Add JDK 11
mercyblitz Jun 26, 2024
9fd18a0
Merge pull request #17 from microsphere-projects/feature-compatible-w…
mercyblitz Jun 26, 2024
67eff30
rename asSet to ofSet
mercyblitz Jun 26, 2024
3edabc6
rename toList to be ofList
mercyblitz Jun 26, 2024
19f0d84
static import Collections.emptyList()
mercyblitz Jun 26, 2024
bce160c
static import
mercyblitz Jun 26, 2024
df6c246
Reimport
mercyblitz Jun 26, 2024
01cffb8
static import StringUtils
mercyblitz Jun 26, 2024
7392fdd
Reimport
mercyblitz Jun 26, 2024
3477822
static import LoggerFactory.getLogger
mercyblitz Jun 26, 2024
cc778ba
Compatible with JDK 17
mercyblitz Jun 26, 2024
1141b90
Update AnnotationUtils.java
mercyblitz Jun 26, 2024
3958b77
Update AnnotationUtilsTest.java
mercyblitz Jun 26, 2024
3f12f5f
Update ClassLoaderUtils.java
mercyblitz Jun 26, 2024
ac2aaf9
Update MethodUtils.java
mercyblitz Jun 26, 2024
8dec291
Update MethodHandleUtils.java
mercyblitz Jun 26, 2024
115e6c0
Update AccessibleObjectUtils.java
mercyblitz Jun 26, 2024
0c4bcf1
Update ExecutableUtils.java
mercyblitz Jun 26, 2024
21f9219
Update maven.yml
mercyblitz Jun 26, 2024
de13b7d
Update maven.yml
mercyblitz Jun 26, 2024
8c4c4ed
Merge pull request #18 from microsphere-projects/feature-compatible-w…
mercyblitz Jun 26, 2024
fb2fde2
Update ReflectionUtils.java
mercyblitz Jun 26, 2024
4568bff
Update MethodUtils.java
mercyblitz Jun 26, 2024
505cdb0
Refactor
mercyblitz Jun 27, 2024
39297da
Update MethodUtilsTest.java
mercyblitz Jun 27, 2024
415a4cb
Update pom.xml
mercyblitz Jun 27, 2024
8a8d57b
Update maven.yml
mercyblitz Jun 27, 2024
e5c235b
Merge pull request #19 from microsphere-projects/feature-compatible-w…
mercyblitz Jun 27, 2024
0b8df9e
Merge branch 'release' into main
mercyblitz Jul 1, 2024
64c9fec
Update pom.xml
mercyblitz Jul 11, 2024
83a6353
Update maven-build.yml
mercyblitz Aug 8, 2024
9377241
Create maven-publish.yml
mercyblitz Aug 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven
name: Maven Build

on:
push:
Expand All @@ -19,10 +19,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
java: [ '8', '11' , '17' , '21' ]
steps:
- uses: actions/checkout@v4
- name: Java ${{ matrix.Java }}
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.Java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Maven Publish

on:
push:
branches: [ 'release' ]
workflow_dispatch:
inputs:
revision:
description: 'The version to release'
required: true
default: '0.0.1-SNAPSHOT'

jobs:
build:
runs-on: ubuntu-latest
if: ${{ inputs.revision }}
steps:
- name: Checkout Source
uses: actions/checkout@v4

- name: Setup Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
cache: maven

- name: Publish package
run: mvn --batch-mode --update-snapshots -Drevision=${{ inputs.revision }} -Prelease clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
MAVEN_GPG_KEY: ${{ secrets.OSS_SIGNING_KEY }}
MAVEN_GPG_PASSPHRASE : ${{ secrets.OSS_SIGNING_PASSWORD }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# microsphere-framework
The common feautres used in the other microsphere sub-projects
The common features used in the other microsphere sub-projects
7 changes: 0 additions & 7 deletions microsphere-annotation-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
<version>${revision}</version>
</dependency>

<!-- Third-Party Dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<optional>true</optional>
</dependency>

<!-- Testing -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@



import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.microsphere.logging.Logger;
import io.microsphere.logging.LoggerFactory;

import static java.lang.String.format;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void testGetDeclaredFields() {
}

@Test
public void testGetAllDeclaredFields() {
public void testFindAllDeclaredFields() {
TypeElement type = getType(Model.class);

List<VariableElement> fields = getAllDeclaredFields(type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testDeclaredMethods() {
assertEquals(12, methods.size());

methods = getAllDeclaredMethods(type);
assertEquals(34, methods.size());
assertTrue(methods.size() >= 33);

assertTrue(getAllDeclaredMethods((TypeElement) null).isEmpty());
assertTrue(getAllDeclaredMethods((TypeMirror) null).isEmpty());
Expand Down
48 changes: 30 additions & 18 deletions microsphere-java-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,28 @@

<dependencies>

<!-- Java Common Annotations -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<optional>true</optional>
</dependency>

<!-- Java API Dependencies -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<optional>true</optional>
</dependency>

<!-- Apache Commons Dependencies -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>

<!-- Third-Party Dependencies -->
<!-- SLF4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<optional>true</optional>
</dependency>

<!-- Apache Commons Logging -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<optional>true</optional>
</dependency>

<!-- Testing -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -78,6 +68,14 @@
<scope>test</scope>
</dependency>

<!-- Java Common Annotations -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<scope>test</scope>
</dependency>

<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
Expand Down Expand Up @@ -112,6 +110,20 @@
<artifactId>javax.annotation-api</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--illegal-access=permit
--add-opens java.base/java.lang.invoke=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ public int hashCode() {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("BeanProperty{");
sb.append("name='").append(name).append('\'');
sb.append(", value=").append(value);
sb.append(", declaringClass=").append(declaringClass);
sb.append(", descriptor=").append(descriptor);
sb.append('}');
return sb.toString();
String sb = "BeanProperty{" + "name='" + name + '\'' +
", value=" + value +
", declaringClass=" + declaringClass +
", descriptor=" + descriptor +
'}';
return sb;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.microsphere.classloading;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.microsphere.logging.Logger;

import java.io.File;
import java.io.IOException;
Expand All @@ -11,6 +10,7 @@
import java.util.LinkedHashSet;
import java.util.Set;

import static io.microsphere.logging.LoggerFactory.getLogger;
import static io.microsphere.net.URLUtils.resolveArchiveFile;

/**
Expand All @@ -21,7 +21,7 @@
*/
public abstract class AbstractArtifactResolver implements ArtifactResolver {

protected final Logger logger = LoggerFactory.getLogger(getClass());
protected final Logger logger = getLogger(getClass());

private int priority;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
package io.microsphere.classloading;

import io.microsphere.lang.Prioritized;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.microsphere.logging.Logger;

import javax.annotation.Nonnull;
import java.lang.reflect.Field;
Expand All @@ -27,6 +26,7 @@
import java.util.Iterator;
import java.util.Objects;

import static io.microsphere.logging.LoggerFactory.getLogger;
import static io.microsphere.net.URLUtils.EMPTY_URL_ARRAY;
import static io.microsphere.net.URLUtils.resolveBasePath;
import static io.microsphere.reflect.FieldUtils.findField;
Expand All @@ -46,7 +46,7 @@
*/
public abstract class AbstractURLClassPathHandle implements URLClassPathHandle, Prioritized {

private final Logger logger = LoggerFactory.getLogger(getClass());
private final Logger logger = getLogger(getClass());

private Class<?> urlClassPathClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ public int hashCode() {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Artifact{");
sb.append("artifactId='").append(artifactId).append('\'');
sb.append(", version='").append(version).append('\'');
sb.append(", location='").append(location).append('\'');
sb.append('}');
return sb.toString();
String sb = "Artifact{" + "artifactId='" + artifactId + '\'' +
", version='" + version + '\'' +
", location='" + location + '\'' +
'}';
return sb;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package io.microsphere.classloading;

import io.microsphere.collection.CollectionUtils;
import io.microsphere.logging.Logger;
import io.microsphere.util.ClassLoaderUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand All @@ -15,6 +14,7 @@
import java.util.Set;
import java.util.StringJoiner;

import static io.microsphere.logging.LoggerFactory.getLogger;
import static io.microsphere.net.URLUtils.normalizePath;
import static io.microsphere.util.ClassLoaderUtils.getDefaultClassLoader;
import static io.microsphere.util.ClassPathUtils.getBootstrapClassPaths;
Expand All @@ -31,7 +31,7 @@
*/
public class ArtifactDetector {

private static final Logger logger = LoggerFactory.getLogger(ArtifactDetector.class);
private static final Logger logger = getLogger(ArtifactDetector.class);

private static final String JAVA_HOME_PATH = normalizePath(getProperty("java.home"));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package io.microsphere.classloading;

import io.microsphere.logging.Logger;
import io.microsphere.util.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -14,6 +13,7 @@
import java.util.List;

import static io.microsphere.constants.SymbolConstants.COLON;
import static io.microsphere.logging.LoggerFactory.getLogger;
import static io.microsphere.util.ClassLoaderUtils.removeClassPathURL;
import static io.microsphere.util.StringUtils.isBlank;
import static io.microsphere.util.StringUtils.split;
Expand All @@ -40,7 +40,7 @@ public class BannedArtifactClassLoadingExecutor {

public static final String CONFIG_LOCATION = "META-INF/banned-artifacts";

private static final Logger logger = LoggerFactory.getLogger(BannedArtifactClassLoadingExecutor.class);
private static final Logger logger = getLogger(BannedArtifactClassLoadingExecutor.class);

private static final String ENCODING = SystemUtils.FILE_ENCODING;

Expand Down Expand Up @@ -90,7 +90,7 @@ private List<MavenArtifact> loadBannedArtifactConfigs() {
private List<MavenArtifact> loadBannedArtifactConfigs(URL configResource) throws IOException {
List<MavenArtifact> bannedArtifactConfigs = new LinkedList<>();
try (InputStream inputStream = configResource.openStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, ENCODING));
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, ENCODING))
) {
while (true) {
String definition = reader.readLine();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ public int hashCode() {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("MavenArtifact{");
sb.append("groupId='").append(groupId).append('\'');
sb.append(", artifactId='").append(getArtifactId()).append('\'');
sb.append(", version='").append(getVersion()).append('\'');
sb.append(", location='").append(getLocation()).append('\'');
sb.append('}');
return sb.toString();
String sb = "MavenArtifact{" + "groupId='" + groupId + '\'' +
", artifactId='" + getArtifactId() + '\'' +
", version='" + getVersion() + '\'' +
", location='" + getLocation() + '\'' +
'}';
return sb;
}
}
Loading