File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
src/main/java/com/github/_1c_syntax/utils Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,17 @@ jobs:
11
11
java_version : ['17', '20']
12
12
os : [ubuntu-latest, windows-latest, macOS-latest]
13
13
steps :
14
- - uses : actions/checkout@v1
14
+ - uses : actions/checkout@v4
15
15
- name : Set up JDK ${{ matrix.java_version }}
16
- uses : actions/setup-java@v1
16
+ uses : actions/setup-java@v4
17
17
with :
18
18
java-version : ${{ matrix.java_version }}
19
+ distribution : ' adopt'
19
20
- name : Build with Gradle
20
21
run : ./gradlew check --stacktrace
21
22
- name : Archive test results
22
23
if : failure()
23
- uses : actions/upload-artifact@v1
24
+ uses : actions/upload-artifact@v4
24
25
with :
25
26
name : junit_report_${{ matrix.os }}_${{ matrix.java_version }}
26
27
path : build/reports/tests/test
Original file line number Diff line number Diff line change 66
66
67
67
# mkdocs
68
68
temp /
69
- public /
69
+ public /
70
+ /.idea /material_theme_project_new.xml
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ plugins {
8
8
signing
9
9
id(" org.cadixdev.licenser" ) version " 0.6.1"
10
10
id(" me.qoomon.git-versioning" ) version " 6.4.3"
11
- id(" com.gorylenko.gradle-git-properties" ) version " 2.4.1 "
11
+ id(" com.gorylenko.gradle-git-properties" ) version " 2.4.2 "
12
12
id(" io.freefair.lombok" ) version " 8.6"
13
13
id(" io.freefair.javadoc-links" ) version " 8.6"
14
14
id(" io.freefair.javadoc-utf-8" ) version " 8.6"
15
15
id(" io.freefair.maven-central.validate-poms" ) version " 8.6"
16
- id(" com.github.ben-manes.versions" ) version " 0.27 .0"
16
+ id(" com.github.ben-manes.versions" ) version " 0.51 .0"
17
17
id(" ru.vyarus.pom" ) version " 3.0.0"
18
18
id(" io.codearte.nexus-staging" ) version " 0.30.0"
19
19
}
@@ -43,7 +43,7 @@ repositories {
43
43
val junitVersion = " 5.7.0"
44
44
45
45
dependencies {
46
- compileOnly(" com.github.spotbugs:spotbugs-annotations:4.8.3 " )
46
+ compileOnly(" com.github.spotbugs:spotbugs-annotations:4.8.5 " )
47
47
testImplementation(" org.junit.jupiter" , " junit-jupiter-api" , junitVersion)
48
48
testRuntimeOnly(" org.junit.jupiter" , " junit-jupiter-engine" , junitVersion)
49
49
testImplementation(" org.assertj" , " assertj-core" , " 3.18.1" )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public final class Absolute {
42
42
43
43
public static URI uri (@ NonNull String uri ) {
44
44
try {
45
- URL url = new URL (uri );
45
+ var url = new URL (uri );
46
46
var decodedPath = URLDecoder .decode (url .getPath (), StandardCharsets .UTF_8 );
47
47
var decodedUri = new URI (
48
48
url .getProtocol (),
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ public T get() {
50
50
}
51
51
52
52
public T getOrCompute (Supplier <T > supplier ) {
53
- final T result = value ; // Just one volatile read
53
+ final var result = value ; // Just one volatile read
54
54
if (result == null ) {
55
55
lock .lock ();
56
- T localResult = maybeCompute (supplier );
56
+ var localResult = maybeCompute (supplier );
57
57
lock .unlock ();
58
58
return localResult ;
59
59
}
@@ -65,7 +65,7 @@ public T getOrCompute() {
65
65
}
66
66
67
67
public boolean isPresent () {
68
- final T result = value ;
68
+ final var result = value ;
69
69
return result != null ;
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments