Bug 53948 - ThrowableInformationPatternConverter does not need to import ThrowableInformation
Summary: ThrowableInformationPatternConverter does not need to import ThrowableInforma...
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.2
Hardware: All All
: P5 enhancement
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-29 18:53 UTC by Harsh J
Modified: 2012-09-29 18:54 UTC (History)
1 user (show)



Attachments
Patch that refactors the method to not require an extra import (1.06 KB, patch)
2012-09-29 18:54 UTC, Harsh J
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harsh J 2012-09-29 18:53:23 UTC
Trivial/Non-problem/Code-nit thing:

Since LoggingEvent.getThrowableStrRep(); exists, we do not need to use and store the LoggingEvent.getThrowableInformation() returned object for the String[] representation of the throwable information.

A patch is attached that refactors this, leading to one less import.
Comment 1 Harsh J 2012-09-29 18:54:01 UTC
Created attachment 29429 [details]
Patch that refactors the method to not require an extra import