Commit Graph

4546 Commits

Author SHA1 Message Date
Sebb 68acbc803e Split up and simplify tests 2015-08-11 11:48:14 +01:00
Sebb 6849dfc8a6 LANG-1162 StringUtils#equals fails with Index OOBE on non-Strings with
identical leading prefix
2015-08-10 22:42:21 +01:00
Chas Honton fad946a1d7 fix ExceptionUtilsTest to compile with java 1.6 2015-07-24 20:06:15 -07:00
Benedikt Ritter b0bbe58eb6 Use travis containerized build infrastructure.
This promises to be much faster than running builds on real build
slaves, see http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
2015-07-24 14:40:10 +02:00
Benedikt Ritter f59a674a26 Reuse functionality from StringUtils instead of duplicating code 2015-07-24 13:07:12 +02:00
Benedikt Ritter 5fb158cc05 Simplify boolean expression 2015-07-24 13:06:47 +02:00
Henri Yandell 17a6d163c6 Adding a createStarted() method per request in LANG-1138 2015-07-19 09:23:45 -07:00
Henri Yandell 421db380d0 Switched capitalize back to using toTitleCase. Added a test for this using the 'Lj' letter. LANG-1142 2015-07-19 01:25:45 -07:00
Chas Honton cc1aed9bdf LANG-1057
Micro optimization: Replace StringBuilder with String concatenation so that the compiler can better optimize the code
2015-07-14 21:02:49 -07:00
Chas Honton fb7784fa14 LANG-1075 - Deprecate SystemUtils.FILE_SEPARATOR and SystemUtils.PATH_SEPARATOR 2015-07-13 22:26:44 -07:00
Chas Honton 61579335bc LANG-1154
FastDateFormat APIs that use a StringBuilder
2015-07-13 21:46:14 -07:00
Chas Honton 03fe88ab71 LANG-1149 Added alternative checked exception wrapping/unwrapping methods 2015-07-12 15:28:41 -07:00
Chas Honton 59022fb870 LANG-1149
Ability to throw checked exceptions without declaring them
2015-07-11 15:42:27 -07:00
ggregory 1b066eb4f6 maven-pmd-plugin 3.4 -> 3.5. 2015-07-08 01:10:50 -07:00
Chas Honton 958029bdd4 LANG-1002
Several predefined ISO FastDateFormats in DateFormatUtils are incorrect
2015-07-07 22:50:53 -07:00
Chas Honton 52b46e74dd LANG-1152 StringIndexOutOfBoundsException or field over-write for large year fields in FastDateParser 2015-07-07 21:15:58 -07:00
Chas Honton 40134ecdb3 LANG-1153
Implement ParsePosition api for FastDateParser
2015-07-07 20:20:19 -07:00
ggregory 3ff366c3db Javadoc: Fix typo but working is still awkward. 2015-06-27 14:44:36 -07:00
Benedikt Ritter 38e829fb39 Update to latest parent pom 2015-06-26 13:19:51 +02:00
oheger 80644cdab9 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang
Conflicts:
	src/changes/changes.xml
	src/main/java/org/apache/commons/lang3/text/StrLookup.java
2015-06-24 22:23:17 +02:00
oheger 305d5eb896 [LANG-1141] Updated changes.xml. 2015-06-24 22:17:35 +02:00
oheger 54e6300544 [LANG-1141] StrLookup for system properties now sees updated values.
The lookup implementation now directly accesses system properties without
caching the Properties object in any way.
2015-06-24 22:14:13 +02:00
Sebb 04b55bc7ca Use the proper constant 2015-06-13 00:56:07 +01:00
Sebb 06b7cd3a31 LANG-1147 EnumUtils *BitVector issue with more than 32 values Enum
This closes #97
2015-06-13 00:38:27 +01:00
Sebb 529964961f LANG-1059 Capitalize javadoc is incorrect 2015-06-12 18:06:46 +01:00
Sebb 78e2f4c122 LANG-1059 Capitalize javadoc is incorrect
Add test to show that first character is upcased, not the first
(alphabetic) letter that is found
2015-06-12 17:45:57 +01:00
Sebb 5f479e70cd LANG-1059 Capitalize javadoc is incorrect 2015-06-12 17:38:04 +01:00
Sebb 0822b4226f Split tests up according to methods tested 2015-06-12 13:47:11 +01:00
Sebb f37f4b68f3 Add some tests with other whitespace characters: tab and newline 2015-06-12 13:34:54 +01:00
Chas Honton 94faa31bcf refactor FastDateParser
use hashmap for performance
    break down regular expressions to per-format, allowing
ParsePosition to get set
    add parse with Calendar input, allowing client to set leniency
and/or replace display names
2015-06-11 20:07:13 -07:00
Sebb 612236c8a7 Show more info on failure 2015-06-07 14:08:35 +01:00
Sebb 756ccc935e Avoid raw type warning 2015-06-06 14:40:17 +01:00
Loic Guibert 3acffccf15 LANG-1139: Add null safe methods in StringUtils to replace by regular expression :
- StringUtils.replaceAll(String, String, String)
  - StringUtils.replaceFirst(String, String, String)
2015-05-28 16:20:14 +04:00
Benedikt Ritter 0343b4fda8 Format source code and remove spaces on empty lines 2015-05-19 21:38:52 +02:00
Gary Gregory ff3492b062 Add StringMatcher#toString(); useful from a debugger. 2015-05-18 20:26:54 -07:00
Benedikt Ritter f8669ed70a Fix source repository location in doap file and on front page 2015-05-18 09:13:03 +02:00
Benedikt Ritter 19dace1b8a Merge branch 'LANG-1137'
LANG-1137: Add check for duplicate event listener in EventListenerSupport.
Thanks to Metthew Aguirre.
2015-05-12 08:29:38 +02:00
Benedikt Ritter 4ccfde2b57 Add LANG-1137 to changes.xml 2015-05-12 08:29:21 +02:00
Benedikt Ritter 0611710c61 allowDuplicates will always be false at that point 2015-05-12 08:29:10 +02:00
Benedikt Ritter 5637a5204f Format source code 2015-05-12 08:26:25 +02:00
Matthew Aguirre a48071b0d4 Added new addListener() method that takes a boolean for if duplicates are allowed.
Added test method to make sure that duplicate listeners are not added.
2015-05-11 13:22:50 -04:00
Benedikt Ritter 61bec859ac Add since tag and reference to json.org to JsonToStringStyle.
This also closes #26 from github.
2015-05-11 19:17:43 +02:00
Chas Honton 71d7c32642 LANG-1133 FastDateParser_TimeZoneStrategyTest#testTimeZoneStrategyPattern fails on Windows with German Locale
reimplementing LANG-1107
2015-05-09 16:46:22 -07:00
Benedikt Ritter a9a73a7b2d Add release notes for 3.4 to release notes archive 2015-05-09 12:12:30 +02:00
Sebb f7a6722fba Version entries must be in separate release sections 2015-05-08 15:38:56 +01:00
Benedikt Ritter cfe63beeac Merge branch 'LANG-1127'
LANG-1127: Use JUnit rules to set and reset the default Locale and TimeZone.
2015-05-07 22:13:32 +02:00
Benedikt Ritter 9efa153e44 Update changes.xml for LANG-1127 2015-05-07 22:12:17 +02:00
Benedikt Ritter 9604c85306 Merge branch 'LANG-1135'
LANG-1135: Add method containsAllWords to WordUtils. Thanks to Eduardo Martins.
2015-05-07 21:28:25 +02:00
Benedikt Ritter 1182950a88 Add LANG-1135 to changes.xml 2015-05-07 21:26:59 +02:00
Benedikt Ritter d68f7f5f44 Write basic unit test for SystemDefaultsSwitch 2015-05-07 21:15:37 +02:00