diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dda5e87..19bdbb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,20 +21,26 @@ jobs: matrix: jdk: [ 11, 17, 21 ] + env: + is_latest_jdk: ${{ matrix.jdk == 21 && 'yes' || '' }} + is_main: ${{ github.ref_name == github.event.repository.default_branch && 'yes' || '' }} + is_develop: ${{ github.ref_name == 'develop' && 'yes' || '' }} + is_fork: ${{ github.event_name == 'pull_request' && 'yes' || '' }} + steps: # ================================ # SHALLOW CLONE # ================================ - name: Shallow clone - if: ${{ matrix.jdk != 21 || github.event_name != 'push' }} + if: ${{ !env.is_latest_jdk || env.is_fork }} uses: actions/checkout@v4 # ================================ # CHECKOUT # ================================ - name: Checkout git branch - if: ${{ matrix.jdk == 21 && github.event_name == 'push' }} + if: ${{ env.is_latest_jdk && !env.is_fork }} uses: actions/checkout@v4 with: # Fetch all history for all tags and branches (recommended by SonarQube) @@ -44,7 +50,7 @@ jobs: # VALIDATE GRADLE WRAPPER # ================================ - name: Validate Gradle Wrapper files - if: ${{ matrix.jdk == 21 }} + if: ${{ env.is_latest_jdk }} uses: gradle/actions/wrapper-validation@v3 # ================================ @@ -66,7 +72,7 @@ jobs: build-scan-publish: true build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" build-scan-terms-of-use-agree: "yes" - cache-read-only: ${{ github.event_name != 'push' }} + cache-read-only: ${{ !env.is_main && !env.is_develop }} # ================================ # EXPORT GRADLE PROPERTIES @@ -82,13 +88,13 @@ jobs: # BUILD # ================================ - name: Build version ${{ steps.properties.outputs.version }} - run: ./gradlew build -x check --info + run: ./gradlew build -x check # ================================ # CHECK # ================================ - name: Check - run: ./gradlew check --info + run: ./gradlew check # ================================ # COMPATIBILITY REPORT @@ -101,7 +107,7 @@ jobs: # CACHE SONARCLOUD PACKAGES # ================================ - name: Cache SonarCloud packages - if: ${{ matrix.jdk == 21 && github.event_name == 'push' }} + if: ${{ env.is_latest_jdk && !env.is_fork }} uses: actions/cache@v4 with: key: ${{ runner.os }}-sonar @@ -114,21 +120,21 @@ jobs: # ANALYZE WITH SONARCLOUD # ================================ - name: Analyze with SonarCloud - if: ${{ matrix.jdk == 21 && github.event_name == 'push' }} + if: ${{ env.is_latest_jdk && !env.is_fork }} env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: https://sonarcloud.io SONAR_ORGANIZATION: leakyabstractions - run: ./gradlew sonarqube --info + run: ./gradlew sonar # ================================ # PUBLISH SNAPSHOT # ================================ - name: Publish snapshot version ${{ steps.properties.outputs.version }} - if: ${{ matrix.jdk == 21 && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch && endsWith(steps.properties.outputs.version, '-SNAPSHOT') }} + if: ${{ env.is_latest_jdk && !env.is_fork && env.is_main && endsWith(steps.properties.outputs.version, '-SNAPSHOT') }} env: ORG_GRADLE_PROJECT_githubUsername: ${{ secrets.PUBLISH_USERNAME }} ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.PUBLISH_PASSWORD }} ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} - run: ./gradlew publish -Psnapshot --info + run: ./gradlew publish -Psnapshot diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 6f81579..ad3609f 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -39,3 +39,6 @@ jobs: # ================================ - name: Generate and submit dependency graph uses: gradle/actions/dependency-submission@v3 + env: + # Exclude dependencies that are only resolved in test classpaths + DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: '.*[Tt]est(Compile|Runtime)Classpath' diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml index bd17b96..b0c28b6 100644 --- a/.github/workflows/update-gradle-wrapper.yml +++ b/.github/workflows/update-gradle-wrapper.yml @@ -28,5 +28,5 @@ jobs: uses: gradle-update/update-gradle-wrapper-action@v1 with: release-channel: stable - base-branch: main + base-branch: develop target-branch: develop diff --git a/.licenseheader b/.licenseheader new file mode 100644 index 0000000..5de3d12 --- /dev/null +++ b/.licenseheader @@ -0,0 +1,16 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + diff --git a/badge.json b/badge.json index 4ba456c..901f132 100644 --- a/badge.json +++ b/badge.json @@ -5,7 +5,7 @@ "style": "flat", "labelColor": "fff", "color": "light-green", - "label": "Result", + "label": "result-lazy", "message": "{{ site.current_version }}", "logoSvg": "" -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index fe4f21e..a1bcb33 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ description = Lazy Result Library for Java group = com.leakyabstractions artifactName = Lazy Result Library artifactId = result-lazy -version = 0.6.0.1 +version = 0.6.1.0-SNAPSHOT previousVersion = 0.6.0.0 homepage = https://dev.leakyabstractions.com/result-lazy/ diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c11efb3..3e99a8b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,13 +1,13 @@ [versions] -assertj = "3.25.3" +assertj = "3.26.0" google-java-format = "1.19.2" jacoco = "0.8.10" japicmp = "0.4.2" junit = "5.10.2" nexus-publish = "2.0.0" -result-api = "0.1.0.3" -result-core = "0.15.0.1" -result-assertj = "0.9.1.0" +result-api = "0.1.0.4" +result-core = "0.15.1.1" +result-assertj = "0.9.3.0" sonarqube = "5.0.0.4638" spotless = "6.25.0" diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index d64cd49..e644113 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a80b22c..381baa9 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip +distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew.bat b/gradlew.bat index 93e3f59..25da30d 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail diff --git a/result-lazy/spotless.gradle b/result-lazy/spotless.gradle index 5e560ee..a0e230a 100644 --- a/result-lazy/spotless.gradle +++ b/result-lazy/spotless.gradle @@ -5,6 +5,7 @@ spotless { googleJavaFormat(googleJavaFormatVersion) eclipse().configFile rootProject.file('.formatting.xml') importOrderFile rootProject.file('.importorder') + licenseHeaderFile rootProject.file('.licenseheader') targetExclude("**/example/*.java") removeUnusedImports() } diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_andThen_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_andThen_Test.java index 579f9be..4a6dab3 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_andThen_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_andThen_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_of_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_of_Test.java index 7208485..a8b5725 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_of_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyConsumer_of_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_equals_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_equals_Test.java index 9244bb9..84b4ffb 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_equals_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_equals_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_filter_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_filter_Test.java index 9f183b1..c82dc3a 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_filter_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_filter_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapFailure_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapFailure_Test.java index ae7429b..49f76a2 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapFailure_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapFailure_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapSuccess_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapSuccess_Test.java index 9f4a02d..a287815 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapSuccess_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMapSuccess_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMap_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMap_Test.java index 51d87fc..904c00a 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMap_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_flatMap_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getFailure_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getFailure_Test.java index 8a5b76e..d55d16c 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getFailure_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getFailure_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getSuccess_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getSuccess_Test.java index 949a969..eac7f11 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getSuccess_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_getSuccess_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasFailure_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasFailure_Test.java index e50c011..6ce3e76 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasFailure_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasFailure_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasSuccess_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasSuccess_Test.java index 637640e..47f1148 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasSuccess_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hasSuccess_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hashCode_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hashCode_Test.java index 89acbea..2495056 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hashCode_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_hashCode_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifFailure_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifFailure_Test.java index 1e41430..822f1e1 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifFailure_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifFailure_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccessOrElse_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccessOrElse_Test.java index 6a2a6df..c302040 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccessOrElse_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccessOrElse_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccess_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccess_Test.java index 251fe69..ba5a582 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccess_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_ifSuccess_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapFailure_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapFailure_Test.java index 754bd8a..19397e5 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapFailure_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapFailure_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapSuccess_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapSuccess_Test.java index f91e2db..3ef3071 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapSuccess_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_mapSuccess_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_map_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_map_Test.java index 222596b..4613024 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_map_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_map_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElseMap_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElseMap_Test.java index e16b30f..dfa2ff3 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElseMap_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElseMap_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElse_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElse_Test.java index b4d0cc9..c12437c 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElse_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_orElse_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_recover_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_recover_Test.java index 7156525..9768fcf 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_recover_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_recover_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamFailure_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamFailure_Test.java index 8f87b6a..710b214 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamFailure_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamFailure_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamSuccess_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamSuccess_Test.java index 1811966..39129c9 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamSuccess_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_streamSuccess_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_toString_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_toString_Test.java index a84b400..084c2a1 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_toString_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResult_toString_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy; diff --git a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResults_ofSupplier_Test.java b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResults_ofSupplier_Test.java index 921e91a..042a0f2 100644 --- a/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResults_ofSupplier_Test.java +++ b/result-lazy/src/test/java/com/leakyabstractions/result/lazy/LazyResults_ofSupplier_Test.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Guillermo Calvo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.leakyabstractions.result.lazy;