[johnzon] 01/01: ensure johnzon-core is not used in mapper/jsonb + minor fixed on Snippet buffering
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git commit cc3a51197a21298f0e44aec358df8a1e9cbaed30 Merge: 133273d5 ab20eea0 Author: Romain Manni-Bucau AuthorDate: Thu Apr 28 10:06:49 2022 +0200 ensure johnzon-core is not used in mapper/jsonb + minor fixed on Snippet buffering .../java/org/apache/johnzon/core/Buffered.java | 2 +- .../johnzon/core/JsonGeneratorFactoryImpl.java | 42 +++--- .../main/java/org/apache/johnzon/core/Snippet.java | 163 - .../main/java/org/apache/johnzon/core/Types.java | 15 -- .../java/org/apache/johnzon/core/SnippetTest.java | 2 +- .../org/apache/johnzon/jsonb/JohnzonBuilder.java | 18 +-- .../org/apache/johnzon/jsonb/JsonbAccessMode.java | 2 +- .../org/apache/johnzon/jsonb/reflect}/Types.java | 43 ++ .../org/apache/johnzon/mapper/JohnzonCores.java| 32 +++- .../johnzon/mapper/JohnzonVirtualObject.java | 3 - .../org/apache/johnzon/mapper/MapperBuilder.java | 5 +- .../org/apache/johnzon/mapper/MapperConfig.java| 15 +- ...hnzonVirtualObject.java => SnippetFactory.java} | 35 + .../mapper/internal/JsonPointerTracker.java| 55 --- 14 files changed, 208 insertions(+), 224 deletions(-) diff --cc johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperConfig.java index eb8affc5,824c6707..1bc01752 --- a/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperConfig.java +++ b/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperConfig.java @@@ -158,8 -157,8 +157,8 @@@ public /* DON'T MAKE IT HIDDEN */ clas final Predicate> deserializationPredicate, final Predicate> serializationPredicate, final Function, CustomEnumConverter> enumConverterFactory, - final Snippet snippet) { - //CHECKSTYLE:ON + final SnippetFactory snippet) { -//CHECKSTYLE:ON ++//CHECKSTYLE:ON this.objectConverterWriters = objectConverterWriters; this.objectConverterReaders = objectConverterReaders; this.version = version; @@@ -312,8 -311,8 +311,8 @@@ } private T findObjectConverter(final Class clazz, --final Map, T> from, --final Map, T> cache) { ++ final Map, T> from, ++ final Map, T> cache) { if (clazz == null) { throw new IllegalArgumentException("clazz must not be null"); }
[johnzon] branch master updated (133273d5 -> cc3a5119)
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git from 133273d5 Merge pull request #84 from dblevins/improved-exception-message add 01c1eeb8 JOHNZON-367 Show a chunk of json when mapping the object fails add 2a8d3f21 JOHNZON-367 Snippet accepts a JsonGeneratorFactory and is reusable add 6589e679 JOHNZON-367 Allow Snippet size to be configurable (via @rmannibucau) All code written by Romain Manni-Bucau add 90519216 JOHNZON-367 Tests that johnzon.snippetMaxLength works as expected add 391025cc JOHNZON-367 Fix Snippet buffering issues and expand tests add 4f24814d JOHNZON-367 Allow true, false and null json constants to be trimmed Not my preference, but implementing in the hope of compromise add 4dd7763c JOHNZON-367 Reduce calls to flush() to the bare minimum Call flush only before snippet.terminate() and snippet.get() Reduce calls to snippet.terminate() to only what is needed add 2ab67a96 rebase add dbe6a0d9 rename Buffered to IODescriptor add ab20eea0 fix the johnzon-core dependency in mapper/jsonb module + use BoundedOutputStreamWriter in Snippet new cc3a5119 ensure johnzon-core is not used in mapper/jsonb + minor fixed on Snippet buffering The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../java/org/apache/johnzon/core/Buffered.java | 2 +- .../johnzon/core/JsonGeneratorFactoryImpl.java | 42 +++--- .../main/java/org/apache/johnzon/core/Snippet.java | 163 - .../main/java/org/apache/johnzon/core/Types.java | 15 -- .../java/org/apache/johnzon/core/SnippetTest.java | 2 +- .../org/apache/johnzon/jsonb/JohnzonBuilder.java | 18 +-- .../org/apache/johnzon/jsonb/JsonbAccessMode.java | 2 +- .../org/apache/johnzon/jsonb/reflect}/Types.java | 43 ++ .../org/apache/johnzon/mapper/JohnzonCores.java| 32 +++- .../johnzon/mapper/JohnzonVirtualObject.java | 3 - .../org/apache/johnzon/mapper/MapperBuilder.java | 5 +- .../org/apache/johnzon/mapper/MapperConfig.java| 15 +- .../mapper/{Cleanable.java => SnippetFactory.java} | 6 +- .../mapper/internal/JsonPointerTracker.java| 55 --- 14 files changed, 209 insertions(+), 194 deletions(-) copy {johnzon-core/src/main/java/org/apache/johnzon/core => johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/reflect}/Types.java (74%) copy johnzon-mapper/src/main/java/org/apache/johnzon/mapper/{Cleanable.java => SnippetFactory.java} (89%)
[johnzon] branch master updated (6571c776 -> 133273d5)
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git from 6571c776 [JOHNZON-369] adding org.apache.johnzon.boundedoutputstreamwriter support new 18d94b8b JOHNZON-367 Show a chunk of json when mapping the object fails new 39249323 JOHNZON-367 Snippet accepts a JsonGeneratorFactory and is reusable new 2ac98b78 JOHNZON-367 Allow Snippet size to be configurable (via @rmannibucau) All code written by Romain Manni-Bucau new 04196910 JOHNZON-367 Tests that johnzon.snippetMaxLength works as expected new 77936bb9 JOHNZON-367 Fix Snippet buffering issues and expand tests new fb227bdd JOHNZON-367 Allow true, false and null json constants to be trimmed Not my preference, but implementing in the hope of compromise new ddd0f241 JOHNZON-367 Reduce calls to flush() to the bare minimum Call flush only before snippet.terminate() and snippet.get() Reduce calls to snippet.terminate() to only what is needed new bc8b05e1 JOHNZON-367 Optimize buffering when new Buffered interface is supported new 076c610c Merge branch 'master' of github.com:apache/johnzon into improved-exception-message new d5d0fc79 JOHNZON-367 Incorporate PR feedback new 133273d5 Merge pull request #84 from dblevins/improved-exception-message The 877 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../java/org/apache/johnzon/core/Buffered.java | 36 ++ .../johnzon/core/JsonGeneratorFactoryImpl.java | 40 +- .../main/java/org/apache/johnzon/core/Snippet.java | 422 + .../java/org/apache/johnzon/core/SnippetTest.java | 517 + .../johnzon/jaxrs/ConfigurableJohnzonProvider.java | 4 + .../jaxrs/WildcardConfigurableJohnzonProvider.java | 4 + .../org/apache/johnzon/jsonb/JohnzonBuilder.java | 6 + .../apache/johnzon/jsonb/SnippetMaxLengthTest.java | 103 .../org/apache/johnzon/mapper/MapperBuilder.java | 10 +- .../org/apache/johnzon/mapper/MapperConfig.java| 47 +- .../apache/johnzon/mapper/MappingParserImpl.java | 4 +- 11 files changed, 1183 insertions(+), 10 deletions(-) create mode 100644 johnzon-core/src/main/java/org/apache/johnzon/core/Buffered.java create mode 100644 johnzon-core/src/main/java/org/apache/johnzon/core/Snippet.java create mode 100644 johnzon-core/src/test/java/org/apache/johnzon/core/SnippetTest.java create mode 100644 johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/SnippetMaxLengthTest.java