-
-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Don't clone method body when adapting it for isOverriding (#4862)
- Loading branch information
1 parent
f3ae9b5
commit e466b82
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package sniperPrinter; | ||
|
||
public class Overriding { | ||
public static class Super { | ||
void foo() { | ||
System. out. println(1+2 | ||
); | ||
} | ||
} | ||
|
||
public static class Sub extends Super { | ||
@Override | ||
void foo() { | ||
} | ||
} | ||
} |