Skip to content

Commit

Permalink
Remove Primitive Optimization for Boolean Collections (#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarcaur authored Nov 5, 2024
1 parent edc96bb commit e7a024c
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 96 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-2390.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: deprecation
deprecation:
description: Remove Primitive Optimization for Boolean Collections
links:
- https://github.com/palantir/conjure-java/pull/2390

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,10 @@ private enum ConjureCollectionType {
LIST("List"),
DOUBLE_LIST("DoubleList"),
INTEGER_LIST("IntegerList"),
BOOLEAN_LIST("BooleanList"),
// Eclipse has a BooleanList type, but this use case implies
// bit mask and it doesn't serialize efficiently as a collection
// so let's just use the "naive" boxed collection
BOOLEAN_LIST("List"),
SAFE_LONG_LIST("SafeLongList"),
SET("Set");

Expand Down
1 change: 1 addition & 0 deletions conjure-java-core/src/test/resources/example-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ types:
safety: safe
primitiveItems: list<integer>
doubleItems: list<double>
booleanItems: list<boolean>
optionalItems: list<optional<string>>
aliasOptionalItems: list<OptionalAlias>
nestedItems: list<list<string>>
Expand Down

This file was deleted.

Loading

0 comments on commit e7a024c

Please sign in to comment.