Add System.Logger to logger hints and code generation; minor new features#8253
Add System.Logger to logger hints and code generation; minor new features#8253matthiasblaesing merged 1 commit intoapache:masterfrom
System.Logger to logger hints and code generation; minor new features#8253Conversation
…atures In `Surround with try-catch` hint add/default to `System.Logger`. This default is also used by `Generate > Logger...`. Addresses some issues in raised in apache#8240. New feature: `Use existing declared Logger`. New feature: hint fix `convert string concatenation to Supplier<String>` Fix "Logging" hints to handle System.Logger.
|
Notes/issues/questions about this PR. "java.lang.System.Logger" is used directly because:
Using
|
b25ef0a to
4cdd426
Compare
This comment was marked as outdated.
This comment was marked as outdated.
5d06f2f to
7d026d2
Compare
|
@lahodaj The code for this PR is all about |
matthiasblaesing
left a comment
There was a problem hiding this comment.
This seems to do what it promises, thank you.
I left a few comments inline.
|
Pushed fixes for everything but #8253 (comment), which is still under discussion. |
|
Pushed fix for #8253 (comment) as well. |
matthiasblaesing
left a comment
There was a problem hiding this comment.
Thank you for the update. Looks good to me. I left two followup comments inline and please update the commit message to have a summary in the first line and a an empty line as separator to the complete message.
Surround with try-catch hint add/default to System.Logger.System.Logger to logger hints and code generation; minor new features
Sure. Though in this case, with both original Sun java and current Google guidelines, there's considerable weight behind the "shouldn't be all caps" POV. |
|
There's a test failure. Doesn't seem related to this PR. OK to ignore? |
|
@errael yes this is one of the flaky tests. Tests are green, so lets get this in. Thank you. |
This default is also used by
Generate > Logger.... Addresses some issues in raised in #8240.New feature
Use existing declared Logger. FixLogginghints to handleSystem.Logger.Add "Put string concatenation in lambda" hint fix. Adjust tests; new tests.