NOTE: 1.2 BRANCH COMMIT - Removed references for the 'enum' keyword in prevision of JDK 1.5
- Replaced deprecated method calls with their replacement. This leads to a compile with far fewer deprecation warnings while the logic remains the same. PR: Obtained from: Submitted by: Reviewed by: Project: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/commit/50a106bb Tree: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/tree/50a106bb Diff: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/diff/50a106bb Branch: refs/heads/v1_2-branch Commit: 50a106bb698cba07b2926a114ddd7b495bc10f30 Parents: 4fd44ac Author: Ceki Gulcu <[email protected]> Authored: Fri Oct 29 15:43:00 2004 +0000 Committer: Ceki Gulcu <[email protected]> Committed: Fri Oct 29 15:43:00 2004 +0000 ---------------------------------------------------------------------- src/java/org/apache/log4j/chainsaw/XMLFileHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-chainsaw/blob/50a106bb/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java b/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java index a5e7d4f..5944da3 100644 --- a/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java +++ b/src/java/org/apache/log4j/chainsaw/XMLFileHandler.java @@ -7,7 +7,7 @@ package org.apache.log4j.chainsaw; import java.util.StringTokenizer; -import org.apache.log4j.Priority; +import org.apache.log4j.Level; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; @@ -41,7 +41,7 @@ class XMLFileHandler /** the time of the event **/ private long mTimeStamp; /** the priority (level) of the event **/ - private Priority mPriority; + private Level mLevel; /** the category of the event **/ private String mCategoryName; /** the NDC for the event **/ @@ -115,7 +115,7 @@ class XMLFileHandler mThreadName = aAtts.getValue("thread"); mTimeStamp = Long.parseLong(aAtts.getValue("timestamp")); mCategoryName = aAtts.getValue("logger"); - mPriority = Priority.toPriority(aAtts.getValue("level")); + mLevel = Level.toLevel(aAtts.getValue("level")); } else if (TAG_LOCATION_INFO.equals(aQName)) { mLocationDetails = aAtts.getValue("class") + "." + aAtts.getValue("method") @@ -136,7 +136,7 @@ class XMLFileHandler /** Add an event to the model **/ private void addEvent() { mModel.addEvent(new EventDetails(mTimeStamp, - mPriority, + mLevel, mCategoryName, mNDC, mThreadName, @@ -149,7 +149,7 @@ class XMLFileHandler /** Reset the data for an event **/ private void resetData() { mTimeStamp = 0; - mPriority = null; + mLevel = null; mCategoryName = null; mNDC = null; mThreadName = null;
