RED-6619 - reformat code

This commit is contained in:
Thomas Beyer 2023-04-28 12:32:11 +02:00
parent 794a160115
commit 2e37cd5669

View File

@ -27,7 +27,9 @@ public class Cell extends Rectangle {
private static final int MIN_SIZE = 1;
public Cell(Point2D topLeft, Point2D bottomRight) {
super((float) topLeft.getY(), (float) topLeft.getX(), (float) (bottomRight.getX() - topLeft.getX()), (float) (bottomRight.getY() - topLeft.getY()));
}
@ -66,8 +68,10 @@ public class Cell extends Rectangle {
return TextNormalizationUtilities.removeHyphenLineBreaks(sb.toString()).replaceAll("\n", " ").replaceAll(" {2}", " ");
}
public boolean hasMinimumSize() {
return this.getHeight() >= MIN_SIZE && this.getWidth() >= MIN_SIZE;
}
}