-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: merge branch master of https://github.com/google/gson #100
Conversation
When a type variable is referenced multiple times it needs to resolve to the same value. Previously, the second attempt would abort resolution early in order to protect against infinite recursion.
…ect isn't so accessible
… getAsDouble, getAsInt, getAsJsonArray, getAsJsonObject, getAsLong, and getAsString methods of JsonArray class. These test cases, which we wrote according to the specified behavior of each method, that helped us in identifying the documentation bugs in JsonArray and JsonElement classes, which we submitted issues for (Issue google#1908). Note that we have adapted these test cases based on similar tests from the JSON-java project (https://github.com/stleary/JSON-java).
…ods [use fail(...), use JsonArray methods, remove unused values, formatting, google#1909, google#1908]
Fix issue with recursive type variable protections to fix google#1390
Use two-space indentation for the new test. Use standard Google import style. Supply missing type argument for `TypeVariable`.
Adjust some minor details of google#1391.
Fix fallback behavior of UnsafeReflectionAllocator when AccessibleObject isn't so accessible
When enum value was obfuscated by proguard, EnumTypeAdapter raise NoSuchFieldException even if apply SerializedName annotation. Because EnumTypeAdapter cannot find obfuscated enum constant field with its name.
Make EnumTypeAdapter friendly with obfuscation
Bumps [maven-resources-plugin](https://github.com/apache/maven-resources-plugin) from 2.7 to 3.2.0. - [Release notes](https://github.com/apache/maven-resources-plugin/releases) - [Commits](apache/maven-resources-plugin@maven-resources-plugin-2.7...maven-resources-plugin-3.2.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-resources-plugin dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [proguard-maven-plugin](https://github.com/wvengen/proguard-maven-plugin) from 2.3.1 to 2.4.0. - [Release notes](https://github.com/wvengen/proguard-maven-plugin/releases) - [Changelog](https://github.com/wvengen/proguard-maven-plugin/blob/master/CHANGELOG.md) - [Commits](https://github.com/wvengen/proguard-maven-plugin/commits) --- updated-dependencies: - dependency-name: com.github.wvengen:proguard-maven-plugin dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [copy-rename-maven-plugin](https://github.com/coderplus/copy-rename-maven-plugin) from 1.0 to 1.0.1. - [Release notes](https://github.com/coderplus/copy-rename-maven-plugin/releases) - [Commits](https://github.com/coderplus/copy-rename-maven-plugin/commits) --- updated-dependencies: - dependency-name: com.coderplus.maven.plugins:copy-rename-maven-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…plus.maven.plugins-copy-rename-maven-plugin-1.0.1 Bump copy-rename-maven-plugin from 1.0 to 1.0.1
* Convert codegen, metrics and proto to Maven submodules * Fix import order
* Fix warnings * Address review feedback
Bumps [guava](https://github.com/google/guava) from 30.1.1-jre to 31.0.1-jre. - [Release notes](https://github.com/google/guava/releases) - [Commits](https://github.com/google/guava/commits) --- updated-dependencies: - dependency-name: com.google.guava:guava dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tor (google#1902) * Remove UnsafeReflectionAccessor Revert google#1218 Usage of sun.misc.Unsafe to change internal AccessibleObject.override field to suppress JPMS warnings goes against the intentions of the JPMS and does not work anymore in newer versions, see google#1540. Therefore remove it and instead create a descriptive exception when making a member accessible fails. If necessary users can also still use `java` command line flags to open external modules. * Fix failing to serialize Collection or Map with inaccessible constructor Also remove tests which rely on Java implementation details. * Don't keep reference to access exception of ConstructorConstructor This also avoids a confusing stack trace, since the previously caught exception might have had a complete unrelated stack trace. * Remove Maven toolchain requirement * Address review feedback * Add back test for Security Manager
The `fillBuffer` method changes `pos`, so it is incorrect to cache its previous value.
* change %s to %d * secusity issue, add try-finally block Co-authored-by: liuxinyu <[email protected]>
Bumps [bnd-maven-plugin](https://github.com/bndtools/bnd) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/bndtools/bnd/releases) - [Changelog](https://github.com/bndtools/bnd/blob/master/docs/ADDING_RELEASE_DOCS.md) - [Commits](bndtools/bnd@6.0.0...6.1.0) --- updated-dependencies: - dependency-name: biz.aQute.bnd:bnd-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [proguard-maven-plugin](https://github.com/wvengen/proguard-maven-plugin) from 2.5.1 to 2.5.2. - [Release notes](https://github.com/wvengen/proguard-maven-plugin/releases) - [Changelog](https://github.com/wvengen/proguard-maven-plugin/blob/master/CHANGELOG.md) - [Commits](https://github.com/wvengen/proguard-maven-plugin/commits) --- updated-dependencies: - dependency-name: com.github.wvengen:proguard-maven-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps maven-bundle-plugin from 5.1.2 to 5.1.3. --- updated-dependencies: - dependency-name: org.apache.felix:maven-bundle-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [proguard-maven-plugin](https://github.com/wvengen/proguard-maven-plugin) from 2.5.2 to 2.5.3. - [Release notes](https://github.com/wvengen/proguard-maven-plugin/releases) - [Changelog](https://github.com/wvengen/proguard-maven-plugin/blob/master/CHANGELOG.md) - [Commits](https://github.com/wvengen/proguard-maven-plugin/commits) --- updated-dependencies: - dependency-name: com.github.wvengen:proguard-maven-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.13.0 to 2.13.1. - [Release notes](https://github.com/FasterXML/jackson/releases) - [Commits](https://github.com/FasterXML/jackson/commits) --- updated-dependencies: - dependency-name: com.fasterxml.jackson.core:jackson-databind dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add READMEs to Maven modules * Address feedback
Explicitly specifying dependencies only seems to be necessary when using `<proguardVersion>` config element to override version (and even that might not be necessary; only adding explicit dependencies might suffice). However, when omitting it, plugin uses a recent ProGuard version on its own.
* Add GsonBuilder.disableJdkUnsafe() * Address review feedback
Bumps [maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin) from 3.0.0-M1 to 3.0.0-M2. - [Release notes](https://github.com/apache/maven-deploy-plugin/releases) - [Commits](apache/maven-deploy-plugin@maven-deploy-plugin-3.0.0-M1...maven-deploy-plugin-3.0.0-M2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-deploy-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Change target Java version to 7 * Document Gson requirements * Add package-info.java for `stream` package
* Put module-info.class into Multi-Release JAR folder Uses ModiTect to place module-info.class under Multi-Release JAR folder `META-INF/versions/9`. * Adjust pom.xml to drop support for Java 6 * Change doclint setting All Javadoc errors have been solved previously; doclint can now be enabled without causing build failures. * Improve README Java requirements
Bumps [maven-scm-api](https://github.com/apache/maven-scm) from 1.11.3 to 1.12.2. - [Release notes](https://github.com/apache/maven-scm/releases) - [Commits](apache/maven-scm@maven-scm-1.11.3...maven-scm-1.12.2) --- updated-dependencies: - dependency-name: org.apache.maven.scm:maven-scm-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps maven-scm-provider-gitexe from 1.12.0 to 1.12.2. --- updated-dependencies: - dependency-name: org.apache.maven.scm:maven-scm-provider-gitexe dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #100 +/- ##
============================================
+ Coverage 73.52% 73.80% +0.28%
Complexity 41 41
============================================
Files 6 6
Lines 355 355
Branches 55 55
============================================
+ Hits 261 262 +1
+ Misses 61 60 -1
Partials 33 33
Continue to review full report at Codecov.
|
## [0.3.0](0.2.4...0.3.0) (2022-01-08) ### Features * added UPPER_CASE_WITH_UNDERSCORES in FieldNamingPolicy ([google#2024](https://github.com/DanySK/gson-extras/issues/2024)) ([eaf9a03](eaf9a03)) * merge branch 'master' of https://github.com/google/gson into google-master ([78a4285](78a4285)) * merge branch master of https://github.com/google/gson [#100](#100) ([d399bd9](d399bd9))
🎉 This PR is included in version 0.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
No description provided.