Skip to content

Commit

Permalink
Bump nl.talsmasoftware:lazy4j from 1.0.3 to 2.0.0 (#92)
Browse files Browse the repository at this point in the history
* Bump nl.talsmasoftware:lazy4j from 1.0.3 to 2.0.0

Bumps [nl.talsmasoftware:lazy4j](https://github.com/talsma-ict/lazy4j) from 1.0.3 to 2.0.0.
- [Release notes](https://github.com/talsma-ict/lazy4j/releases)
- [Commits](talsma-ict/lazy4j@1.0.3...2.0.0)

---
updated-dependencies:
- dependency-name: nl.talsmasoftware:lazy4j
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating code to remove compile errors caused by dependency bump.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Waltermire <david.waltermire@gsa.gov>
  • Loading branch information
dependabot[bot] and david-waltermire authored Sep 9, 2024
1 parent df0e0cf commit 8798605
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import nl.talsmasoftware.lazy4j.Lazy;
import nl.talsmasoftware.lazy4j.LazyEvaluationException;

public abstract class AbstractConstraint implements IConstraint { // NOPMD - intentional data class
@Nullable
Expand Down Expand Up @@ -136,16 +135,7 @@ public MarkupMultiline getRemarks() {
*/
@NonNull
public MetapathExpression getTargetMetapath() {
try {
return ObjectUtils.notNull(targetMetapath.get());
} catch (LazyEvaluationException ex) {
Throwable cause = ex.getCause();
if (cause instanceof RuntimeException) {
cause.addSuppressed(ex);
throw (RuntimeException) cause;
}
throw ex;
}
return ObjectUtils.notNull(targetMetapath.get());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import nl.talsmasoftware.lazy4j.Lazy;
import nl.talsmasoftware.lazy4j.LazyEvaluationException;

public final class DefaultExpectConstraint
extends AbstractConstraint
Expand Down Expand Up @@ -91,16 +90,7 @@ public DefaultExpectConstraint(
*/
@NonNull
public MetapathExpression getTestMetapath() {
try {
return ObjectUtils.notNull(testMetapath.get());
} catch (LazyEvaluationException ex) {
Throwable cause = ex.getCause();
if (cause instanceof RuntimeException) {
cause.addSuppressed(ex);
throw (RuntimeException) cause;
}
throw ex;
}
return ObjectUtils.notNull(testMetapath.get());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import nl.talsmasoftware.lazy4j.Lazy;
import nl.talsmasoftware.lazy4j.LazyEvaluationException;

public class DefaultKeyField implements IKeyField {

Expand Down Expand Up @@ -62,16 +61,7 @@ public String getTarget() {

@Override
public MetapathExpression getTargetMetapath() {
try {
return ObjectUtils.notNull(target.get());
} catch (LazyEvaluationException ex) {
Throwable cause = ex.getCause();
cause.addSuppressed(ex);
if (cause instanceof RuntimeException) {
throw (RuntimeException) cause;
}
throw ex;
}
return ObjectUtils.notNull(target.get());
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
<dependency>
<groupId>nl.talsmasoftware</groupId>
<artifactId>lazy4j</artifactId>
<version>1.0.3</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>com.github.seancfoley</groupId>
Expand Down

0 comments on commit 8798605

Please sign in to comment.