-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add KPrintfMessageParser & KDefaultPrintfMessageParser #13
Conversation
…lemented yet and would fail)
@@ -79,7 +79,7 @@ static String getSafeSystemNewline() { | |||
* @param formatStart the index of the (first) format character in the term. | |||
* @return the index after the last character of the term. | |||
*/ | |||
abstract int parsePrintfTerm( | |||
protected abstract int parsePrintfTerm( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small change to the Java Flogger codebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes sense. In an ideal world it would make sense to make this internal so that this is only accessible to friend modules.
@@ -79,7 +79,7 @@ static String getSafeSystemNewline() { | |||
* @param formatStart the index of the (first) format character in the term. | |||
* @return the index after the last character of the term. | |||
*/ | |||
abstract int parsePrintfTerm( | |||
protected abstract int parsePrintfTerm( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes sense. In an ideal world it would make sense to make this internal so that this is only accessible to friend modules.
In this PR I tried my best not to touch the Java Flogger code but I couldn't find any other way to solve the following issue:
PrintfMessageParser
contains the functionabstract int parsePrintfTerm
which I cannot override in Kotlin modules because the Java visibility is package-private. So the only solution I found was to increase the visibility toprotected
.@MarkCMann