aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-26Merge pull request #192 from ↵upstream-masterConstantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-jxr-plugin-3.3.2 Bump org.apache.maven.plugins:maven-jxr-plugin from 3.3.1 to 3.3.2
2024-02-26Merge pull request #193 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-surefire-report-plugin-3.2.5 Bump org.apache.maven.plugins:maven-surefire-report-plugin from 3.2.3 to 3.2.5
2024-01-10Bump org.apache.maven.plugins:maven-surefire-report-plugindependabot[bot]
Bumps [org.apache.maven.plugins:maven-surefire-report-plugin](https://github.com/apache/maven-surefire) from 3.2.3 to 3.2.5. - [Release notes](https://github.com/apache/maven-surefire/releases) - [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.2.3...surefire-3.2.5) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-surefire-report-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01Bump org.apache.maven.plugins:maven-jxr-plugin from 3.3.1 to 3.3.2dependabot[bot]
Bumps [org.apache.maven.plugins:maven-jxr-plugin](https://github.com/apache/maven-jxr) from 3.3.1 to 3.3.2. - [Commits](https://github.com/apache/maven-jxr/compare/jxr-3.3.1...jxr-3.3.2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-jxr-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-12-27Merge pull request #191 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-compiler-plugin-3.12.1 Bump org.apache.maven.plugins:maven-compiler-plugin from 3.11.0 to 3.12.1
2023-12-25Bump org.apache.maven.plugins:maven-compiler-plugindependabot[bot]
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.11.0 to 3.12.1. - [Release notes](https://github.com/apache/maven-compiler-plugin/releases) - [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.11.0...maven-compiler-plugin-3.12.1) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-compiler-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-12-17Merge pull request #185 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-project-info-reports-plugin-3.5.0 Bump org.apache.maven.plugins:maven-project-info-reports-plugin from 3.4.5 to 3.5.0
2023-12-17Merge pull request #189 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-surefire-report-plugin-3.2.3 Bump org.apache.maven.plugins:maven-surefire-report-plugin from 3.2.2 to 3.2.3
2023-12-14Bump org.apache.maven.plugins:maven-surefire-report-plugindependabot[bot]
Bumps [org.apache.maven.plugins:maven-surefire-report-plugin](https://github.com/apache/maven-surefire) from 3.2.2 to 3.2.3. - [Release notes](https://github.com/apache/maven-surefire/releases) - [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.2.2...surefire-3.2.3) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-surefire-report-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04Merge pull request #188 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-javadoc-plugin-3.6.3 Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2 to 3.6.3
2023-12-04Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2 to 3.6.3dependabot[bot]
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.6.2 to 3.6.3. - [Release notes](https://github.com/apache/maven-javadoc-plugin/releases) - [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.6.2...maven-javadoc-plugin-3.6.3) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-javadoc-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-12-02Merge pull request #187 from ↵Constantin Rack
c-rack/dependabot/github_actions/actions/setup-java-4 Bump actions/setup-java from 3 to 4
2023-11-29Bump actions/setup-java from 3 to 4dependabot[bot]
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22Bump org.apache.maven.plugins:maven-project-info-reports-plugindependabot[bot]
Bumps [org.apache.maven.plugins:maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.4.5 to 3.5.0. - [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.4.5...maven-project-info-reports-plugin-3.5.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-11-10Merge pull request #177 from AndrewScull/encodeToBytesConstantin Rack
Add a couple of encodeToBytes() examples to the README
2023-11-10Merge pull request #178 from ↵Constantin Rack
c-rack/dependabot/maven/org.jacoco-jacoco-maven-plugin-0.8.11 Bump org.jacoco:jacoco-maven-plugin from 0.8.10 to 0.8.11
2023-11-10Merge pull request #179 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-jxr-plugin-3.3.1 Bump org.apache.maven.plugins:maven-jxr-plugin from 3.3.0 to 3.3.1
2023-11-10Merge pull request #181 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-pmd-plugin-3.21.2 Bump org.apache.maven.plugins:maven-pmd-plugin from 3.21.0 to 3.21.2
2023-11-10Merge pull request #182 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-surefire-report-plugin-3.2.2 Bump org.apache.maven.plugins:maven-surefire-report-plugin from 3.1.2 to 3.2.2
2023-11-10Merge pull request #183 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-javadoc-plugin-3.6.2 Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.2
2023-11-07Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.2dependabot[bot]
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.5.0 to 3.6.2. - [Release notes](https://github.com/apache/maven-javadoc-plugin/releases) - [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.5.0...maven-javadoc-plugin-3.6.2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-javadoc-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-11-07Bump org.apache.maven.plugins:maven-surefire-report-plugindependabot[bot]
Bumps [org.apache.maven.plugins:maven-surefire-report-plugin](https://github.com/apache/maven-surefire) from 3.1.2 to 3.2.2. - [Release notes](https://github.com/apache/maven-surefire/releases) - [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.1.2...surefire-3.2.2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-surefire-report-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-11-03Bump org.apache.maven.plugins:maven-pmd-plugin from 3.21.0 to 3.21.2dependabot[bot]
Bumps [org.apache.maven.plugins:maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.21.0 to 3.21.2. - [Release notes](https://github.com/apache/maven-pmd-plugin/releases) - [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.21.0...maven-pmd-plugin-3.21.2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-pmd-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-10-24Bump org.apache.maven.plugins:maven-jxr-plugin from 3.3.0 to 3.3.1dependabot[bot]
Bumps [org.apache.maven.plugins:maven-jxr-plugin](https://github.com/apache/maven-jxr) from 3.3.0 to 3.3.1. - [Commits](https://github.com/apache/maven-jxr/compare/jxr-3.3.0...jxr-3.3.1) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-jxr-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17Bump org.jacoco:jacoco-maven-plugin from 0.8.10 to 0.8.11dependabot[bot]
Bumps [org.jacoco:jacoco-maven-plugin](https://github.com/jacoco/jacoco) from 0.8.10 to 0.8.11. - [Release notes](https://github.com/jacoco/jacoco/releases) - [Commits](https://github.com/jacoco/jacoco/compare/v0.8.10...v0.8.11) --- updated-dependencies: - dependency-name: org.jacoco:jacoco-maven-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18Add a couple of encodeToBytes() examples to the READMEAndrew Scull
Demonstrate how to use CborEncoder.encodeToBytes() and DataItem.encodeToBytes().
2023-09-17Merge pull request #175 from AndrewScull/encodeToBytesConstantin Rack
Encode to bytes
2023-09-17Make use of the byte encoding helpersAndrew Scull
Refactor the many instances of encoding CBOR to a byte array to make use of the new helpers for doing just that task.
2023-09-17Introduce helper method to encode to bytesAndrew Scull
It's common to encode CBOR to a byte array so provide utility methods in CborEncoder and on DataItem to make it really simple. These methods don't throw exceptions as only exceptions from the encoder will be from the OutputStream but a ByteArrayOutputStream doesn't actually throw so the exception can be ignored. An AssertionError is thrown in the unexpected event that an exception did somehow get caught. The alternative to ignoring the exception would be to have a shadow implementation of the encoder that directly uses the ByteArrayOutputStream methods that are declared not to throw so the shadow implementatino can also declare methods that don't throw. This would result in duplication so it didn't seem worth the maintenance cost.
2023-09-17Refactor the encoder implementation into CborOutputStreamAndrew Scull
Merge the encoder implementation into a single class rather than having to instantiate 11 classes that hold the same state. This class uses an OutputStream abstraction for outputing CBOR items to an underlying stream. The CborReader interface is unchanged and the CborOutputStream is not made part of the library's public interface.
2023-09-17Removes reference to encoder implementation detailsAndrew Scull
Use the CborEncoder interface rather than other interfaces from the encoder package. This will allow for changes to the encoder implementation.
2023-09-17Remove the INVALID major typeAndrew Scull
Get rid of the enum variant that is used for invalid major types that cannot be decoded or encoded. Move the decoder exception to be thrown when trying to parse the invalid major type rather than returning INVALID and then throwing the exception. Remove handling of this enum variant in the encoder which is also make to throw an AssertionError in the accidental case of a non-exhaustive switch statement.
2023-09-17Remove the UNALLOCAED special typeAndrew Scull
Get rid of the enum variant used for unallocated special types as it cannot be decoded or encoded. Move the decoder exception to be thrown when trying to parse an unallocated special type rather than returning UNALLOCAED and then throwing the exception. Remove the handling of this enum varient in the encoder which is also made to throw an AssertionError in the accidental case of a non-exhaustive switch statement.
2023-09-17Remove class checks when encoding special valuesAndrew Scull
Make the special value encoder assume that objects are instances of the classes from this library. This is consistent with the encoder for data items and removes a source of checked exceptions that can only arise from misuse of the library.
2023-09-16Characterize casting behaviour of DataItem encodingAndrew Scull
The items are assumed to be instances of the classes from this library so make that behaviour explicit in the tests.
2023-09-05Merge pull request #174 from c-rack/dependabot/github_actions/actions/checkout-4Constantin Rack
Bump actions/checkout from 3 to 4
2023-09-04Bump actions/checkout from 3 to 4dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-07-23Update copyright yearConstantin Rack
2023-06-07Merge pull request #172 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-project-info-reports-plugin-3.4.5 Bump maven-project-info-reports-plugin from 3.4.4 to 3.4.5
2023-06-07Merge pull request #171 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-surefire-report-plugin-3.1.2 Bump maven-surefire-report-plugin from 3.1.0 to 3.1.2
2023-06-07Bump maven-project-info-reports-plugin from 3.4.4 to 3.4.5dependabot[bot]
Bumps [maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.4.4 to 3.4.5. - [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.4.4...maven-project-info-reports-plugin-3.4.5) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-06-07Bump maven-surefire-report-plugin from 3.1.0 to 3.1.2dependabot[bot]
Bumps [maven-surefire-report-plugin](https://github.com/apache/maven-surefire) from 3.1.0 to 3.1.2. - [Release notes](https://github.com/apache/maven-surefire/releases) - [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.1.0...surefire-3.1.2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-surefire-report-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01Merge pull request #170 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-project-info-reports-plugin-3.4.4 Bump maven-project-info-reports-plugin from 3.4.3 to 3.4.4
2023-05-30Bump maven-project-info-reports-plugin from 3.4.3 to 3.4.4dependabot[bot]
Bumps [maven-project-info-reports-plugin](https://github.com/apache/maven-project-info-reports-plugin) from 3.4.3 to 3.4.4. - [Commits](https://github.com/apache/maven-project-info-reports-plugin/compare/maven-project-info-reports-plugin-3.4.3...maven-project-info-reports-plugin-3.4.4) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-project-info-reports-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26Merge pull request #169 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-source-plugin-3.3.0 Bump maven-source-plugin from 3.2.1 to 3.3.0
2023-05-22Bump maven-source-plugin from 3.2.1 to 3.3.0dependabot[bot]
Bumps [maven-source-plugin](https://github.com/apache/maven-source-plugin) from 3.2.1 to 3.3.0. - [Commits](https://github.com/apache/maven-source-plugin/compare/maven-source-plugin-3.2.1...maven-source-plugin-3.3.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-source-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16Merge pull request #168 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-pmd-plugin-3.21.0 Bump maven-pmd-plugin from 3.20.0 to 3.21.0
2023-05-16Bump maven-pmd-plugin from 3.20.0 to 3.21.0dependabot[bot]
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.20.0 to 3.21.0. - [Release notes](https://github.com/apache/maven-pmd-plugin/releases) - [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.20.0...maven-pmd-plugin-3.21.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-pmd-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-05-10Merge pull request #165 from ↵Constantin Rack
c-rack/dependabot/maven/org.jacoco-jacoco-maven-plugin-0.8.10 Bump jacoco-maven-plugin from 0.8.9 to 0.8.10
2023-05-10Merge pull request #166 from ↵Constantin Rack
c-rack/dependabot/maven/org.apache.maven.plugins-maven-gpg-plugin-3.1.0 Bump maven-gpg-plugin from 3.0.1 to 3.1.0