-
-
Save mike-solomon/cdb8cb02a64f016ef225bf03a4d25bd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.function.Consumer; | |
| class A { | |
| void test() { | |
| Consumer<String> a = b -> { | |
| int c = 0; | |
| }; | |
| a = new Consumer<String>() { | |
| @Override | |
| public void accept(String s) { } | |
| }; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without the super call, line 6 of
int c = 0will not have thefinalmodifier added to it.