Skip to content

Commit 78997d2

Browse files
committed
[Core] Don't use immutable lists as they cannot be deserialized from H2
DB using the generic collection serializer provided with Kryo
1 parent 675a779 commit 78997d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sensorhub-core/src/main/java/org/sensorhub/api/command/CommandResult.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import java.util.ArrayList;
1818
import java.util.Collection;
1919
import java.util.Collections;
20+
import java.util.List;
2021
import org.sensorhub.api.common.BigId;
2122
import org.sensorhub.utils.ObjectUtils;
2223
import org.vast.ogc.xlink.IXlinkReference;
2324
import org.vast.util.Asserts;
24-
import com.google.common.collect.ImmutableList;
2525
import net.opengis.swe.v20.DataBlock;
2626

2727

@@ -57,7 +57,7 @@ public static ICommandResult withDatastream(BigId dataStreamID)
5757
Asserts.checkNotNull(dataStreamID, BigId.class);
5858

5959
var res = new CommandResult();
60-
res.dsIDs = ImmutableList.of(dataStreamID);
60+
res.dsIDs = List.of(dataStreamID);
6161
return res;
6262
}
6363

@@ -88,7 +88,7 @@ public static ICommandResult withObservation(BigId obsID)
8888
Asserts.checkNotNull(obsID, BigId.class);
8989

9090
var res = new CommandResult();
91-
res.obsIDs = ImmutableList.of(obsID);
91+
res.obsIDs = List.of(obsID);
9292
return res;
9393
}
9494

@@ -119,7 +119,7 @@ public static ICommandResult withData(DataBlock data)
119119
Asserts.checkNotNull(data, DataBlock.class);
120120

121121
var res = new CommandResult();
122-
res.inlineRecords = ImmutableList.of(data);
122+
res.inlineRecords = List.of(data);
123123
return res;
124124
}
125125

0 commit comments

Comments
 (0)