Commit Graph

1589 Commits

Author SHA1 Message Date
Henri Yandell aac29e97ee Fixed indentation/tabs. Eclipse wasn't setup right I guess
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@500497 13f79535-47bb-0310-9956-ffa450edef68
2007-01-27 07:13:59 +00:00
Henri Yandell ec4a0fdfac Applying a modified version of Maarten Coene's patch for #LANG-69. All unit tests pass; opinions would be very welcome though.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@500495 13f79535-47bb-0310-9956-ffa450edef68
2007-01-27 07:11:08 +00:00
Henri Yandell 87ee821a5d Adding a unit test to show that LANG-313 is not a problem in the current trunk
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@496931 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 03:56:33 +00:00
Niall Pemberton 801f084e8e Change the assertion failure messages to provide more info
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@493682 13f79535-47bb-0310-9956-ffa450edef68
2007-01-07 08:15:41 +00:00
Henri Yandell 0a201610f9 Also test the JDK
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492913 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 05:36:50 +00:00
Henri Yandell abb136d51f Adding test for LANG-312. It passes for me, so I'm interested in whether it fails for anybody else.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492910 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 05:30:04 +00:00
Stephen Colebourne be732f09d7 Remove release2_0.xml as it duplicates upgradeto2_0.xml
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492833 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 00:24:00 +00:00
Stephen Colebourne 92e2f39be3 Rename releasenotes to release to match [collections] and fix text within
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492832 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 00:21:33 +00:00
Stephen Colebourne 0f2ba8cea3 Fix javadoc example
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492378 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 01:31:24 +00:00
Stephen Colebourne 183e837907 LANG-275 - StringUtils substringsBetween, implemented by Dave Meikle
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492377 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 01:20:30 +00:00
Stephen Colebourne 80cd41f238 Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492371 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:42:05 +00:00
Stephen Colebourne da8646f9c9 LANG-306 - StrBuilder appendln/appendAll/appendSeparator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492369 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:35:45 +00:00
Stephen Colebourne de6e073727 LANG-310 - BooleanUtils isNotTrue/isNotFalse
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492361 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:10:13 +00:00
Stephen Colebourne 53a8f5b28a Formatting changes only
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492354 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 23:48:10 +00:00
Stephen Colebourne 4c7e393d46 Formatting changes only
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492352 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 23:44:56 +00:00
Henri Yandell a1cf642b8d LANG-102 was fixed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492037 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 03:49:09 +00:00
Henri Yandell cd6d6bb580 Fixing version number in nav
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492003 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 01:37:27 +00:00
Henri Yandell 72836376f5 Putting Cobertura back, hadn't known we still had it hooked up
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491998 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 01:07:27 +00:00
Henri Yandell e53a9eda84 Updating the site prior to a 2.3 release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491997 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 01:05:17 +00:00
Henri Yandell b6f00de7be Removed the tasks page and put the two enhancements there into JIRA, losing the other two (build improvement and creation of an example site)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491958 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 22:50:12 +00:00
Henri Yandell 8898f28898 Don't get the point of 'dist' and 'dist-build' being separate, so merging them
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491956 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 22:47:03 +00:00
Henri Yandell 538502165b jardiff/clirr passes for 2.2->2.3. No new deprecations in 2.3
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491950 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 22:37:56 +00:00
Phil Steitz ab29453ec2 Fixed incorrect JDK API link.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491757 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 07:50:12 +00:00
Gary D. Gregory 0e07a3b099 [LANG-102] [lang] Refactor Entities methods.
http://issues.apache.org/jira/browse/LANG-102.
Refactored escape and unescape methods to remove code duplication.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491695 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 23:24:27 +00:00
Gary D. Gregory a1dcdfa2a6 Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491654 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:04:34 +00:00
Gary D. Gregory fec5e2dc3d Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491653 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:03:58 +00:00
Gary D. Gregory fda25d2a8b Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491652 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:01:57 +00:00
Gary D. Gregory b091a374a7 Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491651 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:01:32 +00:00
Gary D. Gregory 627392e88d Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491650 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:00:14 +00:00
Gary D. Gregory 8dbeaa63e2 Update Copyright for 2007.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491646 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 21:54:23 +00:00
Gary D. Gregory 7d7b3e3877 Add missing Javadoc tags.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491645 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 21:51:30 +00:00
Henri Yandell a17bdf3a36 Adding bugfixes and improvements from JIRA
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491129 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 23:08:49 +00:00
Henri Yandell 9425150104 Rolling back r467482 as the methods are already in java.util.Arrays. These were added as a part of #LANG-238.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491076 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 18:48:37 +00:00
Henri Yandell 65cc70a5c4 Rolling back r490355 - StrBuilder implements Cloneable again
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491073 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 18:42:08 +00:00
Stephen Colebourne 640d7cf079 LANG-301 - Document cloneReset()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491063 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:55:32 +00:00
Stephen Colebourne a9ff534b36 Fix javadoc link
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491059 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:44:59 +00:00
Stephen Colebourne 37b2a3f215 Avoid new Boolean() via BooleanUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491052 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:16:37 +00:00
Stephen Colebourne f40b71e33d LANG-291 - Move min/max methods above inner class, add javadoc and format
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491050 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:04:00 +00:00
Henri Yandell 6847ebcf5e Improved #LANG-303 test to prove the formatting works on each side of the serializing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490388 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 22:10:10 +00:00
Henri Yandell e9e167f9eb Applying test for #LANG-303, and a fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490387 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 22:05:47 +00:00
Henri Yandell c47d6ce534 Removed some commented out reports; added a commented out findbugs report
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490385 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 22:04:27 +00:00
Henri Yandell 17f5eaed71 Starting on Lang 2.3 release notes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490374 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 21:23:20 +00:00
Henri Yandell 815f63670e StrBuilder no longer implements Cloneable. #LANG-302
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490355 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 18:58:06 +00:00
Henri Yandell b57c699e69 Rolling back r489734 - Boolean.valueOf(boolean) only available from JDK 1.4 onwards
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490161 13f79535-47bb-0310-9956-ffa450edef68
2006-12-25 18:57:37 +00:00
Henri Yandell cf20d13c64 Applying test for LANG-304 and fix to LocaleUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489749 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:34:37 +00:00
Henri Yandell 848a8144bc Fixed import. Also optimised list.toArray(..) to use new Token[list.size()] so that the passed in array is used and not reflection. Latter reported by FindBugs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489740 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:51:19 +00:00
Henri Yandell 5a4594cd37 new Boolean -> Boolean.valueOf. (Reported by FindBugs)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489734 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:31:28 +00:00
Henri Yandell 37875137e9 Removing the Serializable implements. As far as I can tell, Number has been serializable since at the least Java 1.2. (Reported by FindBugs)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489733 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:29:53 +00:00
Henri Yandell 03cc852bef Added a test for the under a day range in formatPeriod
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488929 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 06:24:00 +00:00
Henri Yandell 4f514d5eb3 More tests, more bugfixes (aka rewrite of the guts).
It's looking much better, the only edge case that throws it for a loop is if things start on the 29th of February in a year. I've hacked it in the day mode, but I'm not sure why I had to do that - however I trust the brute force test to be right in day mode. 
In month mode, it's even trickier as to what the correct answer is. How many months between 29th Feb and 28th of Feb the next year? The answer is 11, or with days included it's 11 months and 28 days. I can't see any reason to define that better, so I'm declaring that law. 

Things are weird if you start on Feb 29 :)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488926 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 06:10:26 +00:00