Skip to content

Commit 1514e8e

Browse files
committed
Finish 9.2.0
2 parents 768212d + e993c63 commit 1514e8e

127 files changed

Lines changed: 5517 additions & 4269 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ repositories {
1616
}
1717
1818
dependencies {
19-
compile 'com.spaceshift:rlib.common:9.1.0'
20-
compile 'com.spaceshift:rlib.fx:9.1.0'
21-
compile 'com.spaceshift:rlib.network:9.1.0'
22-
compile 'com.spaceshift:rlib.mail:9.1.0'
23-
compile 'com.spaceshift:rlib.testcontainers:9.1.0'
19+
compile 'com.spaceshift:rlib.common:9.2.0'
20+
compile 'com.spaceshift:rlib.fx:9.2.0'
21+
compile 'com.spaceshift:rlib.network:9.2.0'
22+
compile 'com.spaceshift:rlib.mail:9.2.0'
23+
compile 'com.spaceshift:rlib.testcontainers:9.2.0'
2424
}
2525
```
2626

@@ -41,27 +41,27 @@ dependencies {
4141
<dependency>
4242
<groupId>com.spaceshift</groupId>
4343
<artifactId>rlib.common</artifactId>
44-
<version>9.1.0</version>
44+
<version>9.2.0</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>com.spaceshift</groupId>
4848
<artifactId>rlib.fx</artifactId>
49-
<version>9.1.2</version>
49+
<version>9.2.0</version>
5050
</dependency>
5151
<dependency>
5252
<groupId>com.spaceshift</groupId>
5353
<artifactId>rlib.network</artifactId>
54-
<version>9.1.0</version>
54+
<version>9.2.0</version>
5555
</dependency>
5656
<dependency>
5757
<groupId>com.spaceshift</groupId>
5858
<artifactId>rlib.mail</artifactId>
59-
<version>9.1.0</version>
59+
<version>9.2.0</version>
6060
</dependency>
6161
<dependency>
6262
<groupId>com.spaceshift</groupId>
6363
<artifactId>rlib.testcontainers</artifactId>
64-
<version>9.1.0</version>
64+
<version>9.2.0</version>
6565
</dependency>
6666

6767
```
@@ -368,4 +368,4 @@ dependencies {
368368

369369
var server = clientNetwork.getCurrentServer();
370370
server.sendPacket(new ClientPackets.MessageRequest("Test client message"));
371-
```
371+
```

build.gradle

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ buildscript {
44
}
55
dependencies {
66
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
7-
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.19'
7+
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.21'
88
}
99
}
1010

11-
rootProject.version = '9.1.0'
11+
rootProject.version = '9.2.0'
1212
group = 'com.spaceshift'
1313

