Skip to content

Commit

Permalink
[BAEL-4208]java compiled classes contain dollar signs (eugenp#10573)
Browse files Browse the repository at this point in the history
Updated Anonymous classes methods

Co-authored-by: MeenaGawande <[email protected]>
  • Loading branch information
MeenaGawande and MeenaGawande authored Mar 21, 2021
1 parent 989a8c1 commit 536b77e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ private String message() {
// Anonymous Inner class extending a class
public String greet() {
Outer anonymous = new Outer() {
@Override
public String greet() {
return "Running Anonymous Class...";
}
Expand All @@ -58,6 +59,7 @@ public String greet() {
public String greet(String name) {

HelloWorld helloWorld = new HelloWorld() {
@Override
public String greet(String name) {
return "Welcome to " + name;
}
Expand All @@ -68,8 +70,9 @@ public String greet(String name) {

// Anonymous inner class implementing nested interface
public String greetSomeone(String name) {

HelloSomeone helloSomeOne = new HelloSomeone() {
@Override
public String greet(String name) {
return "Hello " + name;
}
Expand All @@ -94,7 +97,8 @@ interface HelloWorld {
public String greet(String name);

// Nested class within an interface
class InnerClass {
class InnerClass implements HelloWorld {
@Override
public String greet(String name) {
return "Inner class within an interface";
}
Expand Down

0 comments on commit 536b77e

Please sign in to comment.