Skip to content

Commit 971f4b3

Browse files
authored
feat: Move iterable async queue to internal. (#125)
The IterableAsyncQueue was originally in common, but we've decided it doesn't need to be exposed, so I am moving it to internal. Technically this is breaking, but we have not done a release of an SDK that uses the affected version. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > This is an API/package move that can break any downstream code importing `IterableAsyncQueue`, but the functional behavior change is minimal and limited to internal utility code. > > **Overview** > Moves `IterableAsyncQueue` from the public `com.launchdarkly.sdk.collections` area into `com.launchdarkly.sdk.internal.collections`, making it explicitly *internal* rather than part of the supported API surface. > > Updates the class and its test to the new package, adds `package-info.java` docs for the new internal package/tests, and removes the old `package-info.java` files from `shared/common`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 869e8a6. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/launchdarkly/java-core/pull/125"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
1 parent a04825f commit 971f4b3

6 files changed

Lines changed: 13 additions & 10 deletions

File tree

lib/shared/common/src/main/java/com/launchdarkly/sdk/collections/package-info.java

Lines changed: 0 additions & 4 deletions
This file was deleted.

lib/shared/common/src/test/java/com/launchdarkly/sdk/collections/package-info.java

Lines changed: 0 additions & 4 deletions
This file was deleted.

lib/shared/common/src/main/java/com/launchdarkly/sdk/collections/IterableAsyncQueue.java renamed to lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/collections/IterableAsyncQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.launchdarkly.sdk.collections;
1+
package com.launchdarkly.sdk.internal.collections;
22

33
import java.util.LinkedList;
44
import java.util.concurrent.CompletableFuture;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Internal collection utilities.
3+
* <p>
4+
* This package contains collection utilities used internally by the SDK. Classes in this package
5+
* are not part of the public API and may change without notice.
6+
*/
7+
package com.launchdarkly.sdk.internal.collections;

lib/shared/common/src/test/java/com/launchdarkly/sdk/collections/IterableAsyncQueueTest.java renamed to lib/shared/internal/src/test/java/com/launchdarkly/sdk/internal/collections/IterableAsyncQueueTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.launchdarkly.sdk.collections;
1+
package com.launchdarkly.sdk.internal.collections;
22

33
import org.junit.Test;
44

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Tests for internal collection utilities.
3+
*/
4+
package com.launchdarkly.sdk.internal.collections;

0 commit comments

Comments
 (0)