-
Notifications
You must be signed in to change notification settings - Fork 50
Address RC feedback #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address RC feedback #292
Changes from all commits
b4c3b20
a2e6973
1f0afb9
4ec2eee
66d2ea8
6dd2374
5119152
c86eef2
670ea92
687ac5d
382e732
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| package com.sap.hcp.cf.logging.common.converter; | ||
|
|
||
| import org.apache.commons.lang3.StringUtils; | ||
|
|
||
| import java.io.IOException; | ||
| import java.io.StringWriter; | ||
| import java.io.Writer; | ||
|
|
@@ -12,7 +10,7 @@ public class LineWriter extends Writer { | |
|
|
||
| StringWriter sw = new StringWriter(); | ||
|
|
||
| private List<String> lines = new LinkedList<String>(); | ||
| private final List<String> lines = new LinkedList<String>(); | ||
|
|
||
| public LineWriter() { | ||
| } | ||
|
|
@@ -26,7 +24,7 @@ public List<String> getLines() { | |
| */ | ||
| @Override | ||
| public void write(String str, int off, int len) { | ||
| if (StringUtils.isNotBlank(str)) { | ||
| if (str != null && !str.isBlank()) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason for not providing a shared method in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's too small of a functionality to do that. Using the StringUtils for it was already overkill. |
||
| lines.add(str); | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.