Skip to content

Commit f75d24e

Browse files
committed
Update examples.
1 parent bf1b1e2 commit f75d24e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

sierra-test/src/main/java/org/httprpc/sierra/test/TiingoTest.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757

5858
public class TiingoTest extends JFrame implements Runnable {
5959
private static class HistoricalPricingTableModel implements TableModel {
60-
private List<BeanAdapter> values;
60+
List<BeanAdapter> values;
6161

62-
private List<String> columns = listOf("date", "open", "high", "low", "close", "volume");
62+
List<String> columns = listOf("date", "open", "high", "low", "close", "volume");
6363

64-
public HistoricalPricingTableModel(List<AssetPricing> rows) {
64+
HistoricalPricingTableModel(List<AssetPricing> rows) {
6565
values = rows.stream().map(BeanAdapter::new).toList();
6666
}
6767

@@ -112,7 +112,7 @@ public void removeTableModelListener(TableModelListener listener) {
112112
}
113113

114114
private static class DateCellRenderer extends DefaultTableCellRenderer {
115-
static DateTimeFormatter dateFormatter;
115+
static final DateTimeFormatter dateFormatter;
116116
static {
117117
dateFormatter = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT).withZone(ZoneId.of("America/New_York"));
118118
}
@@ -124,7 +124,7 @@ public void setValue(Object value) {
124124
}
125125

126126
private static class PriceCellRenderer extends DefaultTableCellRenderer {
127-
static NumberFormat priceFormat;
127+
static final NumberFormat priceFormat;
128128
static {
129129
priceFormat = NumberFormat.getCurrencyInstance(Locale.US);
130130
}
@@ -140,11 +140,9 @@ public void setValue(Object value) {
140140
}
141141

142142
private static class VolumeCellRenderer extends DefaultTableCellRenderer {
143-
static NumberFormat volumeFormat;
143+
static final NumberFormat volumeFormat;
144144
static {
145145
volumeFormat = NumberFormat.getNumberInstance();
146-
147-
volumeFormat.setGroupingUsed(true);
148146
}
149147

150148
VolumeCellRenderer() {

0 commit comments

Comments
 (0)