From aaf829cb093c763494c2f3d08b6e0e5d7acb3b6d Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sun, 9 Jun 2024 11:15:06 +0200 Subject: [PATCH] fix: sonar issues --- .../network/impl/FakeConnectionProvider.java | 2 +- .../common/support/AbstractSafeSavedData.java | 23 ++++++++++++------- .../common/grid/GridSortingTypesTest.java | 4 ++-- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/refinedstorage2-network/src/test/java/com/refinedmods/refinedstorage2/api/network/impl/FakeConnectionProvider.java b/refinedstorage2-network/src/test/java/com/refinedmods/refinedstorage2/api/network/impl/FakeConnectionProvider.java index e64f24b93..30635e346 100644 --- a/refinedstorage2-network/src/test/java/com/refinedmods/refinedstorage2/api/network/impl/FakeConnectionProvider.java +++ b/refinedstorage2-network/src/test/java/com/refinedmods/refinedstorage2/api/network/impl/FakeConnectionProvider.java @@ -78,6 +78,6 @@ public List sortDeterministically(final Set getModName(final String modId) { void setUp() { viewBuilder = new GridViewBuilderImpl( FACTORY, - (view) -> Comparator.comparing(GridResource::getName), - (view) -> Comparator.comparing(GridResource::getAmount) + view -> Comparator.comparing(GridResource::getName), + view -> Comparator.comparing(GridResource::getAmount) ); dirt = new ItemResource(Items.DIRT, null); stone = new ItemResource(Items.STONE, null);