Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to spotless-plugin-gradle 6.18.0 #3680

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* <pre>
* {@code
* bitmap.forEach(new ShortConsumer() {
* public boolean accept(short value) {
* // do something here
* }
* public boolean accept(short value) {
* // do something here
* }
* });
* }
* </pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* <pre>
* {@code
* bitmap.forEach(new ShortConsumer() {
* public boolean accept(short value) {
* // do something here
* }
* public boolean accept(short value) {
* // do something here
* }
* });
* }
* </pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public CategoryDataSeries pointShape(final Function<Comparable, String> pointSha
chart().figure().registerFigureFunction(new FigureImplFunction(figImpl -> {
((AbstractSwappableTableBasedCategoryDataSeries) figImpl.getFigure().getCharts()
.getChart(chart().row(), chart().column()).axes(axes().id()).series(id()))
.shapesSetSpecific(
new AssociativeDataSwappableTable<Comparable, Shape, String>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, String.class, getPlotInfo()) {
@Override
public Shape convert(String v) {
return NamedShape.getShape(v);
}
});
.shapesSetSpecific(
new AssociativeDataSwappableTable<Comparable, Shape, String>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, String.class, getPlotInfo()) {
@Override
public Shape convert(String v) {
return NamedShape.getShape(v);
}
});
return figImpl;
}, this));
return this;
Expand All @@ -67,8 +67,8 @@ public <NUMBER extends Number> CategoryDataSeries pointSize(final Function<Compa
chart().figure().registerFigureFunction(new FigureImplFunction(figImpl -> {
((AbstractSwappableTableBasedCategoryDataSeries) figImpl.getFigure().getCharts()
.getChart(chart().row(), chart().column()).axes(axes().id()).series(id()))
.sizesSetSpecific(new AssociativeDataSwappableTable<>(getSwappableTable(), getCategoryCol(),
colName, Comparable.class, Number.class, getPlotInfo()));
.sizesSetSpecific(new AssociativeDataSwappableTable<>(getSwappableTable(), getCategoryCol(),
colName, Comparable.class, Number.class, getPlotInfo()));
return figImpl;
}, this));
return this;
Expand All @@ -83,8 +83,8 @@ public <COLOR extends Paint> CategoryDataSeries pointColor(final Function<Compar
chart().figure().registerFigureFunction(new FigureImplFunction(figImpl -> {
((AbstractSwappableTableBasedCategoryDataSeries) figImpl.getFigure().getCharts()
.getChart(chart().row(), chart().column()).axes(axes().id()).series(id()))
.colorsSetSpecific(new AssociativeDataSwappableTable<>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, Paint.class, getPlotInfo()));
.colorsSetSpecific(new AssociativeDataSwappableTable<>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, Paint.class, getPlotInfo()));
return figImpl;
}, this));
return this;
Expand All @@ -99,14 +99,14 @@ public <COLOR extends Integer> CategoryDataSeries pointColorInteger(final Functi
chart().figure().registerFigureFunction(new FigureImplFunction(figImpl -> {
((AbstractSwappableTableBasedCategoryDataSeries) figImpl.getFigure().getCharts()
.getChart(chart().row(), chart().column()).axes(axes().id()).series(id()))
.colorsSetSpecific(
new AssociativeDataSwappableTable<Comparable, Paint, Integer>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, Integer.class, getPlotInfo()) {
@Override
public Paint convert(Integer v) {
return intToColor(chart(), v);
}
});
.colorsSetSpecific(
new AssociativeDataSwappableTable<Comparable, Paint, Integer>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, Integer.class, getPlotInfo()) {
@Override
public Paint convert(Integer v) {
return intToColor(chart(), v);
}
});
return figImpl;
}, this));
return this;
Expand All @@ -121,14 +121,14 @@ public <LABEL> CategoryDataSeries pointLabel(final Function<Comparable, LABEL> p
chart().figure().registerFigureFunction(new FigureImplFunction(figImpl -> {
((AbstractSwappableTableBasedCategoryDataSeries) figImpl.getFigure().getCharts()
.getChart(chart().row(), chart().column()).axes(axes().id()).series(id()))
.labelsSetSpecific(
new AssociativeDataSwappableTable<Comparable, String, Object>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, Object.class, getPlotInfo()) {
@Override
public String convert(final Object o) {
return Objects.toString(o);
}
});
.labelsSetSpecific(
new AssociativeDataSwappableTable<Comparable, String, Object>(getSwappableTable(),
getCategoryCol(), colName, Comparable.class, Object.class, getPlotInfo()) {
@Override
public String convert(final Object o) {
return Objects.toString(o);
}
});
return figImpl;
}, this));
return this;
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
because('needed by plugin com.avast.gradle.docker-compose')
}