1414
allprojects {
@@ -26,12 +26,13 @@ allprojects {
2626
targetCompatibility = JavaVersion.VERSION_11
2727

2828
ext {
29+
projectreactorVersion = '3.2.9.RELEASE'
2930
sl4jVersion = '1.7.26'
3031
javaxMailVersion = "1.5.0-b01"
3132
testcontainersVersion = '1.11.1'
32-
lombokVersion = '1.18.4'
33-
junitJupiterVersion = "5.2.0"
34-
jetbrainsAnnotation = '16.0.3'
33+
lombokVersion = '1.18.6'
34+
junitJupiterVersion = "5.4.2"
35+
jetbrainsAnnotation = '17.0.0'
3536
bintrayVersion = version
3637
}
3738

@@ -41,24 +42,18 @@ allprojects {
4142

4243
test {
4344
useJUnitPlatform()
44-
45-
testLogging {
46-
events "passed", "skipped", "failed"
47-
}
48-
49-
reports {
50-
html.enabled = true
51-
}
5245
}
5346

5447
dependencies {
5548
compileOnly "org.jetbrains:annotations:$jetbrainsAnnotation"
49+
compileOnly "org.projectlombok:lombok:$lombokVersion"
50+
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
51+
5652
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
53+
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
5754
testCompileOnly "org.jetbrains:annotations:$jetbrainsAnnotation"
5855
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
59-
compileOnly "org.projectlombok:lombok:$lombokVersion"
60-
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
61-
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
56+
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
6257
}
6358

6459
/*compileJava {
@@ -144,6 +139,6 @@ allprojects {
144139
}
145140

146141
wrapper {
147-
gradleVersion = '5.3.1'
142+
gradleVersion = '5.4.1'
148143
distributionType = Wrapper.DistributionType.ALL
149-
}
144+
}

gradle/wrapper/gradle-wrapper.jar

777 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

100644100755
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rlib-common/src/main/java/com/ss/rlib/common/classpath/impl/ClassPathScannerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public void scan(@Nullable Predicate<String> filter) {
438438
continue;
439439
}
440440

441-
LOGGER.debug(this, file, toScan -> "scan " + toScan);
441+
LOGGER.debug(file, toScan -> "scan " + toScan);
442442

443443
String filename = file.getFileName().toString();
444444

@@ -452,7 +452,7 @@ public void scan(@Nullable Predicate<String> filter) {
452452
this.classes = classes.toArray(new Class[classes.size()]);
453453
this.resources = resources.toArray(new String[resources.size()]);
454454

455-
LOGGER.debug(this, getClasses(), getResources(),
455+
LOGGER.debug(getClasses(), getResources(),
456456
(cses, rses) -> "scanned for " + cses.length + " classes and " + rses.length + " resources.");
457457
}
458458

rlib-common/src/main/java/com/ss/rlib/common/classpath/impl/ManifestClassPathScannerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public ManifestClassPathScannerImpl(@NotNull final ClassLoader classLoader, @Not
5656

5757
final Thread currentThread = Thread.currentThread();
5858
final ClassLoader loader = currentThread.getContextClassLoader();
59-
final Enumeration<URL> urls = Utils.get(loader, first -> first.getResources(JarFile.MANIFEST_NAME));
59+
final Enumeration<URL> urls = Utils.uncheckedGet(loader, first -> first.getResources(JarFile.MANIFEST_NAME));
6060

6161
while (urls.hasMoreElements()) {
6262

rlib-common/src/main/java/com/ss/rlib/common/compiler/impl/CompileClassLoader.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.ss.rlib.common.util.array.Array;
66
import com.ss.rlib.common.util.array.ArrayFactory;
77
import org.jetbrains.annotations.NotNull;
8+
import org.jetbrains.annotations.Nullable;
89

910
/**
1011
* The implementation of a class loader of compiled classes.
@@ -28,19 +29,20 @@ public CompileClassLoader() {
2829
*
2930
* @param byteCode the byte code
3031
*/
31-
public void addByteCode(@NotNull final ByteCode byteCode) {
32+
public synchronized void addByteCode(@NotNull ByteCode byteCode) {
3233
this.byteCode.add(byteCode);
3334
}
3435

3536
@Override
36-
protected Class<?> findClass(@NotNull final String name) {
37-
38-
synchronized (byteCode) {
39-
if (byteCode.isEmpty()) return null;
40-
for (final ByteCode byteCode : this.byteCode) {
41-
final byte[] content = byteCode.getByteCode();
42-
return Utils.get(() -> defineClass(name, content, 0, content.length));
43-
}
37+
protected synchronized @Nullable Class<?> findClass(@NotNull String name) {
38+
39+
if (byteCode.isEmpty()) {
40+
return null;
41+
}
42+
43+
for (var byteCode : this.byteCode) {
44+
var content = byteCode.getByteCode();
45+
return Utils.uncheckedGet(() -> defineClass(name, content, 0, content.length));
4446
}
4547

4648
return null;
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
package com.ss.rlib.common.function;
22

3-
import org.jetbrains.annotations.Nullable;
4-
53
/**
6-
* THe function.
7-
*
8-
* @param <T> the type parameter
94
* @author JavaSaBr
105
*/
116
@FunctionalInterface
127
public interface ObjectIntPredicate<T> {
138

14-
/**
15-
* Test boolean.
16-
*
17-
* @param fisrt the fisrt
18-
* @param second the second
19-
* @return the boolean
20-
*/
21-
boolean test(@Nullable T fisrt, int second);
9+
boolean test(T first, int second);
2210
}

0 commit comments

Comments
 (0)