Re: [LANG] Handling of empty string in StringUtils

2014-01-14 Thread Benedikt Ritter
I'd like to change the behavior then, if nobody objects. I'll write some prose for the release notes of 3.3 (which I plan to roll out early February) Benedikt 2014/1/14 sebb > On 14 January 2014 11:53, Duncan Jones wrote: > > On 14 January 2014 11:17, Benedikt Ritter wrote: > >> 2014/1/13 Ga

Re: [csv] CSVRecord implements Map

2014-01-14 Thread Benedikt Ritter
A wrapper of some kind like Adrian suggested sounds like the way to go here. Maybe we could have something like: Map map = CSVRecordUtils.toMap(record); Benedikt 2014/1/15 Gary Gregory > I have a complex immutable class with a constructor that takes many fields. > > I have a factory that build

Re: [scxml] Adding timer classes

2014-01-14 Thread Woonsan Ko
Hi Evan, Welcome! :-) The first one sounds very interesting, and I'd love to see how you achieved it. The second one also seems very useful for monitoring purpose. But you might want to use different names. As far as I can see, the simple implementation classes such as SimpleScheduler, SimpleDi

[scxml] Adding timer classes

2014-01-14 Thread Reynolds, Evan
Hey! I've been using SCXML and it's really nice. I had some problems with timers though - I just couldn't quite do what I needed to do, so I wrote some extra scheduler classes. They turned out to be REALLY helpful so I thought I might contribute them back if you thought anyone else could use t

Re: [csv] CSVRecord implements Map

2014-01-14 Thread Gary Gregory
I have a complex immutable class with a constructor that takes many fields. I have a factory that builds instances of this class. At runtime, some of the data to build the objects come from CSVRecord objects. At other times, like for tests, I want build sometimes I build the objects from CSVReco

Re: [csv] CSVRecord implements Map

2014-01-14 Thread Emmanuel Bourg
I'm not fond of the idea at the first glance. What is your use case? Emmanuel Le 14/01/2014 23:27, Gary Gregory a écrit : > Hi All: > > Any thoughts on making CSVRecord implement Map ? > > It would certainly help remove duplicate code in a use case of mine. > > Gary > -

Re: [csv] CSVRecord implements Map

2014-01-14 Thread Adrian Crum
That would only work if the CSV file had column names. Maybe make a class that implements Map and contains a CSVRecord - so it's optional. Adrian Crum Sandglass Software www.sandglass-software.com On 1/14/2014 5:27 PM, Gary Gregory wrote: Hi All: Any thoughts on making CSVRecord implement Map

[csv] CSVRecord implements Map

2014-01-14 Thread Gary Gregory
Hi All: Any thoughts on making CSVRecord implement Map ? It would certainly help remove duplicate code in a use case of mine. Gary -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edi

Re: [math] Suggestion to refactor BinomialConfidenceInterval

2014-01-14 Thread Phil Steitz
On 1/13/14, 1:20 PM, Thomas Neidhart wrote: > On 01/12/2014 06:46 PM, Phil Steitz wrote: >> On 1/12/14, 6:03 AM, Thomas Neidhart wrote: >>> Hi, >>> >>> we had some preliminary discussion about changing the >>> BinominalConfidenceInterval class in MATH-1086. >>> >>> Right now the class provides some

commons-lang pull request: Update ImmutablePair to be not final

2014-01-14 Thread patrick-a-cavanaugh
GitHub user patrick-a-cavanaugh opened a pull request: https://github.com/apache/commons-lang/pull/13 Update ImmutablePair to be not final The sibling class MutablePair is not final, and the JavaDoc for ImmutablePair also states it is not final: "The class is also not {@code final}

Re: [LANG] Handling of empty string in StringUtils

2014-01-14 Thread sebb
On 14 January 2014 11:53, Duncan Jones wrote: > On 14 January 2014 11:17, Benedikt Ritter wrote: >> 2014/1/13 Gary Gregory >> >>> On Mon, Jan 13, 2014 at 12:45 PM, sebb wrote: >>> >>> > What does the Javadoc say? >>> > >>> >>> The Javadoc describes the current behavior, which is whacky IMO. Thi

Re: [LANG] Handling of empty string in StringUtils

2014-01-14 Thread Gary Gregory
I'm all for fixing bugs! ;) Gary Original message From: Benedikt Ritter Date:01/14/2014 06:17 (GMT-05:00) To: Commons Developers List Subject: Re: [LANG] Handling of empty string in StringUtils 2014/1/13 Gary Gregory > On Mon, Jan 13, 2014 at 12:45 PM, sebb wrote: >

Re: [LANG] Handling of empty string in StringUtils

2014-01-14 Thread Duncan Jones
On 14 January 2014 11:17, Benedikt Ritter wrote: > 2014/1/13 Gary Gregory > >> On Mon, Jan 13, 2014 at 12:45 PM, sebb wrote: >> >> > What does the Javadoc say? >> > >> >> The Javadoc describes the current behavior, which is whacky IMO. This could >> be a case where the docs documents the code, e

Re: [LANG] Handling of empty string in StringUtils

2014-01-14 Thread Benedikt Ritter
2014/1/13 Gary Gregory > On Mon, Jan 13, 2014 at 12:45 PM, sebb wrote: > > > What does the Javadoc say? > > > > The Javadoc describes the current behavior, which is whacky IMO. This could > be a case where the docs documents the code, even though it does not make > sense. > > It sounds dangerous