logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1566243 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Date Sun, 09 Feb 2014 06:49:05 GMT
Author: ggregory
Date: Sun Feb  9 06:49:05 2014
New Revision: 1566243

URL: http://svn.apache.org/r1566243
Log:
The declared exception ObjectStreamException is not actually thrown by the method readResolve().

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java?rev=1566243&r1=1566242&r2=1566243&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Sun Feb  9 06:49:05 2014
@@ -16,15 +16,14 @@
  */
 package org.apache.logging.log4j;
 
-import org.apache.logging.log4j.spi.StandardLevel;
-
-import java.io.ObjectStreamException;
 import java.io.Serializable;
 import java.util.Collection;
 import java.util.Locale;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 
+import org.apache.logging.log4j.spi.StandardLevel;
+
 /**
  * Levels used for identifying the severity of an event. Levels are organized from most specific
to least:
  * <ul>
@@ -288,7 +287,7 @@ public final class Level implements Comp
     }
 
     // for deserialization
-    protected Object readResolve() throws ObjectStreamException {
+    protected Object readResolve() {
         return Level.valueOf(this.name);
     }
 }



Mime
View raw message