Re: [LANG] Method to return random byte array?

2013-06-14 Thread Duncan Jones
On 13 June 2013 21:26, Phil Steitz wrote: On 6/13/13 1:03 AM, Duncan Jones wrote: Hi, A piece of code I write far too often is: == public static byte[] getRandomBytes(int length) { // validate length is non-negative byte[] result = new byte[length]; RANDOM.nextBytes(result);

Re: svn commit: r1492833 - in /commons/proper/chain/trunk/configuration/xml/src/test: java/org/apache/commons/chain2/config/xml/ resources/org/apache/commons/chain2/config/xml/

2013-06-14 Thread Simone Tripodi
go for it! http://people.apache.org/~simonetripodi/ http://twitter.com/simonetripodi On Thu, Jun 13, 2013 at 9:54 PM, Benedikt Ritter benerit...@gmail.com wrote: I'm still not really satisfied, since the only thing thats different between XmlConfigParserTestCase and XmlConfigParser2TestCase

[continuum] BUILD FAILURE: Apache Commons - Apache Commons Chain :: Parent - Project build using Java 1.6 (-Prelease does not work for multimodule poms)

2013-06-14 Thread Continuum@vmbuild
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=27133projectId=69 Build statistics: State: Failed Previous State: Failed Started at: Fri 14 Jun 2013 17:20:01 + Finished at: Fri 14 Jun 2013 17:20:47 + Total time: 45s Build Trigger: Schedule

[continuum] BUILD FAILURE: Apache Commons - Apache Commons Chain :: Parent - Project build using Java 1.6 (-Prelease does not work for multimodule poms)

2013-06-14 Thread Continuum@vmbuild
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=27134projectId=69 Build statistics: State: Failed Previous State: Failed Started at: Fri 14 Jun 2013 19:20:02 + Finished at: Fri 14 Jun 2013 19:20:44 + Total time: 42s Build Trigger: Schedule

[CHAIN] CopyCommand implements two commands at once

2013-06-14 Thread Benedikt Ritter
Hi, the o.a.c.chain2.generic.CopyCommand IMHO really implements two commands: * a CopyCommand that copies a value from one key to another * an OverrideCommand, that overrides a value with a provided value. What do you think about splitting this up into two separate classes? Regards, Benedikt

[continuum] BUILD FAILURE: Apache Commons - Apache Commons Chain :: Parent - Project build using Java 1.6 (-Prelease does not work for multimodule poms)

2013-06-14 Thread Continuum@vmbuild
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=27136projectId=69 Build statistics: State: Failed Previous State: Failed Started at: Fri 14 Jun 2013 21:20:01 + Finished at: Fri 14 Jun 2013 21:20:41 + Total time: 40s Build Trigger: Schedule