Skip to content

Commit

Permalink
remove Optional.of wrapping to implictly use constructor wrapper in…
Browse files Browse the repository at this point in the history
…stead
  • Loading branch information
skovati committed Sep 9, 2024
1 parent 23e4755 commit 67c2be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Map<GoalId, List<ActivityDirectiveId>> get(final long analysisId) throws
final var goalId = new GoalId(
resultSet.getLong("goal_id"),
resultSet.getLong("goal_revision"),
Optional.of(resultSet.getLong("goal_invocation_id"))
resultSet.getLong("goal_invocation_id")
);
final var activityId = new ActivityDirectiveId(resultSet.getLong("activity_id"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public List<GoalInvocationRecord> get(final long specificationId) throws SQLExce
final var args = parseJson(resultSet.getString("arguments"), new SerializedValueJsonParser());

goals.add(new GoalInvocationRecord(
new GoalId(id, revision, Optional.of(goalInvocationId)),
new GoalId(id, revision, goalInvocationId),
name,
type.equals("JAR") ? new GoalType.JAR(Path.of(path)) : new GoalType.EDSL(new GoalSource(definition)),
args.asMap().get(),
Expand Down

0 comments on commit 67c2be0

Please sign in to comment.