Commit Graph

4600 Commits

Author SHA1 Message Date
Benedikt Ritter 34558845e3 Format source code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671684 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 20:06:55 +00:00
Benedikt Ritter a498b87dbc Build requires at least Java 6 - check for Java version can be removed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671683 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 20:05:58 +00:00
Benedikt Ritter 83775c4323 Test fields can be private
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671682 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 20:05:08 +00:00
Benedikt Ritter 3f0f42f7da Drop unnecessary empty lines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671680 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:59:32 +00:00
Benedikt Ritter 98817e88f0 Use BeforeClass hook to set up test date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671679 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:58:56 +00:00
Benedikt Ritter 35f1cc0027 PMD: Useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671675 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:48:22 +00:00
Benedikt Ritter 2bc2ffde1f PMD: Useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671674 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:45:11 +00:00
Benedikt Ritter 11491d355d Use not bool instead of bool == false
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671673 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:44:39 +00:00
Benedikt Ritter 9072a7615a PMD: Useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671669 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:41:06 +00:00
Benedikt Ritter f525bc3ccd Use not String.contains instead of indexOf == -1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671666 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:37:04 +00:00
Benedikt Ritter 2fefdc7dc3 Scope of local variabel shift can be narrower
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671661 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:21:51 +00:00
Benedikt Ritter d3252a5ca5 PMD: Useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671658 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:12:23 +00:00
Benedikt Ritter c4c03a33c8 PMD: Useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671657 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 19:06:07 +00:00
Benedikt Ritter 9106f4ed5a Define Findbugs exlucde for internally used map key class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671628 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 18:16:37 +00:00
Benedikt Ritter 173c162a45 Simplify isNotEmpty by reusing isEmpty
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671624 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 18:06:41 +00:00
Benedikt Ritter ef51b068ae Simplify isEmpty be reusing getLength
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671623 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 18:02:50 +00:00
Benedikt Ritter 319588b45c Simplify isSameLenght implementations by reusing getLength. This also fixes a lot of the useless paranthesis warnings generated by PMD.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671622 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 17:58:46 +00:00
Benedikt Ritter 921ee58640 Document required java version for every release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671620 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 17:48:04 +00:00
Benedikt Ritter 3f418c2200 Use date schema from changes.xml on release history page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671600 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 17:12:54 +00:00
Benedikt Ritter 1c532efdb5 Add next release to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671594 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 17:09:10 +00:00
Benedikt Ritter cdbf4758ed Post release clean up: bump version number, document release date, add release to doap file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671578 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 16:45:16 +00:00
Benedikt Ritter 0d5d66692b Add entry for the upcoming 3.4 release to the release history page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671047 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:11:59 +00:00
Benedikt Ritter e83123d13c Fix copy past error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671044 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:09:37 +00:00
Benedikt Ritter 09c42e7d12 LANG-821: Support OS X versions in SystemUtils. This also fixes #59 from github. Thanks to Timo Kockert.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671043 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:09:07 +00:00
Benedikt Ritter 9c7b0fb8e6 LANG-794: SystemUtils.IS_OS_WINDOWS_2008, VISTA are incorrect. This also fixes #60 from github. Thanks to Timo Kockert.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671040 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:01:59 +00:00
Benedikt Ritter 8c84cfda26 The latest release is 3.3.2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671037 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 11:46:06 +00:00
Benedikt Ritter 6039dd3196 Fix ant build
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671032 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 11:38:53 +00:00
Benedikt Ritter 9e575c4da2 Document change of constant in DurationUtils as suggested by Oliver Heger.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671029 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 11:25:44 +00:00
Benedikt Ritter 79aceed0e3 Add LANG-1104 to release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671025 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 11:12:47 +00:00
Chas Honton 06d724599d LANG-1104 - FastDateParserTest.testParses fails in TimeZone America/Sao_Paulo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1670560 13f79535-47bb-0310-9956-ffa450edef68
2015-04-01 04:07:43 +00:00
Gary D. Gregory 56462a1e18 maven-checkstyle-plugin 2.14 -> 2.15.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669833 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 19:34:16 +00:00
Benedikt Ritter 3548f0ab8d Update site for release 3.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669792 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 15:32:14 +00:00
Benedikt Ritter dfaa656f02 PMD: Useless parentheses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669791 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 15:22:59 +00:00
Benedikt Ritter bb01292edd PMD: Avoid unused private fields such as 'ESCAPED_QUOTE'
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669787 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 15:12:47 +00:00
Benedikt Ritter 3ab0bc3571 Fix typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669786 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 15:09:29 +00:00
Benedikt Ritter f718ec1696 PMD: Overriding method merely calls super
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669785 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 15:09:15 +00:00
Benedikt Ritter e29f33c366 FindBugs: Load of known null value.
At this point if lhs is null, rhs will can not be null.
So evaluating the line with lhs == null will result in
rhs.equals(null) which should always be false.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669782 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 15:05:04 +00:00
Benedikt Ritter 346aae3b32 Make checkstyle happy: add missing JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669774 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 13:39:38 +00:00
Benedikt Ritter 4fdc606c35 Update RELEASE-NOTES for release 3.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669766 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 13:04:00 +00:00
Benedikt Ritter 11279f7b9d Update download page in preparation for 3.4 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669760 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 12:45:21 +00:00
Benedikt Ritter fccd59e788 Change test back to printing to std out, since continuum seems to be running on HAL-9000
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669755 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 12:29:38 +00:00
Benedikt Ritter 3225ba64ce LANG-1103: Add SystemUtils.IS_JAVA_1_9
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669753 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 12:26:01 +00:00
Benedikt Ritter 11c0df1d9e LANG-1102: Make logic for comparing OS versions in SystemUtils smarter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669750 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 12:08:17 +00:00
Benedikt Ritter 1dc65ff986 Reuse isOsNameMatch
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669747 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 11:43:32 +00:00
Benedikt Ritter 2b7e195935 This test should fail instead of writing to std out so that we can add missing OS
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669745 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 11:40:25 +00:00
Benedikt Ritter 098395eaee Dummy commit to close github issue, which has been fixed in r1669520. This fixes #56 from github.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669525 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 08:37:14 +00:00
Benedikt Ritter 2f62425c31 Further optimization of LANG-935:
- Avoid toString of the replacement sequence by doing it once.
- Avoid calculating the maximum when not needed.
- Fixup comment for greedy algorithm

Thanks to Fabian Lange.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669520 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 08:03:41 +00:00
Benedikt Ritter a211ef288c Better JavaDoc for LANG-1093: Add ClassUtils.getAbbreviatedName. This fixes #57 from github. Thanks to Fabian Lange.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669311 13f79535-47bb-0310-9956-ffa450edef68
2015-03-26 10:24:19 +00:00
Benedikt Ritter c8e96c0c73 LANG-1091: Shutdown thread pools in test cases. This fixes #58 from github. Thanks to Fabian Lange.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669310 13f79535-47bb-0310-9956-ffa450edef68
2015-03-26 10:21:24 +00:00
Chas Honton 0b7ef7f53f update changes.xml to set proper issue number for previously committed work
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1668781 13f79535-47bb-0310-9956-ffa450edef68
2015-03-24 03:24:30 +00:00