Uh oh!
There was an error while loading. Please reload this page.
Noop scope - #40
Conversation
willsalz
commented
Sep 4, 2019
@JigarJoshi do you know who should be code reviewing this? |
| @Override | ||
| public Counter counter(String name) { | ||
| return (delta) -> { |
There was a problem hiding this comment.
this might create a new lambda object every time [ not sure it the compiler will inline this ]. you could instantiate a static function protected final Provider<Counter> PROVIDER_FUNCTION = () -> {} and reuse
There was a problem hiding this comment.
same goes for all of the other NoOp methods
There was a problem hiding this comment.
good point. I updated the PR.
JigarJoshi
commented
Sep 4, 2019
willsalz
left a comment
There was a problem hiding this comment.
ship it! I didn't see any other reviewers active on this diff, and I'm not sure who actively watches this project, but feel free to land and we can improve as needed.
| @Override | ||
| public Counter counter(String name) { | ||
| return (delta) -> { |
There was a problem hiding this comment.
same goes for all of the other NoOp methods
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
justinjc
commented
Sep 17, 2019
@JigarJoshi looks mostly good, thanks! Looks like the build is red because checkstyle is complaining about the missing copyright statement at the beginning of the file. Can you put that in please? Copy it from some other file but use 2019 as the year. FYI when it says something like |
#34