Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default module instead of $ion_encoding #1007

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

popematt
Copy link
Contributor

@popematt popematt commented Dec 4, 2024

Issue #, if available:

None

Description of changes:

Changes $ion_encoding to the default module as described in amazon-ion/ion-docs#369
This does not implement any new functionality. It just makes the current functionality match the new syntax.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@popematt popematt requested a review from tgregg December 4, 2024 22:02
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 60.97561% with 48 lines in your changes missing coverage. Please review.

Please upload report for BASE (ion-11-encoding@0a17f82). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...mazon/ion/impl/IonReaderContinuableCoreBinary.java 52.72% 14 Missing and 12 partials ⚠️
...ava/com/amazon/ion/impl/EncodingDirectiveReader.kt 40.00% 13 Missing and 8 partials ⚠️
...va/com/amazon/ion/impl/bin/IonManagedWriter_1_1.kt 80.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             ion-11-encoding    #1007   +/-   ##
==================================================
  Coverage                   ?   70.68%           
  Complexity                 ?     7336           
==================================================
  Files                      ?      214           
  Lines                      ?    29315           
  Branches                   ?     5276           
==================================================
  Hits                       ?    20720           
  Misses                     ?     6936           
  Partials                   ?     1659           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -2115,7 +2115,7 @@ private void setCheckpointBeforeUnannotatedTypeId() {
*/
private void setMarker(long endIndex, Marker markerToSet) {
if (parent != null && endIndex > parent.endIndex && parent.endIndex > DELIMITED_MARKER) {
throw new IonException("Value exceeds the length of its parent container.");
throw new IonException(String.format("Value [%s:%s] exceeds the length of its parent container [%s:%s].", peekIndex, endIndex, parent.startIndex, parent.endIndex));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new IonException(String.format("Value [%s:%s] exceeds the length of its parent container [%s:%s].", peekIndex, endIndex, parent.startIndex, parent.endIndex));
throw new IonException(String.format("Value [%d:%d] exceeds the length of its parent container [%d:%d].", peekIndex, endIndex, parent.startIndex, parent.endIndex));

src/main/java/com/amazon/ion/impl/macro/SystemMacro.kt Outdated Show resolved Hide resolved
src/main/java/com/amazon/ion/impl/macro/SystemMacro.kt Outdated Show resolved Hide resolved
src/test/java/com/amazon/ion/Ion_1_1_RoundTripTest.kt Outdated Show resolved Hide resolved
@popematt popematt merged commit 37a33d2 into amazon-ion:ion-11-encoding Dec 5, 2024
19 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants