Skip to content

Commit

Permalink
Finish v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowco committed May 14, 2024
2 parents e3b5c1d + 66dbfa1 commit dd266fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ jobs:
java_version: ['17', '20']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java_version }}
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew check --stacktrace
- name: Archive test results
if: failure()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: junit_report_${{ matrix.os }}_${{ matrix.java_version }}
path: build/reports/tests/test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ gen/

# mkdocs
temp/
public/
public/
/.idea/material_theme_project_new.xml
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ plugins {
signing
id("org.cadixdev.licenser") version "0.6.1"
id("me.qoomon.git-versioning") version "6.4.3"
id("com.gorylenko.gradle-git-properties") version "2.4.1"
id("com.gorylenko.gradle-git-properties") version "2.4.2"
id("io.freefair.lombok") version "8.6"
id("io.freefair.javadoc-links") version "8.6"
id("io.freefair.javadoc-utf-8") version "8.6"
id("io.freefair.maven-central.validate-poms") version "8.6"
id("com.github.ben-manes.versions") version "0.27.0"
id("com.github.ben-manes.versions") version "0.51.0"
id("ru.vyarus.pom") version "3.0.0"
id("io.codearte.nexus-staging") version "0.30.0"
}
Expand Down Expand Up @@ -43,7 +43,7 @@ repositories {
val junitVersion = "5.7.0"

dependencies {
compileOnly("com.github.spotbugs:spotbugs-annotations:4.8.3")
compileOnly("com.github.spotbugs:spotbugs-annotations:4.8.5")
testImplementation("org.junit.jupiter", "junit-jupiter-api", junitVersion)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junitVersion)
testImplementation("org.assertj", "assertj-core", "3.18.1")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/_1c_syntax/utils/Absolute.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public final class Absolute {

public static URI uri(@NonNull String uri) {
try {
URL url = new URL(uri);
var url = new URL(uri);
var decodedPath = URLDecoder.decode(url.getPath(), StandardCharsets.UTF_8);
var decodedUri = new URI(
url.getProtocol(),
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/github/_1c_syntax/utils/Lazy.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public T get() {
}

public T getOrCompute(Supplier<T> supplier) {
final T result = value; // Just one volatile read
final var result = value; // Just one volatile read
if (result == null) {
lock.lock();
T localResult = maybeCompute(supplier);
var localResult = maybeCompute(supplier);
lock.unlock();
return localResult;
}
Expand All @@ -65,7 +65,7 @@ public T getOrCompute() {
}

public boolean isPresent() {
final T result = value;
final var result = value;
return result != null;
}

Expand Down

0 comments on commit dd266fc

Please sign in to comment.