Skip to content

Commit

Permalink
Fix compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jan 27, 2019
1 parent 22efe4d commit fbb0f08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package tech.tablesaw.columns.booleans;

import tech.tablesaw.api.BooleanColumn;

public class BooleanFormatter {
private String trueString = "true";
private String falseString = "false";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ private Table joinInternal(Table table1, Table table2, boolean outer, boolean al
ColumnType type = table1Column.type();
// relies on both arrays, columns, and col2Names,
// having corresponding values at same index
String col2Name = col2Names[i];
Selection rowBitMapOneCol = null;
if (type instanceof DateColumnType) {
IntIndex index = (IntIndex) columnIndexMap.get(column);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void main(String[] args) throws Exception {
out(categoryCount.printAll());

Table xtab1 = details.xTabColumnPercents("VicSex", "Weapon category");
xtab1.columnsOfType(DOUBLE).forEach(e -> ((NumberColumn)e).setPrintFormatter(NumberColumnFormatter.percent(1)));
xtab1.columnsOfType(DOUBLE).forEach(e -> ((DoubleColumn)e).setPrintFormatter(NumberColumnFormatter.percent(1)));
out(xtab1.printAll());

Plot.show(Histogram.create("victim age", details, "vicage"));
Expand Down Expand Up @@ -163,9 +163,9 @@ public static void main(String[] args) throws Exception {

Plot.show(Histogram.create("age", asphyx, "vicAge"));
Table counts = asphyx.xTabCounts("year", "StateName");
counts.columnsOfType(DOUBLE).stream().forEach(e -> ((NumberColumn)e).setPrintFormatter(NumberColumnFormatter.ints()));
counts.columnsOfType(DOUBLE).stream().forEach(e -> ((DoubleColumn)e).setPrintFormatter(NumberColumnFormatter.ints()));
counts.columnsOfType(DOUBLE).stream().forEach(e -> ((DoubleColumn)e)
.set(((NumberColumn) e).isEqualTo(0), DoubleColumnType.missingValueIndicator()));
.set(((DoubleColumn) e).isEqualTo(0), DoubleColumnType.missingValueIndicator()));
out(counts.printAll());
out(femaleVictims.shape());
}
Expand Down

0 comments on commit fbb0f08

Please sign in to comment.