Skip to content

Commit

Permalink
Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
triceo committed Oct 28, 2024
1 parent c163e9d commit 11df734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public interface SolutionView<Solution_> {
* @param variableMetaModel Describes the variable whose value is to be read.
* @param entity The entity whose variable is to be read.
* @param index >= 0
* @return maybe null; the value of the variable on the entity at the index
* @return The value at the given index in the list variable.
* @throws NullPointerException if the value of the list variable is null
* @throws IndexOutOfBoundsException if the index is out of bounds
*/
<Entity_, Value_> @Nullable Value_ getValueAtIndex(
<Entity_, Value_> @NonNull Value_ getValueAtIndex(
@NonNull PlanningListVariableMetaModel<Solution_, Entity_, Value_> variableMetaModel, @NonNull Entity_ entity,
int index);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public final <Entity_, Value_> Value_ getValue(

@SuppressWarnings("unchecked")
@Override
public final <Entity_, Value_> Value_ getValueAtIndex(
public final <Entity_, Value_> @NonNull Value_ getValueAtIndex(
@NonNull PlanningListVariableMetaModel<Solution_, Entity_, Value_> variableMetaModel,
@NonNull Entity_ entity, int index) {
return (Value_) extractVariableDescriptor(variableMetaModel).getValue(entity).get(index);
Expand Down

0 comments on commit 11df734

Please sign in to comment.