Skip to content
Open
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
2 changes: 2 additions & 0 deletions .claude/skills/migrate-groovy-to-java/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ When converting Groovy code to Java code, make sure that:
- Do not mark local variables `final`
- Ensure variables are human-readable; avoid single-letter names and pre-define variables that are referenced multiple times
- When translating Spock `Mock(...)` usage, use `libs.bundles.mockito` instead of writing manual recording/stub implementations
- Keep inline comments
- Migrate the named Spock clauses if they exist as inline comments in the Java unit test

TableTest usage
Import: `import org.tabletest.junit.TableTest;`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@ public String endpoint() {
return "v0.5";
}

// Visible for tests
Map<Object, Integer> getEncoding() {
return encoding;
}

// Visible for tests
GrowableBuffer getDictionary() {
return dictionary;
}

private static class DictionaryMapper implements Mapper<Object> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ void setLongRunningTrackedState(int state) {
LONG_RUNNING_STATE.set(this, state);
}

// @VisibleForTesting
int getPendingReferenceCount() {
return pendingReferenceCount;
}

boolean empty() {
return 0 >= COMPLETED_SPAN_COUNT.get(this) + PENDING_REFERENCE_COUNT.get(this);
}
Expand Down
Loading