Commit Graph

5568 Commits

Author SHA1 Message Date
Rob Tompkins 838d7ebefb Merge branch 'master' of github.com:apache/commons-lang into 3.9 2019-04-10 15:29:23 -04:00
Tompkins 5b0d49b813 LANG-1447: use isJavaVersionAtLeast in implementation 2019-04-10 14:59:59 -04:00
Tompkins f4c0ce3deb (update) don't allow travis to fail on java 12 2019-04-10 14:46:58 -04:00
Tompkins 5f7812ee1c LANG-1447: java 12 final modifier is no longer mutable 2019-04-10 14:46:12 -04:00
Rob Tompkins 20fdb8e63e jacoco: 0.8.2 -> 0.8.3, surefire: 2.22.1 -> 3.0.0-M3 2019-04-10 14:01:00 -04:00
Rob Tompkins 8b37888515 (update) a few more version upgrades 3.8.1 -> 3.9 2019-04-09 14:08:56 -04:00
Tompkins 6cf0846125 Merge branch 'master' of https://github.com/apache/commons-lang into 3.9 2019-04-09 13:18:18 -04:00
Rob Tompkins d48e87e4f2 LANG-1446: switch from cobertura to jacoco 2019-04-09 13:16:59 -04:00
Tompkins 4f4e9786a8 Preparing the codebase for 3.9 2019-04-09 13:12:01 -04:00
Rob Tompkins b8de60e0c1 (docs) more specificity 2019-04-08 14:35:57 -04:00
Gilles Sadowski cf8093776b LANG-1442: Javadoc.
https://markmail.org/message/mbp35qav34ifjm4t
2019-04-08 15:22:17 +02:00
Tompkins 69326c8ba9 (docs) update user use -> user explore 2019-04-08 08:13:39 -04:00
Rob Tompkins 3f43706192 LANG-1442: Commons-RNG citation 2019-04-06 09:02:56 -04:00
Benedikt Ritter 6e797a40a7
LANG-1443: Add more SystemUtils.IS_JAVA_XX variants (#415) 2019-04-05 18:33:35 +02:00
Tompkins 3e37b25ebc (docs) add "</p>" to end of crypto statement 2019-04-04 08:17:22 -04:00
Tompkins 7ab94f46fd (fix) unused imports 2019-04-04 08:13:48 -04:00
Tompkins ddb759d67a (docs) remove SecureRandom 2019-04-04 08:11:56 -04:00
Rob Tompkins ff05d661dc (docs) updates to documentation about SecureRandom 2019-04-03 20:43:17 -04:00
Gary Gregory c20dcdadd4 Oops, remove dup property. 2019-03-26 20:24:32 -04:00
Gary Gregory 064b9d8a2f Update Apache Commons Parent from 47 to 48. 2019-03-26 20:22:19 -04:00
Benedikt Ritter 4b0f3ed081
Add proposal for Jenkins Pipeline (#410)
Introduces a Jenkins pipeline with a build stage and an
optional deploy stage that is only executed when master
branch is build.
Post actions send mails in case of build failures.
2019-03-23 13:50:53 +01:00
Gary Gregory 98a4989da3 Update Travis build with current JDKs. 2019-03-22 15:34:27 -04:00
Bruno P. Kinoshita 7b272ca247
Merge pull request #413 from machaval/patch-1
Fix javadoc in wrapIfMissing
2019-03-13 10:11:39 +13:00
Mariano de Achaval 2e1a1d4536
Fix javadoc in wrapIfMissing
wrapIfMissing function was referencing warp function in the javadoc
2019-03-12 09:40:44 -03:00
Gary Gregory 82b69a4dd6 [LANG-1436] (doc) Fix javadoc for 'startIndex' parameter of
StringUtils.join() methods. GitHub PR #412.
2019-03-04 17:44:26 -05:00
Andrei Troie 353e06a8ac (doc) Fix javadoc for 'startIndex' parameter of StringUtils.join() methods (#412) 2019-03-04 17:41:38 -05:00
Alex Herbert fa9f1aae19 Consolidate the StringUtils.equals and equalsIgnoreCase methods. (#409)
* Consolidate the StringUtils.equals and equalsIgnoreCase methods.

Implement the same edge case logic for null. Use the same parameter
names. Use the same Javadoc wording. Change the equals method to use a
step-wise charAt comparison.

* LANG-1436: Added Jira to changes.xml.
2019-03-03 08:43:23 -05:00
Rob Tompkins 589ce59307
Merge pull request #391 from RahulNagekar/JsonToStringStyle_Junits
Adding junits for JsonToStringStyle
2019-02-18 18:34:22 -05:00
Benedikt Ritter 75768ba272
Simplify test code by using lambda expressions 2019-02-09 16:56:09 +01:00
pascalschumacher 508ddd1295 Update checkstyle to version 8.17 2019-02-09 13:54:01 +01:00
pascalschumacher c127a7266a Update EasyMock to version 4.0.2 2019-02-09 13:46:58 +01:00
pascalschumacher b5ed6c6180 Update Hamcrest to version 2.1 2019-02-09 13:43:15 +01:00
pascalschumacher c6bb13cb99 Remove dependency management for JUnit (since the update to JUnit 5.4.0 we only have a single JUnit test dependency). 2019-02-09 13:31:34 +01:00
Allon Mureinik c01fa9aa42 Simplify assertions (closes #404)
Use JUnit methods to clean up the test and simplify the assertions:
- assertArraysEqual(x, y) replaces assertTrue(Arrays.equals(x, y))
- assertEquals(x, y) replaces assertTrue(x == y)
- assertNotEquals(x, y) replaces assertFalse(x == y)
2019-02-09 12:44:42 +01:00
Allon Mureinik a4adb41259 Use assertThrows in FunctionsTest (closes #404)
Use JUnit Jupiter's elegant assertThrows method instead of the
boilerplate pattern of try-fail-catch to assert an exception was
thrown.
2019-02-09 12:44:06 +01:00
Eitan Adler 6b7a848010 [ToStringBuilderTest] clean up after some old issues
- Remove code to handle old JDK 6 bugs
- Fix a mis-ordered assertEquals
- Remove a deprecated call to Character's constructor
2019-02-09 02:08:32 -08:00
Allon Mureinik bfa50b3edf Clean up floating point assertions (closes #402)
JUnit Jupiter 5.4.0 supports deltas of 0 when asserting double and
float equalities.
This patch utilizes these new assertEquals methods and removes the
hack of using assertTrue with an == statement that was needed in older
JUnit versions.
2019-02-08 19:54:17 +01:00
Allon Mureinik 2273b6e44e Upgrade JUnit depedency to 5.4.0 (closes #402)
Upgrade the JUnit dependency to the latest available 5.4.0.

Note that JUnit simplified its artifacts, and now it contains a
single, simple org.junit:junit-jupiter artifact.
2019-02-08 19:53:20 +01:00
pascalschumacher 17bbe77262 Skip javadoc on Java 11 to workaround https://bugs.openjdk.java.net/browse/JDK-8212233 which causes javadoc to fail with "Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/7/docs/api/ are in the unnamed module." 2019-02-08 19:50:44 +01:00
pascalschumacher 43badd4dfa Merge remote-tracking branch 'origin/pr/403' 2019-02-08 19:41:40 +01:00
Allon Mureinik fc6a392b7c Fix javadoc errors in Functions.java 2019-02-08 20:08:56 +02:00
Allon Mureinik f12cfc8d4e FunctionsTest whitespaces
Use four spaces instead of a tab as per the projcet's Checkstyle
rules.
2019-02-08 19:39:01 +02:00
Allon Mureinik 19a5a09b09 FunctionsTest whitespace after comma
Add a space after the comma as per the project's Checkstyle rules
2019-02-08 19:37:38 +02:00
Allon Mureinik 5e315d1ac9 FunctionsTest method references
Use method references instead of lambda expression to clean up the
code and comply to the project's Checkstyle rules.
2019-02-08 19:36:29 +02:00
Allon Mureinik 76a243c587 FunctionTest redundant constructor modifier
Remove redundant public modifiers from inner classes constructors as
per the project's Checkstyle rules.
2019-02-08 19:34:40 +02:00
Allon Mureinik 95926eb5d9 FunctionsTest imports
Clean up FunctionsTest's imports as per the project's Checkstyle
rules.
2019-02-08 19:32:39 +02:00
Allon Mureinik c5eadb1c6d Functions.java whitspaces
Replace tabs with four spaces, as per the project's Checkstyle rules.
2019-02-08 19:30:35 +02:00
Allon Mureinik 962e529984 Add spaces after commas in Functions.java
Add spaces after commas as per the project's Checkstyle rules.
2019-02-08 19:29:06 +02:00
Allon Mureinik 028c9ec70c Remove unused generic argument from Functions#tryWithResources 2019-02-08 19:25:27 +02:00
Allon Mureinik b08c92e75d Fix Javadoc issues in Functions 2019-02-08 19:23:40 +02:00