commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject [lang] ArrayUtils.reverse
Date Wed, 08 Oct 2003 18:56:25 GMT

How about returning the argument instead of void for these APIs such that
they can be used in expressions?

Now ArrayUtils:

public static void reverse(final Object[] array) {


public static Object[] reverse(final Object[] array) {

I ran into this with the Object[] version of the API but this applies to all
other ArrayUtils.reverse APIs.

This change should backwards compatible with a recompile of client code.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message