Author: nextgens
Date: 2007-04-13 14:56:39 +0000 (Fri, 13 Apr 2007)
New Revision: 12628
Modified:
trunk/freenet/src/freenet/l10n/L10n.java
Log:
We don't need that exception: the for loop is gonna throw a npe anyway if
patterns is null
Modified: trunk/freenet/src/freenet/l10n/L10n.java
===================================================================
--- trunk/freenet/src/freenet/l10n/L10n.java 2007-04-13 14:19:49 UTC (rev
12627)
+++ trunk/freenet/src/freenet/l10n/L10n.java 2007-04-13 14:56:39 UTC (rev
12628)
@@ -126,7 +126,6 @@
* @return the translated string or the default value from the default
language or the key if nothing is found
*/
public static String getString(String key, String[] patterns, String[]
values) {
- if((patterns == null) || (values == null)) throw new
IllegalArgumentException();
assert(patterns.length == values.length);
String result = getString(key);