[Japi-cvs] SF.net SVN: japi:[1348] libs/util/trunk/src/prj/net/sf/japi/util/Arrays2. java
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2009-06-14 09:30:00
|
Revision: 1348 http://japi.svn.sourceforge.net/japi/?rev=1348&view=rev Author: christianhujer Date: 2009-06-14 09:29:54 +0000 (Sun, 14 Jun 2009) Log Message: ----------- Make passing of null explicit. Modified Paths: -------------- libs/util/trunk/src/prj/net/sf/japi/util/Arrays2.java Modified: libs/util/trunk/src/prj/net/sf/japi/util/Arrays2.java =================================================================== --- libs/util/trunk/src/prj/net/sf/japi/util/Arrays2.java 2009-06-14 09:29:08 UTC (rev 1347) +++ libs/util/trunk/src/prj/net/sf/japi/util/Arrays2.java 2009-06-14 09:29:54 UTC (rev 1348) @@ -1208,7 +1208,7 @@ */ public static int freqEquals(@NotNull final Object[] array, final int fromIndex, final int toIndex, @Nullable final Object val) { if (val == null) { - return freqIdentity(array, fromIndex, toIndex, val); + return freqIdentity(array, fromIndex, toIndex, null); } int count = 0; for (int i = fromIndex; i < toIndex; i++) { @@ -1237,7 +1237,7 @@ */ public static <T extends Comparable<T>> int freqComparable(@NotNull final T[] array, final int fromIndex, final int toIndex, @Nullable final T val) { if (val == null) { - return freqIdentity(array, fromIndex, toIndex, val); + return freqIdentity(array, fromIndex, toIndex, null); } int count = 0; for (int i = fromIndex; i < toIndex; i++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |