Commit Graph

4415 Commits

Author SHA1 Message Date
Loic Guibert 47c1862989 Add LANG-1183 to changes.xml 2015-11-02 09:16:54 +04:00
Loic Guibert b1762bd557 LANG-1183 Making replacePattern/removePattern methods null safe in StringUtils 2015-11-02 09:14:22 +04:00
Loic Guibert 56f0e1053c StringUtils: remove unused import 2015-11-02 09:07:00 +04:00
Loic Guibert a6addf94e5 Merge branch 'fix-LANG-1139'
LANG-1139: Add replace by regular expression methods in StringUtils
This closes #92 from github.
2015-10-27 08:07:09 +04:00
Loic Guibert 849578d3a8 Merge branch 'fix-LANG-1171'
LANG-1171: Add compare methods in StringUtils
This closes #110 from github.
2015-10-23 21:53:32 +04:00
Loic Guibert 51512905c3 LANG-1171 Remove log of excluded methods in StringUtilsTest.testStringUtilsCharSequenceContract() 2015-10-21 15:15:06 +04:00
Loic Guibert 131917a0d3 LANG-1171 Exclude methods from StringUtilsTest.testStringUtilsCharSequenceContract() :
- StringUtils.compare(String str1, String str2);
  - StringUtils.compare(String str1, String str2, boolean nullIsLess);
  - StringUtils.compareIgnoreCase(String str1, String str2);
  - StringUtils.compareIgnoreCase(String str1, String str2, boolean nullIsLess);
2015-10-20 18:50:13 +04:00
Loic Guibert ae865193ea Add myself to the developers list 2015-10-20 10:30:41 +04:00
Benedikt Ritter fd595d7475 Fix typo 2015-10-19 20:35:29 +02:00
Benedikt Ritter c9cae602ec Merge branch 'LANG-1174'
LANG-1174: Add sugar to RandomUtils.
This closes 111 from github. Thanks to github user Punkratz312.
2015-10-17 11:12:19 +02:00
Benedikt Ritter 19f9893de0 Add LANG-1174 to changes.xml 2015-10-17 11:12:07 +02:00
Benedikt Ritter 69383a2bab Better JavaDoc 2015-10-17 11:10:54 +02:00
Benedikt Ritter 881c5fa3d2 Remove empty lines 2015-10-17 11:00:02 +02:00
Benedikt Ritter acc2bcd058 Update to easymock dependency 2015-10-16 17:30:01 +02:00
Michael Osipov 6d3796e64b LANG-1002: Several predefined ISO FastDateFormats in DateFormatUtils are incorrect
Since the naming template is ISO <ID>, new constants have been renamed to ISO_8601_...
Additionally, the constants represent the extended format. That should be reflected
in their names.
2015-10-14 12:46:08 +02:00
Vincent Potucek 31466db6ec Add sugar to RandomIUtils 2015-10-12 09:47:40 +02:00
Loic Guibert 94ec5a1112 LANG-1171 Add null safe compare methods in StringUtils :
- StringUtils.compare(String str1, String str2);
  - StringUtils.compare(String str1, String str2, boolean nullIsLess);
  - StringUtils.compareIgnoreCase(String str1, String str2);
  - StringUtils.compareIgnoreCase(String str1, String str2, boolean nullIsLess);
2015-10-05 17:00:50 +04:00
Sebb 00fafe772c Some more tests 2015-08-12 10:37:14 +01:00
Sebb e8a2c29721 LANG-1163 There are no tests for CharSequenceUtils.regionMatches 2015-08-11 14:29:57 +01:00
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