Commit Graph

1294 Commits

Author SHA1 Message Date
stleary 9a3e7dd7c4 more formatting 2020-07-18 13:08:38 -05:00
stleary 79ff79ed70 initial commit 2020-07-18 13:05:55 -05:00
stleary d14c7b9127 formatting 2020-07-18 13:02:51 -05:00
stleary de4395dc5e initial commit 2020-07-18 12:59:34 -05:00
Sean Leary 6ddaa13c1e Merge pull request #532 from johnjaylward/CheckBigDecimalSupport
Verifies BigDecimal support does not have a regression
2020-06-25 17:02:18 -05:00
John J. Aylward f9908a6adb adds comment on test case to document why it was added. 2020-06-25 11:51:46 -04:00
John J. Aylward ba6c4089ea fixes #531
Add test result to confirm that #531 is working in latest version.
2020-06-25 11:42:07 -04:00
Erik C. Thauvin aa0a5a7245 Added putAll(Collection) and putAll(Array) methods. 2020-06-16 14:55:16 -07:00
Sean Leary 9de97438ac Merge pull request #524 from viveksacademia4git/i516-JSONArray-ConstructParam-InitCapacity
Development for stleary#516 completed with rebased repository
2020-06-12 10:48:21 -05:00
Sean Leary 601114ee29 Merge pull request #527 from johnjaylward/GithubAction
Fixes for Unit tests and supports GitHub Actions
2020-06-05 18:39:48 -05:00
John J. Aylward c11c006e88 fix tests to not depend on HashSet key order 2020-06-05 19:09:10 -04:00
John J. Aylward 96bf788515 update pipline to use matrix configuration 2020-06-05 18:55:48 -04:00
viveksacademia4git f4261add91 Create pipeline.yml 2020-06-05 17:15:55 -04:00
Sean Leary dced1b4a44 Merge pull request #526 from stleary/broken-unit-tests
comment out some broken unit tests
2020-06-03 21:25:50 -05:00
stleary cf00d2f265 initial commit 2020-06-03 21:12:19 -05:00
Sean Leary 95c6373122 Merge pull request #525 from johnjaylward/unitTestFixes
Unit test fixes
2020-06-03 19:49:06 -05:00
John J. Aylward b6ed0d4178 fix failing test case in Java1.7 2020-06-03 19:37:08 -04:00
John J. Aylward 75f656fd07 revert changes to build.gradle 2020-06-03 17:59:04 -04:00
viveksacademia4git 4b84ba2f66 Changes to make the Gradle work
- commented `java() {...}` within build.gradle
- added following files
   1. gradlew
   2. gradlew.bat (for windows)
   3. gradle/wrapper/gradle-wrapper.properties (for ./gradlew command execution)
   4. gradle/wrapper/gradle-wrapper.jar (for ./gradlew command execution)
2020-06-03 12:14:45 -04:00
vivek d088cf014e Development for stleary#516 completed with rebased repository
- Introduced JSONObject(int) constructor.
   - int > Initial capacity of the underlying data structure

- Test for new introduced JSONArray(int) constructor.
   1. Checked with input parameter: 0
   2. Checked with input parameter: positive number
   3. Checked with positive number input parameter and compared length
   4. If input parameter is negative number JSONException is thrown:
         JSONArray initial capacity cannot be negative.
