Commit Graph

2853 Commits

Author SHA1 Message Date
Henri Yandell 83558381e3 Adding LANG-510
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090525 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:47:15 +00:00
Henri Yandell f08d8a2b0c Fixing documentation post translate move to Range API
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090522 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:30:12 +00:00
Henri Yandell 1a1145199e Moving 510 to below the beta fold. Adding LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090521 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:24:47 +00:00
Henri Yandell 944040db83 Fixing @see reference
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090514 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 02:41:19 +00:00
Henri Yandell b310b05700 Making it explicit that the else statement expects to jump to the next iteration of the loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090511 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 02:16:13 +00:00
Henri Yandell 0a1740cb4d Changing comment so PMD notices the NOPMD
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090510 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 02:14:26 +00:00
Henri Yandell 235040fa98 Making CharRange non-public. LANG-689
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090427 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 20:17:10 +00:00
Henri Yandell 4458775718 Note the CharSequence API change
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090426 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 20:17:00 +00:00
Henri Yandell 287b2cd800 Moving text translation classes to the Range class for its configuration
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090111 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 04:47:21 +00:00
Sebastian Bazley 0d01e050fa Fix broken test - Sun Java and Eclipse casting nasturtiums at each other
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090006 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:57:08 +00:00
Henri Yandell 6623901d3f My screwup. Rolling back didn't fix, so rolling forward again. No idea still why the build fails; needs investigation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090004 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:55:43 +00:00
Henri Yandell 22822da85e Rolling back the TypeUtilsTest change in r1089973 as it breaks the build. Unsure why.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090000 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:47:48 +00:00
Henri Yandell ee1dce15c2 Removing @author that was introduced by undeleting a file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089996 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:41:01 +00:00
Sebastian Bazley 937114b426 Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089974 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:10:40 +00:00
Sebastian Bazley 44a1c545c2 Comment out useless self-assigns
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089973 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:09:31 +00:00
Sebastian Bazley b084341cba Raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089971 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:06:21 +00:00
Sebastian Bazley 306b3880e1 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089970 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:05:50 +00:00
Sebastian Bazley 45be0392e8 Rewrap text
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089968 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:03:59 +00:00
Matthew Jason Benson 368fe5337c keywords fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089964 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 19:49:02 +00:00
Matthew Jason Benson faae4b3b10 formatting
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089963 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 19:47:43 +00:00
Matthew Jason Benson f4c4d5ab24 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089961 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 19:46:58 +00:00
Matthew Jason Benson e490a84b17 [LANG-688] removed unnecessary elses and use of ternary operator with primitive boolean consequences e.g. (some boolean expression) ? true : false
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089904 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 15:03:21 +00:00
Henri Yandell 2541a62def Moving the CharSequence specific methods out of StringUtils and reintroducing the CharSequenceUtils class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089751 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 06:28:21 +00:00
Henri Yandell e5763ff6f0 Adding a test to enforce the CharSequence vs String contract for StringUtils. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089742 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:22:01 +00:00
Henri Yandell 7a37a3deb2 Adding missing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089741 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:02:00 +00:00
Henri Yandell fb79157dbb Adding NOPMD tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089740 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:01:54 +00:00
Henri Yandell d6fe7f6789 Adding NOPMD tags for various empty catch blocks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089736 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:39:33 +00:00
Henri Yandell 4c690103f1 Defining TODO, NOTE and NOPMD as the interesting tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089735 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:39:13 +00:00
Henri Yandell b9b11b94c8 Adding javadoc for the new regionMatchesSequence method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089734 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:37:52 +00:00
Henri Yandell 5a7b17cf3e Reapplying more of Oliver's checkstyle fixes from r1083211
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089733 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:34:35 +00:00
Henri Yandell 3b180e56c3 Moving N.B. to NOTE: to standardize that tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089730 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:14:33 +00:00
Henri Yandell 473359a5cc Moving a startsWith test to the right test class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089726 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:05:57 +00:00
Henri Yandell 3dc67a2a4a Added CharSequence endsWithAny and startsWithAny tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089725 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:04:26 +00:00
Henri Yandell cc3b4d31bc Implemented the native CharSequence version of toCharArray
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089724 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:03:55 +00:00
Henri Yandell d1b24a3fea Moving equalsIgnoreCase, indexOfIgnoreCase, lastIndexOfIgnoreCase and containsIgnoreCase to the CharSequence API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089695 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 00:24:50 +00:00
Henri Yandell 3af0fd99d1 Adding green regionMatches implementation and moving endsWith and startsWith methods to use it; thus giving them CharSequence based APIs. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089540 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 17:21:36 +00:00
Henri Yandell 5b8fd90207 Rolling back accidental r1089306 commit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089307 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:36:35 +00:00
Henri Yandell 09cf7964fc Moving countMatches, ordinalIndexOf and lastOrdinalIndexOf over to a CharSequence-based API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089306 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:34:26 +00:00
Henri Yandell 50f136c874 Moving countMatches, ordinalIndexOf and lastOrdinalIndexOf over to a CharSequence-based API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089305 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:31:22 +00:00
Henri Yandell 3d041e3560 Moving stripAccents to accepting String instead of CharSequence. Even though the underlying Java API takes CharSequence, it makes for a clumsy interface and it is better to encourage the user to handle their own toString. Related to LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089303 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:16:17 +00:00
Henri Yandell 6dfc599a23 Replacing some of the older code. When performing a mutation operation (even if it's on an immutable by returning a new instance), String should go in and String should come out. When performing a non-mutation operation, CharSequence should be passed in. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089302 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:11:31 +00:00
Henri Yandell 3a0c152c22 Removing @author tags per thread on dev@: http://mail-archives.apache.org/mod_mbox/commons-dev/201104.mbox/%3CBANLkTikEa6GNSghx5VidxgNqi3nmKxxcVA@mail.gmail.com%3E
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088899 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 05:31:27 +00:00
Matthew Jason Benson 1dd3a636aa varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088656 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 14:55:08 +00:00
Henri Yandell 325648a185 Rolling capitalize and uncapitalize back from (CharSequence) to (String)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088505 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 08:42:38 +00:00
Henri Yandell 9946140913 Rolling StringUtils and test code back to r1082046. The move to CharSequence is theoretically desirable, but there are no common immutable CharSequence subclasses other than String, making this a complex and useless change. Instead StrBuilder should be enhanced. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088444 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 23:41:59 +00:00
Henri Yandell f5a6dc28f5 Setting the length of the new array to optimize speed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088439 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 23:35:59 +00:00
Henri Yandell a859fffc0a Removing unnecessary code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088424 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 21:45:35 +00:00
Henri Yandell 161b9cb4ca Upgrading pom version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088423 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 21:45:23 +00:00
Matthew Jason Benson 9f7311fa2f varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088344 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:30:34 +00:00
Matthew Jason Benson ff5d71e1c1 varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088343 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:25:36 +00:00