Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Bump json from 20180813 to 20200518#321

Merged
proshin-roman merged 7 commits intomasterfrom
dependabot/maven/org.json-json-20200518
Aug 26, 2020
Merged

Bump json from 20180813 to 20200518#321
proshin-roman merged 7 commits intomasterfrom
dependabot/maven/org.json-json-20200518

Conversation

@dependabot-preview
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented May 22, 2020

Bumps json from 20180813 to 20200518.

Release notes

Sourced from json's releases.

20200518

Pull Request Description
#502 Update JSONTokener text in README
#499 Add copyright to some files
#495 Refactor typos from code
#494 Replace JSONObject constructor string arrays with var args
#492 Clarify output of JSONArray toList()
#486 Standardize some exception messages
#485 Fix EOF error when Meta tag isn't closed at end of input.
#483 Update README.md to point to latest released jar
#481 Clarify exception when parser reads JSON
#475 Make private methods static where possible
#474 Replaces an internally used inefficient StringBuffer class

20190722

Pull Request Description
#467 add configuration for xsi:nil="true" conversion to null
#452 Adds check for EOF
#440 Corrections to BigDecimal consistency
#432 Update README.md
#421 add isEmpty and isNotEmpty methods
#417 fix double ctor in JSONWriter
#412 Initial implementation of XMLParserConfig object for flexible XML Parsing
#407 Fix for invalid processing of trailing / for JSON Pointer
#406 Adds annotations to customize field names during Bean serialization
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label May 22, 2020
@ccostin93
Copy link
Collaborator

@dependabot rebase

Bumps [json](https://github.com/douglascrockford/JSON-java) from 20180813 to 20200518.
- [Release notes](https://github.com/douglascrockford/JSON-java/releases)
- [Commits](https://github.com/douglascrockford/JSON-java/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/maven/org.json-json-20200518 branch from 664c665 to 7fb402c Compare August 10, 2020 23:18

public OptionalBigDecimalOf(final JSONObject origin, final String name) {
this(new OptionalOf<>(origin, name, JSONObject::getBigDecimal));
this(new OptionalOf<>(origin, name, (json, key) -> new BigDecimal(json.optString(key))));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's easier if we just read the value as a string and then convert it to BigDecimal as it is, since the precision is already ensured by finAPI.

Copy link
Owner

Choose a reason for hiding this comment

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

yeah, ok, only one thing: not optString, but getString as the third parameter can only be triggered if the field is actually presented in the JSON

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #321 into master will increase coverage by 0.12%.
The diff coverage is 81.81%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #321      +/-   ##
============================================
+ Coverage     83.86%   83.99%   +0.12%     
- Complexity     1031     1035       +4     
============================================
  Files           174      175       +1     
  Lines          2548     2555       +7     
  Branches         20       20              
============================================
+ Hits           2137     2146       +9     
+ Misses          392      391       -1     
+ Partials         19       18       -1     
Impacted Files Coverage Δ Complexity Δ
...org/proshin/finapi/account/out/FpDailyBalance.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ain/java/org/proshin/finapi/payment/FpPayment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...va/org/proshin/finapi/category/out/FpCashFlow.java 100.00% <100.00%> (ø) 9.00 <3.00> (ø)
...a/org/proshin/finapi/category/out/FpCashFlows.java 100.00% <100.00%> (ø) 6.00 <3.00> (ø)
...va/org/proshin/finapi/primitives/BigDecimalOf.java 100.00% <100.00%> (ø) 3.00 <3.00> (?)
...napi/primitives/optional/OptionalBigDecimalOf.java 100.00% <100.00%> (ø) 3.00 <1.00> (ø)
.../org/proshin/finapi/transaction/FpTransaction.java 100.00% <100.00%> (ø) 32.00 <1.00> (ø)
...hin/finapi/transaction/out/FpTransactionsPage.java 100.00% <100.00%> (ø) 8.00 <3.00> (ø)
...proshin/finapi/primitives/optional/OptionalOf.java 100.00% <0.00%> (+25.00%) 3.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0fbd7f...e31b3bf. Read the comment docs.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 6 Code Smells

81.8% 81.8% Coverage
7.3% 7.3% Duplication

@ccostin93 ccostin93 self-assigned this Aug 13, 2020
@proshin-roman proshin-roman merged commit b275790 into master Aug 26, 2020
@proshin-roman proshin-roman deleted the dependabot/maven/org.json-json-20200518 branch August 26, 2020 15:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants