mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
remove the usage of Integer(int) constructors because it's deprecated
This commit is contained in:
@@ -147,7 +147,7 @@ public class Breadboard extends AbstractComponent<Void> {
|
|||||||
} else {
|
} else {
|
||||||
coordinateX = (int) (point.x + offset + 10.5 * spacing);
|
coordinateX = (int) (point.x + offset + 10.5 * spacing);
|
||||||
}
|
}
|
||||||
StringUtils.drawCenteredText(g2d, new Integer(y + 1).toString(), coordinateX, (int) (point.y + (y + 1) * spacing),
|
StringUtils.drawCenteredText(g2d, String.valueOf(y + 1), coordinateX, (int) (point.y + (y + 1) * spacing),
|
||||||
section == 0 ? HorizontalAlignment.RIGHT : HorizontalAlignment.LEFT, VerticalAlignment.CENTER);
|
section == 0 ? HorizontalAlignment.RIGHT : HorizontalAlignment.LEFT, VerticalAlignment.CENTER);
|
||||||
for (int x = 0; x < 5; x++) {
|
for (int x = 0; x < 5; x++) {
|
||||||
int holeX = (int) (point.x + offset + (x + 6) * spacing);
|
int holeX = (int) (point.x + offset + (x + 6) * spacing);
|
||||||
@@ -219,7 +219,7 @@ public class Breadboard extends AbstractComponent<Void> {
|
|||||||
} else {
|
} else {
|
||||||
coordinateX = (int) (point.x + offset + 10.5 * spacing);
|
coordinateX = (int) (point.x + offset + 10.5 * spacing);
|
||||||
}
|
}
|
||||||
StringUtils.drawCenteredText(g2d, new Integer(y + 1).toString(), coordinateX, (int) (point.y + (y + 1) * spacing),
|
StringUtils.drawCenteredText(g2d, String.valueOf(y + 1), coordinateX, (int) (point.y + (y + 1) * spacing),
|
||||||
section == 0 ? HorizontalAlignment.RIGHT : HorizontalAlignment.LEFT, VerticalAlignment.CENTER);
|
section == 0 ? HorizontalAlignment.RIGHT : HorizontalAlignment.LEFT, VerticalAlignment.CENTER);
|
||||||
// for (int x = 0; x < 5; x++) {
|
// for (int x = 0; x < 5; x++) {
|
||||||
int holeX1 = (int) (point.x + offset + 6 * spacing);
|
int holeX1 = (int) (point.x + offset + 6 * spacing);
|
||||||
|
|||||||
Reference in New Issue
Block a user