Skip to content

Commit 2e36eec

Browse files
committed
ErrorProne: BooleanLiteral
1 parent 3b7cce9 commit 2e36eec

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/AlignDecimalCellRenderer/src/java/example/MainPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class AlignDecimalCellRenderer implements TableCellRenderer {
8686
@Override public void updateUI() {
8787
super.updateUI();
8888
setOpaque(false);
89-
putClientProperty(HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
89+
putClientProperty(HONOR_DISPLAY_PROPERTIES, true);
9090
EventQueue.invokeLater(() -> {
9191
// MutableAttributeSet attr = new SimpleAttributeSet();
9292
Style attr = getStyle(StyleContext.DEFAULT_STYLE);

examples/AllowsAbsolutePositioning/src/java/example/MainPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public final class MainPanel extends JPanel {
1717
private MainPanel() {
1818
super(new BorderLayout(5, 5));
1919
// https://docs.oracle.com/javase/8/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html
20-
UIManager.put("ScrollBar.allowsAbsolutePositioning", Boolean.TRUE);
20+
UIManager.put("ScrollBar.allowsAbsolutePositioning", true);
2121

2222
String txt1 = "middle mouse click in the track will set the position";
2323
String txt2 = "of the track to where the mouse is.";
@@ -34,7 +34,7 @@ private MainPanel() {
3434
} else {
3535
setUI(new AbsolutePositioningBasicScrollBarUI());
3636
}
37-
putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE);
37+
putClientProperty("JScrollBar.fastWheelScrolling", true);
3838
}
3939
});
4040

@@ -46,7 +46,7 @@ private MainPanel() {
4646
} else {
4747
setUI(new AbsolutePositioningBasicScrollBarUI());
4848
}
49-
putClientProperty("JScrollBar.fastWheelScrolling", Boolean.TRUE);
49+
putClientProperty("JScrollBar.fastWheelScrolling", true);
5050
}
5151
});
5252

examples/AlternateRowColorTree/src/java/example/MainPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class AlternateRowColorTree extends JTree {
7676

7777
@Override public void updateUI() {
7878
super.updateUI();
79-
UIManager.put("Tree.repaintWholeRow", Boolean.TRUE);
79+
UIManager.put("Tree.repaintWholeRow", true);
8080
setCellRenderer(new TransparentTreeCellRenderer());
8181
setOpaque(false);
8282
}

examples/AnchorTextColor/src/java/example/MainPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private static Component makeUrlPanel(String title, String href) {
3838
JEditorPane editor = new JEditorPane("text/html", href);
3939
editor.setOpaque(false);
4040
editor.setEditable(false);
41-
editor.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
41+
editor.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, true);
4242

4343
GridBagConstraints c = new GridBagConstraints();
4444
c.insets = new Insets(5, 5, 5, 0);

0 commit comments

Comments
 (0)