Skip to content

Commit 742dde6

Browse files
authored
Make Table final (#138915)
* Make StopWatch and Table final * Curse you, Mockito
1 parent cb81e65 commit 742dde6

File tree

1 file changed

+5
-5
lines changed
  • server/src/main/java/org/elasticsearch/common

1 file changed

+5
-5
lines changed

server/src/main/java/org/elasticsearch/common/Table.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
import static java.util.Collections.emptyMap;
2323

24-
public class Table {
24+
public final class Table {
2525

2626
private List<Cell> headers = new ArrayList<>();
27-
private List<List<Cell>> rows = new ArrayList<>();
28-
private Map<String, List<Cell>> map = new HashMap<>();
29-
private Map<String, Cell> headerMap = new HashMap<>();
27+
private final List<List<Cell>> rows = new ArrayList<>();
28+
private final Map<String, List<Cell>> map = new HashMap<>();
29+
private final Map<String, Cell> headerMap = new HashMap<>();
3030
private List<Cell> currentCells;
3131
private boolean inHeaders = false;
3232
private boolean withTime = false;
@@ -201,7 +201,7 @@ public Map<String, String> getAliasMap() {
201201
return headerAliasMap;
202202
}
203203

204-
public static class Cell {
204+
public static final class Cell {
205205
public final Object value;
206206
public final Map<String, String> attr;
207207

0 commit comments

Comments
 (0)