2020-06-03 11:46:48 +02:00
Sean Leary 19bb6fd606 Merge pull request #453 from johnjaylward/UseBigDecimalDefaultParse
changes number parsing to use BigDecimal as the backing type
2020-06-01 14:03:04 -05:00
Sean Leary fee6ddb922 Merge pull request #521 from johnjaylward/CookieFlagSupport
Updates Cookie class to be more generic in attribute parsing and emit.
2020-05-29 09:59:27 -05:00
Sean Leary 5a32114792 Unified license for both src and test
All code in the project is covered by the original license
2020-05-27 08:23:09 -05:00
John J. Aylward 56d33b8061 changes number parsing to use BigDecimal as the backing type
* updated tests to support BigDecimal as the backing type for numbers
* updated some test resource handling to java7 try-with-resources format
* cleaned up some other minor compiler warnings
2020-05-26 10:10:36 -04:00
John J. Aylward 6029dece41 ensure key names are consistent when parsing the cookie string since
cookie-keys are not case sensitive, but json-keys are.
2020-05-26 09:11:10 -04:00
John J. Aylward d334b58f45 Made more corrections to Cookie.ToString.
1. Made Cookie Name and Value properties case insensitive
2. Throws exception on illegal Cookie Name
3. Doesn't emit "false" flag values
4. Properly escape key-value attributes.
2020-05-26 08:55:19 -04:00
John J. Aylward b4a75c7bf8 Updates Cookie class to be a more generic in attribute parsing and emit.
This is so the library can age better as new attributes are added to RFC
revisions.
2020-05-26 08:53:37 -04:00
Sean Leary 956bdfa5b7 Merge pull request #519 from stleary/gradle-support
Gradle support
2020-05-23 10:20:32 -05:00
stleary 8546e68e20 update readme 2020-05-22 11:44:21 -05:00
stleary 0832d1d873 gradle support 2020-05-22 11:24:20 -05:00
stleary 2b0a8838ef gradle support 2020-05-22 11:17:44 -05:00
Sean Leary 1da2b984cd Update README.md 2020-05-22 10:50:04 -05:00
Sean Leary 78901383a4 Update README.md 2020-05-22 10:41:55 -05:00
Sean Leary 3737c987a2 Merge pull request #515 from BGehrels/merge-tests-and-pom-and-code
Merge tests and pom and code
2020-05-22 10:40:48 -05:00
Sean Leary 8e5b516f2b Update README.md 20200518 2020-05-17 22:41:27 -05:00
Benjamin Gehrels 82202dbf65 Added Jar plugin version to get rid of a warning 2020-04-30 12:23:39 +02:00
Benjamin Gehrels 89d4681e41 Added information on how to release to the pom 2020-04-29 21:02:52 +02:00
Benjamin Gehrels 1265897f4e Merge remote-tracking branch 'tests/master' into upstream 2020-04-29 20:26:05 +02:00
Benjamin Gehrels 74e4932cfc Transform the repository into standard maven format and merge the pom.xml of the release repo 2020-04-29 19:24:44 +02:00
Sean Leary f07ddd93e5 Merge pull request #96 from Alanscut/bean-test
improve the confused assert message
2019-12-30 12:31:58 -06:00
Alan Wang 08719d4b3a Apply suggestions from code review
Co-Authored-By: Sean Leary <stleary@gmail.com>
2019-12-30 09:51:08 +08:00
Alanscut 16da56eb34 improve the confused assert message 2019-12-28 17:53:27 +08:00
Sean Leary 6b6e8e85d8 Merge pull request #502 from Alanscut/issue-500
update JSONTokener's brief: parse simple json text
2019-12-26 20:56:51 -06:00
Alanscut 6ecbeaa0d2 update JSONTokener's brief: parse simple json text 2019-12-25 11:38:38 +08:00
Sean Leary 3ac647a16f Merge pull request #499 from Alanscut/copyright
Add copyright notice to JSONString, JSONException.
2019-12-23 08:31:01 -06:00
Alanscut 6f06801296 add copyright 2019-12-22 19:17:58 +08:00
Sean Leary dd7056cb6d Merge pull request #495 from harkue/master
fix typo
2019-11-20 11:20:18 -06:00
harkue e62d763294 rename hasComma as a better name "needsComma" 2019-11-13 11:46:21 +08:00
harkue 4990c3a180 fix typo 2019-11-12 16:27:24 +08:00
Sean Leary 4b49bc94ce Merge pull request #494 from spaffrath/replace_string_arrays_with_var_args
Replace JSONObject constructor string arrays with var args
2019-11-06 09:31:23 -06:00