diff options
Diffstat (limited to 'libjava/classpath/java/util/logging')
6 files changed, 9 insertions, 11 deletions
diff --git a/libjava/classpath/java/util/logging/FileHandler.java b/libjava/classpath/java/util/logging/FileHandler.java index 3d958b7d760..b03df97ec60 100644 --- a/libjava/classpath/java/util/logging/FileHandler.java +++ b/libjava/classpath/java/util/logging/FileHandler.java @@ -43,10 +43,6 @@ import java.io.FileOutputStream; import java.io.FilterOutputStream; import java.io.IOException; import java.io.OutputStream; - -import java.nio.channels.FileChannel; -import java.nio.channels.FileLock; - import java.util.LinkedList; import java.util.ListIterator; diff --git a/libjava/classpath/java/util/logging/Handler.java b/libjava/classpath/java/util/logging/Handler.java index c3227d6f531..616b50234c4 100644 --- a/libjava/classpath/java/util/logging/Handler.java +++ b/libjava/classpath/java/util/logging/Handler.java @@ -191,8 +191,8 @@ h.setFormatter(h.getFormatter());</pre> * Returns the character encoding which this handler uses for publishing * log records. * - * @param encoding the name of a character encoding, or <code>null</code> - * for the default platform encoding. + * @return the name of a character encoding, or <code>null</code> + * for the default platform encoding. */ public String getEncoding() { @@ -252,7 +252,7 @@ h.setFormatter(h.getFormatter());</pre> * Sets the <code>Filter</code> for controlling which * log records will be published by this <code>Handler</code>. * - * @return the <code>Filter</code> to use, or + * @param filter the <code>Filter</code> to use, or * <code>null</code> to filter log records purely based * on their severity level. */ diff --git a/libjava/classpath/java/util/logging/LogManager.java b/libjava/classpath/java/util/logging/LogManager.java index 7e3fd97d01f..b62292f7978 100644 --- a/libjava/classpath/java/util/logging/LogManager.java +++ b/libjava/classpath/java/util/logging/LogManager.java @@ -664,7 +664,7 @@ public class LogManager { try { - return (new Boolean(getLogManager().getProperty(name))).booleanValue(); + return (Boolean.valueOf(getLogManager().getProperty(name))).booleanValue(); } catch (Exception ex) { @@ -682,7 +682,7 @@ public class LogManager * * @param defaultValue the value that will be returned if the * property is not defined, or if - * {@link Level.parse(java.lang.String)} does not like + * {@link Level#parse(java.lang.String)} does not like * the property value. */ static Level getLevelProperty(String propertyName, Level defaultValue) diff --git a/libjava/classpath/java/util/logging/LoggingPermission.java b/libjava/classpath/java/util/logging/LoggingPermission.java index c7a2255ecea..1139a793a70 100644 --- a/libjava/classpath/java/util/logging/LoggingPermission.java +++ b/libjava/classpath/java/util/logging/LoggingPermission.java @@ -41,6 +41,8 @@ package java.util.logging; public final class LoggingPermission extends java.security.BasicPermission { + private static final long serialVersionUID = 63564341580231582L; + /** * Creates a new LoggingPermission. * diff --git a/libjava/classpath/java/util/logging/SimpleFormatter.java b/libjava/classpath/java/util/logging/SimpleFormatter.java index f7a442792f9..ff53db8c055 100644 --- a/libjava/classpath/java/util/logging/SimpleFormatter.java +++ b/libjava/classpath/java/util/logging/SimpleFormatter.java @@ -85,7 +85,7 @@ public class SimpleFormatter /** * Formats a log record into a String. * - * @param the log record to be formatted. + * @param record the log record to be formatted. * * @return a short human-readable message, typically one or two * lines. Lines are separated using the default platform line diff --git a/libjava/classpath/java/util/logging/XMLFormatter.java b/libjava/classpath/java/util/logging/XMLFormatter.java index 4dd63281727..8bd83ba3973 100644 --- a/libjava/classpath/java/util/logging/XMLFormatter.java +++ b/libjava/classpath/java/util/logging/XMLFormatter.java @@ -307,7 +307,7 @@ public class XMLFormatter * * @return a string for the header. * - * @param handler the handler which will prepend the returned + * @param h the handler which will prepend the returned * string in front of the first log record. This method * will inspect certain properties of the handler, for * example its encoding, in order to construct the header. |