Skip to content

Commit

Permalink
[cleanup] Resolved a SonarCube bug
Browse files Browse the repository at this point in the history
  • Loading branch information
meronbrouwer committed Sep 21, 2023
1 parent ef96c28 commit ce02cbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public void postActivation() {

private void drawCoordinateText(final int x, final int y, final int value, final int deltaX, final int deltaY) {
var text = textFactory.createText(Integer.valueOf(value).toString(), TEXT_COLOR);
text.setLayoutX(x + deltaX);
text.setLayoutY(y + deltaY);
text.setLayoutX((double) x + deltaX);
text.setLayoutY((double) y + deltaY);
pane.getChildren().add(text);
gridElements.add(text);
}
Expand Down

0 comments on commit ce02cbd

Please sign in to comment.