File tree Expand file tree Collapse file tree
src/main/java/com/github/_1c_syntax/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,16 +11,17 @@ jobs:
1111 java_version : ['17', '20']
1212 os : [ubuntu-latest, windows-latest, macOS-latest]
1313 steps :
14- - uses : actions/checkout@v1
14+ - uses : actions/checkout@v4
1515 - name : Set up JDK ${{ matrix.java_version }}
16- uses : actions/setup-java@v1
16+ uses : actions/setup-java@v4
1717 with :
1818 java-version : ${{ matrix.java_version }}
19+ distribution : ' adopt'
1920 - name : Build with Gradle
2021 run : ./gradlew check --stacktrace
2122 - name : Archive test results
2223 if : failure()
23- uses : actions/upload-artifact@v1
24+ uses : actions/upload-artifact@v4
2425 with :
2526 name : junit_report_${{ matrix.os }}_${{ matrix.java_version }}
2627 path : build/reports/tests/test
Original file line number Diff line number Diff line change 6666
6767# mkdocs
6868temp /
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 {
88 signing
99 id(" org.cadixdev.licenser" ) version " 0.6.1"
1010 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 "
1212 id(" io.freefair.lombok" ) version " 8.6"
1313 id(" io.freefair.javadoc-links" ) version " 8.6"
1414 id(" io.freefair.javadoc-utf-8" ) version " 8.6"
1515 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"
1717 id(" ru.vyarus.pom" ) version " 3.0.0"
1818 id(" io.codearte.nexus-staging" ) version " 0.30.0"
1919}
@@ -43,7 +43,7 @@ repositories {
4343val junitVersion = " 5.7.0"
4444
4545dependencies {
46- compileOnly(" com.github.spotbugs:spotbugs-annotations:4.8.3 " )
46+ compileOnly(" com.github.spotbugs:spotbugs-annotations:4.8.5 " )
4747 testImplementation(" org.junit.jupiter" , " junit-jupiter-api" , junitVersion)
4848 testRuntimeOnly(" org.junit.jupiter" , " junit-jupiter-engine" , junitVersion)
4949 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 {
4242
4343 public static URI uri (@ NonNull String uri ) {
4444 try {
45- URL url = new URL (uri );
45+ var url = new URL (uri );
4646 var decodedPath = URLDecoder .decode (url .getPath (), StandardCharsets .UTF_8 );
4747 var decodedUri = new URI (
4848 url .getProtocol (),
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ public T get() {
5050 }
5151
5252 public T getOrCompute (Supplier <T > supplier ) {
53- final T result = value ; // Just one volatile read
53+ final var result = value ; // Just one volatile read
5454 if (result == null ) {
5555 lock .lock ();
56- T localResult = maybeCompute (supplier );
56+ var localResult = maybeCompute (supplier );
5757 lock .unlock ();
5858 return localResult ;
5959 }
@@ -65,7 +65,7 @@ public T getOrCompute() {
6565 }
6666
6767 public boolean isPresent () {
68- final T result = value ;
68+ final var result = value ;
6969 return result != null ;
7070 }
7171
You can’t perform that action at this time.
0 commit comments