Skip to content

Commit

Permalink
refactor: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaBishowkarma committed Nov 9, 2024
1 parent 5c06301 commit 54bf9e4
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/main/java/com/krishna/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
import java.util.List;

@SpringBootApplication
/*
@ComponentScan(basePackages = "com.krishna")
@EnableAutoConfiguration
@Configuration
*/
@RestController
public class Main {
public static void main(String[] args) {
Expand Down Expand Up @@ -42,38 +37,4 @@ record GreetResponse(
Person person
) {
}

/*
class GreetResponse {
public GreetResponse(String greet) {
this.greet = greet;
}
private final String greet;
public String getGreet() {
return greet;
}
@Override
public String toString() {
return "GreetResponse{" +
"greet='" + greet + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GreetResponse response = (GreetResponse) o;
return Objects.equals(greet, response.greet);
}
@Override
public int hashCode() {
return Objects.hashCode(greet);
}
}
*/
}

0 comments on commit 54bf9e4

Please sign in to comment.