No need to round an integer

Part of: HTTP Sampler/Files upload tab - add missing buttons

Bugzilla Id: 65020
This commit is contained in:
Felix Schumacher 2021-04-10 20:11:35 +02:00
parent a75fc427de
commit 4b834be91b
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class RowDetailDialog extends JDialog implements ActionListener, Document
dataComponents = new ArrayList<>();
final int columnCount = tableModel.getColumnCount();
final int linesPerTextArea = Math.max(5, Math.round(30 / Math.max(columnCount - 1, 1)));
final int linesPerTextArea = Math.max(5, 30 / Math.max(columnCount - 1, 1));
for (int column = 0; column < columnCount; column++) {
JLabel dataLabel = new JLabel(JMeterUtils.getResString(tableModel.getColumnName(column)));
dataPanel.add(dataLabel);