implementation('com.diffplug.spotless:spotless-plugin-gradle:6.12.0') {
implementation('com.diffplug.spotless:spotless-plugin-gradle:6.18.0') {
because('needed by plugin java-coding-conventions')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ private void rebase(final int newBase) {
final WritableRowSet newRowSet = getUngroupIndex(
computeSize(getRowSet(), arrayColumns, vectorColumns, nullFill),
RowSetFactory.builderRandom(), newBase, getRowSet())
.build();
.build();
final TrackingWritableRowSet rowSet = result.getRowSet().writableCast();
final RowSet added = newRowSet.minus(rowSet);
final RowSet removed = rowSet.minus(newRowSet);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ private AggregationProcessor(
final String duplicationErrorMessage = (type.isRollup
? RollupAggregationOutputs.of(aggregations)
: AggregationOutputs.of(aggregations))
.collect(Collectors.groupingBy(ColumnName::name, Collectors.counting())).entrySet()
.stream()
.filter(kv -> kv.getValue() > 1)
.map(kv -> kv.getKey() + " used " + kv.getValue() + " times")
.collect(Collectors.joining(", "));
.collect(Collectors.groupingBy(ColumnName::name, Collectors.counting())).entrySet()
.stream()
.filter(kv -> kv.getValue() > 1)
.map(kv -> kv.getKey() + " used " + kv.getValue() + " times")
.collect(Collectors.joining(", "));
if (!duplicationErrorMessage.isBlank()) {
throw new IllegalArgumentException("Duplicate output columns found: " + duplicationErrorMessage);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static Table applySorts(@Nullable final BaseNodeOperationsRecorder<?> nodeOperat
return (nodeOperations.getRecordedAbsoluteViews().isEmpty()
? input
: input.updateView(nodeOperations.getRecordedAbsoluteViews()))
.sort(nodeOperations.getRecordedSorts());
.sort(nodeOperations.getRecordedSorts());
}
// NB: We don't bother to drop the absolute columns; nothing gets to consume the output node tables directly.
return input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static QueryLanguageParser.Result getCompiledFormula(Map<String, ColumnDe
context.getQueryLibrary().getPackageImports(),
classImports, context.getQueryLibrary().getStaticImports(), possibleVariables,
possibleVariableParameterizedTypes)
.getResult();
.getResult();
}

public static class Result {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void setUp() throws Exception {
"Ext = II % 1024 == 0 ? null : new SimpleExternalizable(II)",
"Fix = Sym == null ? null : new BigInteger(Sym, 10)",
"Var = Str == null ? null : new BigInteger(Str, 10)"))
.withDefinitionUnsafe(definition);
.withDefinitionUnsafe(definition);
// TODO: Add (Fixed|Variable)WidthObjectCodec columns

final Table inputMissingData = ((QueryTable) TableTools.emptyTable(TABLE_SIZE)
Expand All @@ -215,7 +215,8 @@ public void setUp() throws Exception {
"Ser = (SimpleSerializable) null",
"Ext = (SimpleExternalizable) null",
"Fix = (BigInteger) null",
"Var = (BigInteger) null")).withDefinitionUnsafe(definition);
"Var = (BigInteger) null"))
.withDefinitionUnsafe(definition);

dataDirectory = Files.createTempDirectory(Paths.get(""), "TestChunkedRegionedOperations-").toFile();
dataDirectory.deleteOnExit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public void testNulls() throws IOException {
longCol("LC", 4),
floatCol("FC", 5.5f),
doubleCol("DC", QueryConstants.NULL_DOUBLE))
.updateView("StrC=(String)null", "BLC=(Boolean)null", "DTC=(DateTime)null",
"BIC=(java.math.BigInteger)null");
.updateView("StrC=(String)null", "BLC=(Boolean)null", "DTC=(DateTime)null",
"BIC=(java.math.BigInteger)null");
TstUtils.assertTableEquals(expected1, result);

final Row row = writer.getRowWriter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static int makeTableSchemaPayload(
final MutableInputTable inputTable = (MutableInputTable) attributes.get(Table.INPUT_TABLE_ATTRIBUTE);
final List<Field> fields = columnDefinitionsToFields(
descriptions, inputTable, tableDefinition.getColumns(), ignored -> new HashMap<>())
.collect(Collectors.toList());
.collect(Collectors.toList());

return new Schema(fields, schemaMetadata).getSchema(builder);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ public <METADATA_TYPE> METADATA_TYPE getMetadata(
localPageCache.castAttr(), endPosReader,
ROW_KEY_TO_SUB_REGION_ROW_INDEX_MASK,
makeToPage(columnTypes.get(END_POS), ParquetInstructions.EMPTY, END_POS,
endPosReader, LAST_KEY_COL_DEF)).pageStore).get();
endPosReader, LAST_KEY_COL_DEF)).pageStore)
.get();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public void groupingByStringKey() {
final Table testTable =
((QueryTable) TableTools.emptyTable(10).select("someInt = i", "someString = `foo`")
.where("i % 2 == 0").groupBy("someString").ungroup("someInt"))
.withDefinitionUnsafe(definition);
.withDefinitionUnsafe(definition);
final File dest = new File(rootFile, "ParquetTest_groupByString_test.parquet");
ParquetTools.writeTable(testTable, dest);
final Table fromDisk = ParquetTools.readTable(dest);
Expand Down
26 changes: 13 additions & 13 deletions server/src/main/java/io/deephaven/server/session/SessionState.java
Original file line number Diff line number Diff line change
Expand Up @@ -670,19 +670,19 @@ private synchronized void setWork(final Callable<T> exportMain, final ExportErro
*
* <pre>
* {@code
* <T> T getFromExport(ExportObject<T> export) {
* if (export.tryRetainReference()) {
* try {
* if (export.getState() == ExportNotification.State.EXPORTED) {
* return export.get();
* }
* } finally {
* export.dropReference();
* }
* }
* return null;
* }
* }
* <T> T getFromExport(ExportObject<T> export) {
* if (export.tryRetainReference()) {
* try {
* if (export.getState() == ExportNotification.State.EXPORTED) {
* return export.get();
* }
* } finally {
* export.dropReference();
* }
* }
* return null;
* }
* }
* </pre>
*
* @return the result of the computed export
Expand Down