Commit Graph

2234 Commits

Author SHA1 Message Date
Henri Yandell 823eb10825 Moving 'todo' to 'TODO' to match general style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884486 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:17:31 +00:00
Oliver Heger 63e4b09f23 [LANG-501] There was a problem with inconsistent line endings in the last commit, so the svn:eol-style property was not set. Fixing now.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@883101 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 17:03:10 +00:00
Oliver Heger 21df5c4fce [LANG-501] Added CallableBackgroundInitializer class with unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@883100 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 16:57:39 +00:00
Sebastian Bazley 37239c934b Generic fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882971 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 19:05:52 +00:00
Sebastian Bazley 030babab20 Rename private variable to avoid shadowing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882970 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 19:05:38 +00:00
Sebastian Bazley 765963f423 Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882969 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:58:57 +00:00
Sebastian Bazley a12632228f Suppress Eclipse warnings for deliberate behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882968 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:58:33 +00:00
Sebastian Bazley 9a76dcf3c9 Suppress Eclipse warnings for deliberate name shadowing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882964 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:48:48 +00:00
Sebastian Bazley 38ac11d0b7 Add some basic Comparator tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882960 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:30:09 +00:00
Sebastian Bazley 229f41046f Fix most Eclipse warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882950 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:11:07 +00:00
Sebastian Bazley 55559050cf Fix generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882949 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:07:15 +00:00
Henri Yandell d45e05d584 Adding a char Range test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882855 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 08:08:52 +00:00
Henri Yandell 5adce14980 Switched to static builder methods, allowing two of the constructors to restrict T to Comparables, and removed javadoc that discussed subclasses optimising methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882854 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 08:05:55 +00:00
Sebastian Bazley 5839d3e011 Javadoc fixes; add missing @Overrides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882197 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:40:21 +00:00
Sebastian Bazley c4e87426ff Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882193 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:29:01 +00:00
Henri Yandell fef34b82eb Implementing Serializable - part of LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 07:11:41 +00:00
Henri Yandell 8550f4da08 Removing ArrayUtils.hashCode per LANG-492; it is now available as java.util.Arrays.hashCode
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881685 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 06:43:23 +00:00
Paul C. Benedict Jr 87c4b35e52 LANG-555: Add IS_OS_WINDOWS_7 constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881672 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 05:58:06 +00:00
Paul C. Benedict Jr 0698ab208a LANG-554: Add 1.7 check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881671 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 05:52:01 +00:00
Stephen Colebourne 34b9c73a6d Fix to handle null input array, and remove check for NULL
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881209 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:30:41 +00:00
Stephen Colebourne ac719ec4ab Move firstNonNull() to better place in file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881205 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:19:05 +00:00
Stephen Colebourne a14051481e Enhance Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881204 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:13:49 +00:00
Henri Yandell 0714795b6f Removing the EscapeUtils/UnescapeUtils classes, and making StringEscapeUtils the replacement. Writer variants of StringEscapeUtils are dropped - instead you hit those via the translator objects. Some javadoc/testing cleanup needed.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881197 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:45:55 +00:00
Henri Yandell c090db27a4 Remove SQL from javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881181 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 07:52:35 +00:00
Henri Yandell ab1bf739da Changing the note on high > 0x7f characters being escaped. LANG-516
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836152 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:46:04 +00:00
Henri Yandell 000bac6b94 Changing the standard escapeXml method to not escape high characters. It's easier to add that back on that remove it. LANG-516 and LANG-517
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836151 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:45:27 +00:00
Henri Yandell 9adbbb0bbf Rolling back r611543 for LANG-393, and removing the special handling of BigDecimal to use compareTo instead of equals because it creates an inequality with HashCodeBuilder [reported in LANG-467 by David Jones]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836149 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:10:19 +00:00
Matthew Jason Benson 5646355247 [LANG-553] Add TypeUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835975 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 20:17:47 +00:00
Henri Yandell 56e830a235 Removing old Range classes per LANG-551. New lang.Range class replaces these
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835780 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:54:04 +00:00
Henri Yandell 452a6c0cd8 Adding elementCompareTo method as requested in LANG-386 (which called the method positionOfXxx)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835777 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:51:08 +00:00
Henri Yandell 4c124cea28 Adding @throws and test for the ClassCastException thrown by the ComparableComparator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835771 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:05:11 +00:00
Matthew Jason Benson 89af393b32 generics fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@834663 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 20:59:16 +00:00
Oliver Heger caf3f0c3c3 [LANG-545] Added ability to create a ConstantFuture object. Thanks to Stephen Colebourne for the patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833709 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 16:37:05 +00:00
Henri Yandell 5bfa8aaf14 Adding todo note to consider final/field-usage - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833363 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:53:38 +00:00
Henri Yandell da7e4f3840 Adding more tests, plus a rename of lessThan to elementBefore; greaterThan to elementAfter and bugfix so the new code works - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833358 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:45:38 +00:00
Henri Yandell b7a34131b8 containsRange test added - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833343 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:11:38 +00:00
Henri Yandell bd900f6be7 Added test for contains method, along with a null fix for contains and improved javadoc - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833337 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 10:47:15 +00:00
Henri Yandell ff1102d68d Committing work in progress version of a new Range class to replace the math.*Range classes as discussed in LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833308 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 07:56:22 +00:00
Henri Yandell effab4665e Removing PROPOSAL.html as it's misleading, yet shouldn't be updated (for example, JDK 1.2 dependency)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833086 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:14:51 +00:00
Henri Yandell acb16f7348 Applying Jörg Gottschling's patch from LANG-358 with Thomas Menzel's naming from LANG-550 and some of his tests. This adds a firstNonNull method to ObjectUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833016 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 07:25:54 +00:00
Stephen Colebourne 928950c9bf LANG-493 - Remove allElementsOfType as generics handles this pretty well now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831709 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 17:10:02 +00:00
Stephen Colebourne dab4ca0812 Add generic return types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831704 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 16:54:34 +00:00
Stephen Colebourne 661832fb35 LANG-546 - Validate.validIndex()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:45:09 +00:00
Stephen Colebourne c1590455d2 LANG-290 - Rename isEnum to isValidEnum
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831687 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:29:04 +00:00
Stephen Colebourne de820ce189 LANG-487 - Make default style thread-safe (better Javadoc)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831686 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:25:10 +00:00
Oliver Heger a3e3a0b08f [LANG-501] Added MultiBackgroundInitializer class with JUnit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831587 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 19:52:58 +00:00
Oliver Heger 8c413aecd8 [LANG-501] Added BackgroundInitializer class with JUnit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831586 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 19:48:52 +00:00
Stephen Colebourne 86008e6c48 LANG-548 - Use Iterable instead of Collection
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830042 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 01:14:57 +00:00
Stephen Colebourne 77e3dcc393 LANG-487 - Make default style thread-safe (better Javadoc)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830040 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:59:15 +00:00
Stephen Colebourne bf626b85ba LANG-290 - Add more enum utility methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830038 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:51:38 +00:00