summaryrefslogtreecommitdiff
path: root/gnu/java/nio/charset/Provider.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/java/nio/charset/Provider.java')
-rw-r--r--gnu/java/nio/charset/Provider.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/gnu/java/nio/charset/Provider.java b/gnu/java/nio/charset/Provider.java
index d3b71a612..8fc42e5f6 100644
--- a/gnu/java/nio/charset/Provider.java
+++ b/gnu/java/nio/charset/Provider.java
@@ -1,4 +1,4 @@
-/* Provider.java --
+/* Provider.java --
Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -65,7 +65,7 @@ public final class Provider extends CharsetProvider
/**
* Map from charset name to charset canonical name. The strings
* are all lower-case to allow case-insensitive retrieval of
- * Charset instances.
+ * Charset instances.
*/
private final HashMap<String, String> canonicalNames;
@@ -214,9 +214,9 @@ public final class Provider extends CharsetProvider
* Returns a Charset instance by converting the given
* name to lower-case, looking up the canonical charset
* name and finally looking up the Charset with that name.
- *
+ *
* <p>The lookup is therefore case-insensitive.</p>
- *
+ *
* @returns The Charset having <code>charsetName</code>
* as its alias or null if no such Charset exist.
*/
@@ -234,20 +234,20 @@ public final class Provider extends CharsetProvider
/**
* Puts a Charset under its canonical name into the 'charsets' map.
* Then puts a mapping from all its alias names to the canonical name.
- *
+ *
* <p>All names are converted to lower-case</p>.
- *
+ *
* @param cs
*/
private void addCharset (Charset cs)
{
String canonicalName = cs.name().toLowerCase();
charsets.put (canonicalName, cs);
-
+
/* Adds a mapping between the canonical name
* itself making a lookup using that name
* no special case.
- */
+ */
canonicalNames.put(canonicalName, canonicalName);
for (Iterator<String> i = cs.aliases ().iterator (); i.hasNext (); )
@@ -259,13 +259,13 @@ public final class Provider extends CharsetProvider
// The default provider is safe to instantiate.
if (singleton == null)
singleton = AccessController.doPrivileged
- (new PrivilegedAction<Provider>()
- {
- public Provider run()
- {
- return new Provider();
- }
- });
+ (new PrivilegedAction<Provider>()
+ {
+ public Provider run()
+ {
+ return new Provider();
+ }
+ });
return singleton;
}
}