Commit Graph

2291 Commits

Author SHA1 Message Date
Sebastian Bazley 48abc2fb74 Remove references to obsolete files that have been deleted
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@807420 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24 22:41:50 +00:00
Henri Yandell 62aef1a558 Making inner class private fields final per LANG-474
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@803006 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 06:39:39 +00:00
Joerg Schaible d836af99d2 Fix svn:ignores.
Update POM.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802570 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:08:26 +00:00
Joerg Schaible 7bd9b8ada1 Fix failing unit test of Contexted(Runtime)Exception, adjust formatted message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802569 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:06:58 +00:00
Joerg Schaible ad922624da Add ExceptionContext package (LANG-497, contributed by Derek Ashmore).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802566 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 17:46:13 +00:00
Henri Yandell 2e165be127 Improving performance of getAllInterfaces per LANG-500's patch from Pino Silvaggio
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802477 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 02:44:56 +00:00
Henri Yandell f957d81625 Fixing classes to not need UnhandledException and IllegalArgumentException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796078 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:55:30 +00:00
Henri Yandell 5e58c2cfd8 Moving IncompleteArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796076 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:51:04 +00:00
Henri Yandell d8ae0bdbef Moving NullArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796075 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:56 +00:00
Henri Yandell 687dc10a61 Moving NotImplementedException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796074 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:47 +00:00
Henri Yandell f04f89bfda Moving IllegalClassException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796073 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:42 +00:00
Henri Yandell 26b587c7ba Moving UnhandledException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796071 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:16 +00:00
Henri Yandell a2773b230e Fixing classes to not need NullArgumentException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796070 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:46:42 +00:00
Henri Yandell 72913ae9d7 Moving IncompleteArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796068 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:43:08 +00:00
Henri Yandell 4af0d359b4 Moving IllegalClassException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796067 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:41:01 +00:00
Henri Yandell 13ad49b575 Moving NotImplementedException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796066 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:40:38 +00:00
Henri Yandell eb888eb2ef Moving UnhandledException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796065 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:40:09 +00:00
Henri Yandell 9a0e5f8c0f Moving NullArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796064 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:39:08 +00:00
Henri Yandell cc6281fc3e Improving code coverage with more tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796062 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:28:45 +00:00
Henri Yandell 75b967beaa Improving code coverage by testing exceptions and empty constructor
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795895 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:14:34 +00:00
Henri Yandell 84beb062c1 Improving code coverage for a couple of null cases
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795894 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:14:16 +00:00
Henri Yandell 4a30af0280 Removing missing import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795893 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:13:10 +00:00
Henri Yandell d0e667d278 Updating TODOs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795892 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:12:53 +00:00
Henri Yandell be336df54a Improving Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795891 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:12:35 +00:00
Henri Yandell 944f642f0b Applying my patch to LANG-355, making StrBuilder implement Appendable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795604 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:41:50 +00:00
Henri Yandell 4351e7a1a1 Applying Arnaud Brunet's patch from LANG-355 to make StrBuilder implement CharSequence
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795600 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:30:40 +00:00
Henri Yandell 49e68a3f96 Applying Robert Scholte's patch to Travis Reeder's request for a DateUtils.ceiling(...) method to complete truncate(...) and round(...) in LANG-434
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795597 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:21:04 +00:00
Henri Yandell 784e93e61d Refactoring the array of Java ctrl characters to be in EntityArray rather than embedded in their own escape/unescape
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795596 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:15:14 +00:00
Henri Yandell dff12292a0 Updating javadoc to note new '/' difference between Java and JavaScript (LANG-421)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795594 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:04:30 +00:00
Henri Yandell 0bfa6b451e Adding unit test to show the problem reported in LANG-339 - namely that Chinese, Japanese etc characters are escaped. Furthermore the test notes that they are not subsequently unescaped; which means a lack of symmetry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795593 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 18:41:14 +00:00
Henri Yandell 0331f1e5b6 1.1->2.4 now in the changes report (LANG-484)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795482 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 06:44:37 +00:00
Henri Yandell 489cc2fd6f Applying Ivan Bilenjkij's patch from LANG-513, improving the generics of the getEnumMap method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@792051 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 06:45:02 +00:00
Henri Yandell 8f9a5889e0 Updating comment to explain why a public constructor exists
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@792050 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 06:35:53 +00:00
Henri Yandell 2a7a320d63 synchronized removed from availableLocaleSet per LANG-488
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@792049 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 06:30:04 +00:00
Henri Yandell a4325e5559 Moving availableLocaleSet and availableLocaleList to both lazily initialize in a separate synchronized method. This brings the two pieces of code into line with each other, allows availableLocaleSet() to be unsynchronized as desired in LANG-488 and removes the static initialization of availableLocaleList() as requested in LANG-511
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@791726 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 07:10:02 +00:00
Henri Yandell 76555b1480 Deprecating StringEscapeUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@791721 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 06:56:22 +00:00
Henri Yandell ee930ccac2 Splitting out the \b \n \t \f \r Java ctrl chars as their own translator to help with the request in LANG-498
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789589 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 07:04:06 +00:00
Henri Yandell 9d917f24ce Making the EntityArrays class public by cloning the arrays when they are accessed. API might need a sanity check as this is the old Entities stuff. Also changing the arrays to be private and the rest of the code to use the cloning methods. This does add performance overhead, but I think it'll be negligible and better to practice safe coding. Part of LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789584 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 06:47:18 +00:00
Henri Yandell 5ead3906e2 Moving a few of the StringUtils methods over to accepting CharSequence instead of String as part of LANG-510
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789575 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 06:34:01 +00:00
Henri Yandell b395162258 Applying Vincent Ricard's patch in LANG-471 (reported by Ivica Mikic) adding isAllUpperCase and isAllLowerCase to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789573 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 06:24:20 +00:00
Henri Yandell 697cb0fc1a Performance improvement. Switching from looping through a doubled array to using a Map. This probably costs more for simple cases like Java/EcmaScript/Xml, but makes up for it in the Html case. This gets performance of the testUnescapeHexCharsHtml method back down to near the same region as the original code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789567 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 05:47:39 +00:00
Henri Yandell df0d0cc96a Adding a simple unit test for text translate. More needed, though StringEscapeUtils does do a good job of hitting a high level of coverage for these classes already. It's easier to debug when you have tighter testing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789566 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 05:46:08 +00:00
Henri Yandell 78d29f75f9 Added todo note
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789561 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 05:09:01 +00:00
Henri Yandell 690b8e9ab6 Adding changes report and filling out v1.0.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788564 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 03:42:27 +00:00
Henri Yandell f3ac86a292 Applying patch from LANG-461 from Vincent Ricard to add toByte and toShort methods to NumberUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788276 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 07:09:30 +00:00
Henri Yandell 275f3fa088 Refactoring to avoid code duplication - LANG-458
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788275 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 06:58:11 +00:00
Henri Yandell 47cd2e5536 Generifying the general Mutable, and the underlying MutableObject. This then allows for typed checking of a MutableBigDecimal for example as per LANG-276
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788263 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 05:25:23 +00:00
Henri Yandell 171fa698d3 Removing unnecessary Escape*AsciiAsUnicode classes. UnicodeEscaper now handles the range concept directly and the ctrl character lookup table is now a direct LookupTranslator defined in EscapeUtils. cf LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788259 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 05:00:39 +00:00
Henri Yandell bda5d16000 Fixing bug in below/above implementations found while implementing NumericEntityEscaper
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788257 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 04:57:19 +00:00
Henri Yandell b4bdbdfe9c Replacing the NonAsciiAsNumericEntity class with a more generic NumericEntityEscaper. cf LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788256 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 04:56:18 +00:00