Commit Graph

1549 Commits

Author SHA1 Message Date
Gary D. Gregory fdc82b0e01 Access to enclosing constructor Enum.Entry() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance (Eclipse compiler).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430161 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 22:10:03 +00:00
Gary D. Gregory ebed83b646 Unnecessary cast from Object to Enum.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430157 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 22:09:11 +00:00
Gary D. Gregory 4d472d6ac6 Access to enclosing constructor Enum.Entry() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance (Eclipse compiler).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430156 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 22:08:34 +00:00
Gary D. Gregory e9f981378c Unnecessary cast from Object to Enum.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430154 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 22:07:04 +00:00
Stephen Colebourne 53d756b003 VariableFormatter became StrSubstitutor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429884 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 23:35:31 +00:00
Stephen Colebourne db95187390 Create StrLookup by extraction from StrSubstitutor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429881 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 23:28:45 +00:00
Stephen Colebourne b2b04b2284 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429877 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 23:25:52 +00:00
Stephen Colebourne df326b1747 Rename variable for JDK1.5 compliance
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429876 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 23:24:49 +00:00
Stephen Colebourne 927e736103 Give more power to StrSubstitutor subclasses
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429507 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 23:06:41 +00:00
Gary D. Gregory 9c66638127 Javadoc comments for serialVersionUID.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429439 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 19:14:31 +00:00
Gary D. Gregory cc407e88e2 The Javadoc comment "Lang version 1.0.1 serial compatibility" is incorrect since these classes came into existance in version 2.1.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429421 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 18:14:27 +00:00
Gary D. Gregory bacc52875b Adds missing serialVersionUID to Serializable classes.
A note from http://wiki.eclipse.org/index.php/FAQ_Why_does_the_Eclipse_compiler_create_a_different_serialVersionUID_from_javac%3F:

If you don’t explicitly define a serialVersionUID, the language requires that the VM generate one, using some function of all field and method names in the class. The problem is, the compiler generates some synthetic methods that you never see in your source file, and there is no clear specification for how these synthetic method names are generated. Any two compilers are likely to generate different method names, and so the serialVersionUID will be different. Bottom line: Always define the serialVersionUID explicitly in your source files.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429413 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 17:57:25 +00:00
Henri Yandell 18918c66c1 Dropped the 2.1 bugfixes and new features. Moved bugzilla ids to jira ids
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428651 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 07:05:24 +00:00
Henri Yandell 49f1578e9e Removed clover bits that were left over from the switch to cobertura
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428648 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 06:49:04 +00:00
Henri Yandell c6744b203b Tokenizer has been created, and DateRange/Duration are unlikely to get created.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428647 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 06:46:04 +00:00
Henri Yandell d82abb3a8b Removing the checkstyle.properties class. There are no checkstyle warnings, and removing the .properties file doesn't make any warnings appear, so it's safe (ish) to assume the .xml file is covering things sufficiently.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428646 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 06:44:59 +00:00
Henri Yandell 2d4e279d19 Line was longer than 120 chars - shortening
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428644 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 06:35:51 +00:00
Henri Yandell bd9244d1e3 Removing the money/currency todo - I can't see us having that in Lang
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428643 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 06:33:47 +00:00
Henri Yandell d3b4e154b1 Switching from 2.1 to 2.2
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@428636 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 05:59:33 +00:00
Henri Yandell 807e6d6038 Missing ) in javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424901 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 04:49:58 +00:00
Stephen Colebourne 4bfa1f6cb9 Initial commit of StrSubstitutor (VariableFormatter) for review
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424871 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 01:00:37 +00:00
Stephen Colebourne 8b2b1ba0f2 Copyright dates
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424613 13f79535-47bb-0310-9956-ffa450edef68
2006-07-22 18:12:41 +00:00
Stephen Colebourne cbf6c47104 Link builder to tokenizer properly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424612 13f79535-47bb-0310-9956-ffa450edef68
2006-07-22 18:10:16 +00:00
Stephen Colebourne d22e559db1 Add toString
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424611 13f79535-47bb-0310-9956-ffa450edef68
2006-07-22 18:09:27 +00:00
Stephen Colebourne 7917cc095b Allow tokenizer state to be adjusted before and after tokenizing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424608 13f79535-47bb-0310-9956-ffa450edef68
2006-07-22 17:25:38 +00:00
Stephen Colebourne b7b7d7c935 Add method to get all tokens as a list as well as an array
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424596 13f79535-47bb-0310-9956-ffa450edef68
2006-07-22 16:08:25 +00:00
Henri Yandell 9cbf70d822 Adding Niall's fix for LANG-59 - an edge case in date truncation - and his enhancement
for the unit test that was there. 

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@424192 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 05:47:07 +00:00
Henri Yandell c62bd30765 Removing old release notes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@422328 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 01:14:52 +00:00
Niall Pemberton 71910e6e4d LANG-272 Remove 2.1 build target and exclusion of "text" package from source distro.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@420730 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 05:37:53 +00:00
Niall Pemberton b9b6b027db Fix for LANG-272 - Minor JavaDoc changes to clean up checkstyle issues
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@420491 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 11:23:57 +00:00
Niall Pemberton 33c8a32830 Fix for LANG-272 - minor build changes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@420490 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 11:22:38 +00:00
Stephen Colebourne 6e041ae62f Add serialization version id and javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419740 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 23:34:47 +00:00
Stephen Colebourne 7d0e5c002e Layout action methods to match general lang formatting
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419739 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 23:31:00 +00:00
Stephen Colebourne 3d6bdcae69 Layout getters and setters in pairs to match general lang formatting
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419738 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 23:27:57 +00:00
Stephen Colebourne 6aa020e6bc Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419737 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 23:24:06 +00:00
Stephen Colebourne c94fd719e7 Reduce scope from public to protected in parser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419726 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 22:18:31 +00:00
Henri Yandell 21870c8afa Applying javadoc fixes from Michael Heuer for the stripXxx methods as mentioned in LANG-270
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419651 13f79535-47bb-0310-9956-ffa450edef68
2006-07-06 18:43:02 +00:00
Stephen Colebourne 3a48c43f4d Remove debugging code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419387 13f79535-47bb-0310-9956-ffa450edef68
2006-07-05 23:49:33 +00:00
Stephen Colebourne 00d021f30e Fix char/Character methods in ArrayUtils
LANG-267

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419386 13f79535-47bb-0310-9956-ffa450edef68
2006-07-05 23:42:43 +00:00
Henri Yandell d9c144d8c3 Fixed a bit of javadoc with bad xhtml
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419177 13f79535-47bb-0310-9956-ffa450edef68
2006-07-05 06:36:02 +00:00
Henri Yandell 3f84c0412c Added hashCode method for inner Token class as recommended by PMD
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419176 13f79535-47bb-0310-9956-ffa450edef68
2006-07-05 06:33:33 +00:00
Henri Yandell 4a453bd132 Minor style fixes suggested by checkstyle
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419174 13f79535-47bb-0310-9956-ffa450edef68
2006-07-05 06:14:13 +00:00
Henri Yandell f5bc3757bb Adding the missing char/Character methods in ArrayUtils, as pointed out (and patched) by Andres Almiray in LANG-267
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419122 13f79535-47bb-0310-9956-ffa450edef68
2006-07-05 00:04:28 +00:00
Henri Yandell ed0f4c03e1 Removing trace statement
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418918 13f79535-47bb-0310-9956-ffa450edef68
2006-07-04 05:38:56 +00:00
Henri Yandell 81340ea32f Adding unit test for LANG-59. Sometimes passes, sometimes fails
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418834 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 19:21:14 +00:00
Henri Yandell 9c2f070f61 Fixed escaping of backslash-u in javadoc notes for issue reported in LANG-66
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418833 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 19:19:51 +00:00
Henri Yandell 7f8f3da321 Added note in javadoc of issue reported in LANG-66
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418831 13f79535-47bb-0310-9956-ffa450edef68
2006-07-03 19:11:02 +00:00
Stephen Colebourne 594ec5482d Improve JIRA links
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418581 13f79535-47bb-0310-9956-ffa450edef68
2006-07-02 12:05:52 +00:00
Stephen Colebourne 1cdf7916ec Fix compilation error
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418568 13f79535-47bb-0310-9956-ffa450edef68
2006-07-02 10:46:52 +00:00
Stephen Colebourne 5c20e64552 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@418567 13f79535-47bb-0310-9956-ffa450edef68
2006-07-02 10:31:34 +00:00