Diagnostics, implementation and definition tools (WIP)

This commit is contained in:
Michael Panchenko authored and Dominik Jain committed 2026-04-29 23:52:26 +02:00
1 parent df0f476614
commit c55e0c900e
66 files changed
+3928 -38

No files matched your search

@@ -0,0 +1,8 @@
package test_repo;
public class ConsoleGreeter implements Greeter {
@Override
public String formatGreeting(String name) {
return "Hello, " + name + "!";
}
}
@@ -0,0 +1,13 @@
package test_repo;
public class DiagnosticsSample {
public static String brokenFactory() {
return missingGreeting;
}
public static void brokenConsumer() {
String value = brokenFactory();
System.out.println(value);
System.out.println(missingConsumerValue);
}
}
@@ -0,0 +1,5 @@
package test_repo;
public interface Greeter {
String formatGreeting(String name);
}
@@ -6,6 +6,8 @@ public class Main {
Model model = new Model("Cascade");
System.out.println(model.getName());
acceptModel(model);
Greeter greeter = new ConsoleGreeter();
System.out.println(greeter.formatGreeting("Cascade"));
}
public static void acceptModel(Model m) {
// Do nothing, just for LSP reference