diff options
author | Elliott Hughes <enh@google.com> | 2010-04-18 10:17:46 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-04-18 10:17:46 -0700 |
commit | e4d256a4c4ae253c41a4eca9737b2bf0297a9749 (patch) | |
tree | 746f1f4263b3a79b70d3ac8d4ac305997f4e83bb | |
parent | d9c282ff3e240b0ba15f9d0bb4bfc3980c31e41a (diff) | |
parent | b3303732ffa7a47537fbf50ac56d966ef438f34c (diff) | |
download | libcore-e4d256a4c4ae253c41a4eca9737b2bf0297a9749.zip libcore-e4d256a4c4ae253c41a4eca9737b2bf0297a9749.tar.gz libcore-e4d256a4c4ae253c41a4eca9737b2bf0297a9749.tar.bz2 |
Merge "Remove the nio Messages.java I missed, and the three now-unused imports." into dalvik-dev
4 files changed, 0 insertions, 146 deletions
diff --git a/nio/src/main/java/java/nio/DirectByteBuffer.java b/nio/src/main/java/java/nio/DirectByteBuffer.java index 3420f1a..f8b16e0 100644 --- a/nio/src/main/java/java/nio/DirectByteBuffer.java +++ b/nio/src/main/java/java/nio/DirectByteBuffer.java @@ -20,7 +20,6 @@ package java.nio; import org.apache.harmony.luni.platform.PlatformAddress; import org.apache.harmony.luni.platform.PlatformAddressFactory; import org.apache.harmony.nio.internal.DirectBuffer; -import org.apache.harmony.nio.internal.nls.Messages; /** * DirectByteBuffer, ReadWriteDirectByteBuffer and ReadOnlyDirectByteBuffer diff --git a/nio/src/main/java/org/apache/harmony/nio/FileChannelFactory.java b/nio/src/main/java/org/apache/harmony/nio/FileChannelFactory.java index 59c2b3d..4a3b853 100644 --- a/nio/src/main/java/org/apache/harmony/nio/FileChannelFactory.java +++ b/nio/src/main/java/org/apache/harmony/nio/FileChannelFactory.java @@ -27,7 +27,6 @@ import java.nio.channels.FileChannel; import org.apache.harmony.nio.internal.ReadOnlyFileChannel; import org.apache.harmony.nio.internal.ReadWriteFileChannel; import org.apache.harmony.nio.internal.WriteOnlyFileChannel; -import org.apache.harmony.nio.internal.nls.Messages; import org.apache.harmony.luni.platform.IFileSystem; /** diff --git a/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java b/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java index 2c575a3..c6a170d 100644 --- a/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java +++ b/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java @@ -53,7 +53,6 @@ import org.apache.harmony.luni.platform.Platform; //import org.apache.harmony.luni.util.ErrorCodeException; android-removed import org.apache.harmony.luni.util.Msg; import org.apache.harmony.nio.AddressUtil; -import org.apache.harmony.nio.internal.nls.Messages; /* * The default implementation class of java.nio.channels.SocketChannel. diff --git a/nio/src/main/java/org/apache/harmony/nio/internal/nls/Messages.java b/nio/src/main/java/org/apache/harmony/nio/internal/nls/Messages.java deleted file mode 100644 index d291f12..0000000 --- a/nio/src/main/java/org/apache/harmony/nio/internal/nls/Messages.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * THE FILE HAS BEEN AUTOGENERATED BY MSGTOOL TOOL. - * All changes made to this file manually will be overwritten - * if this tool runs again. Better make changes in the template file. - */ - -package org.apache.harmony.nio.internal.nls; - - -import java.security.AccessController; -import java.security.PrivilegedAction; -import java.util.Locale; -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -// BEGIN android-changed -import org.apache.harmony.luni.util.MsgHelp; -// END android-changed - -/** - * This class retrieves strings from a resource bundle and returns them, - * formatting them with MessageFormat when required. - * <p> - * It is used by the system classes to provide national language support, by - * looking up messages in the <code> - * org.apache.harmony.nio.internal.nls.messages - * </code> - * resource bundle. Note that if this file is not available, or an invalid key - * is looked up, or resource bundle support is not available, the key itself - * will be returned as the associated message. This means that the <em>KEY</em> - * should a reasonable human-readable (english) string. - * - */ -public class Messages { - - // BEGIN android-changed - private static final String sResource = - "org.apache.harmony.nio.internal.nls.messages"; //$NON-NLS-1$ - // END android-changed - - /** - * Retrieves a message which has no arguments. - * - * @param msg - * String the key to look up. - * @return String the message for that key in the system message bundle. - */ - static public String getString(String msg) { - // BEGIN android-changed - return MsgHelp.getString(sResource, msg); - // END android-changed - } - - /** - * Retrieves a message which takes 1 argument. - * - * @param msg - * String the key to look up. - * @param arg - * Object the object to insert in the formatted output. - * @return String the message for that key in the system message bundle. - */ - static public String getString(String msg, Object arg) { - return getString(msg, new Object[] { arg }); - } - - /** - * Retrieves a message which takes 1 integer argument. - * - * @param msg - * String the key to look up. - * @param arg - * int the integer to insert in the formatted output. - * @return String the message for that key in the system message bundle. - */ - static public String getString(String msg, int arg) { - return getString(msg, new Object[] { Integer.toString(arg) }); - } - - /** - * Retrieves a message which takes 1 character argument. - * - * @param msg - * String the key to look up. - * @param arg - * char the character to insert in the formatted output. - * @return String the message for that key in the system message bundle. - */ - static public String getString(String msg, char arg) { - return getString(msg, new Object[] { String.valueOf(arg) }); - } - - /** - * Retrieves a message which takes 2 arguments. - * - * @param msg - * String the key to look up. - * @param arg1 - * Object an object to insert in the formatted output. - * @param arg2 - * Object another object to insert in the formatted output. - * @return String the message for that key in the system message bundle. - */ - static public String getString(String msg, Object arg1, Object arg2) { - return getString(msg, new Object[] { arg1, arg2 }); - } - - /** - * Retrieves a message which takes several arguments. - * - * @param msg - * String the key to look up. - * @param args - * Object[] the objects to insert in the formatted output. - * @return String the message for that key in the system message bundle. - */ - static public String getString(String msg, Object[] args) { - // BEGIN android-changed - return MsgHelp.getString(sResource, msg, args); - // END android-changed - } - - // BEGIN android-note - // Duplicate code was dropped in favor of using MsgHelp. - // END android-note -} |