Skip to content

Commit aeda35a

Browse files
committed
fixing class shading and review comment
1 parent 253faec commit aeda35a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/sdk/server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ javadoc {
291291
// enclosing packages like "com" that don't have any classes in them.
292292
def getAllSdkPackages() {
293293
// base package classes come from launchdarkly-java-sdk-common
294-
def names = [ "com.launchdarkly.sdk", "com.launchdarkly.sdk.json", "com.launchdarkly.logging" ]
294+
def names = [ "com.launchdarkly.sdk", "com.launchdarkly.sdk.json", "com.launchdarkly.sdk.fdv2", "com.launchdarkly.logging" ]
295295
project.convention.getPlugin(JavaPluginConvention).sourceSets.main.output.each { baseDir ->
296296
if (baseDir.getPath().contains("classes" + File.separator + "java" + File.separator + "main")) {
297297
baseDir.eachFileRecurse { f ->

lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/DataModelDependencies.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ public static FullDataSet<ItemDescriptor> sortAllCollections(FullDataSet<ItemDes
142142
* @return a sorted copy of the changeset
143143
*/
144144
public static ChangeSet<Iterable<Map.Entry<DataKind, KeyedItems<ItemDescriptor>>>> sortChangeset(ChangeSet<Iterable<Map.Entry<DataKind, KeyedItems<ItemDescriptor>>>> inSet) {
145+
if (inSet.getData() == null) {
146+
return inSet;
147+
}
145148
ImmutableSortedMap.Builder<DataKind, KeyedItems<ItemDescriptor>> builder =
146149
ImmutableSortedMap.orderedBy(dataKindPriorityOrder);
147150
for (Map.Entry<DataKind, KeyedItems<ItemDescriptor>> entry: inSet.getData()) {

lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/PollingBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.launchdarkly.sdk.json.SerializationException;
1616

1717
import java.io.IOException;
18+
import java.util.Collections;
1819
import java.util.Map;
1920
import java.util.Date;
2021
import java.util.concurrent.CompletableFuture;
@@ -91,7 +92,7 @@ protected CompletableFuture<FDv2SourceResult> poll(Selector selector, boolean on
9192
return FDv2SourceResult.changeSet(
9293
new ChangeSet<>(ChangeSetType.None,
9394
Selector.EMPTY,
94-
null,
95+
Collections.emptyList(),
9596
null, // Header derived values will have been handled on initial response.
9697
true // Polling data from LaunchDarkly should be persisted
9798
),

0 commit comments

Comments
 (0)