mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Locale.java (Locale): Don't explicitly check for null.
* java/util/Locale.java (Locale): Don't explicitly check for null. * java/util/Hashtable.java (containsKey): Don't explicitly check for null. (get): Likewise. * java/util/BitSet.java (and, or, xor): Don't explicitly check for null. * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check for null. * java/text/StringCharacterIterator.java (StringCharacterIterator): Don't check for null. * java/text/ChoiceFormat.java (setChoices): Don't explicitly check for null pointer. * java/net/MulticastSocket.java (joinGroup): Don't explicitly check for null pointer. (leaveGroup): Likewise. * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous comment. (setData): Likewise. * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check for `p==null'. From-SVN: r33671
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -65,10 +65,6 @@ public final class Locale implements java.io.Serializable, Cloneable
|
||||
public Locale (String languageCode, String countryCode,
|
||||
String variantCode)
|
||||
{
|
||||
// We must explicitly check the arguments.
|
||||
if (languageCode == null || countryCode == null
|
||||
|| variantCode == null)
|
||||
throw new NullPointerException ();
|
||||
language = languageCode.toLowerCase();
|
||||
country = countryCode.toUpperCase();
|
||||
variant = variantCode.toUpperCase();
|
||||
|
||||
Reference in New Issue
Block a user