From 09b8ab4aff69f41789e0896d819e0c0cb1ffc0be Mon Sep 17 00:00:00 2001 From: Aleksey Markelov Date: Sun, 1 May 2016 17:55:14 +0500 Subject: [PATCH] Change DataCell selected/highlighted/traced fields type from Boolean objects to primitive boolean. --- src/main/java/com/romraider/maps/DataCell.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/romraider/maps/DataCell.java b/src/main/java/com/romraider/maps/DataCell.java index 9b05afd8..4e147441 100644 --- a/src/main/java/com/romraider/maps/DataCell.java +++ b/src/main/java/com/romraider/maps/DataCell.java @@ -50,9 +50,9 @@ public class DataCell extends JLabel implements MouseListener, Serializable { private final Table table; - private Boolean selected = false; - private Boolean highlighted = false; - private Boolean traced = false; + private boolean selected = false; + private boolean highlighted = false; + private boolean traced = false; private int x = 0; private int y = 0; @@ -344,18 +344,18 @@ public class DataCell extends JLabel implements MouseListener, Serializable { return getCellText(); } - public Boolean isSelected() { + public boolean isSelected() { return selected; } - public void setSelected(Boolean selected) { + public void setSelected(boolean selected) { if(!table.isStaticDataTable() && this.selected != selected) { this.selected = selected; drawCell(); } } - public void setHighlighted(Boolean highlighted) { + public void setHighlighted(boolean highlighted) { if(!table.isStaticDataTable() && this.highlighted != highlighted) { this.highlighted = highlighted; drawCell();