You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Greeting {
public static void greet(String name) {
System.out.println("Hello, " + name.trim());
}
public static void main(String[] args) {
greet(null); // This will throw a NullPointerException
}
}
can we have some features to automatic generate code patch like
public class Greeting {
public static void greet(@NonNull String name) {
System.out.println("Hello, " + name.trim());
}
public static void main(String[] args) {
String name = null;
if (name != null) {
greet(name); // Safe now!
} else {
System.out.println("Name is not provided.");
}
}
}
I think this will be helpful for developers are using the plugin.
The text was updated successfully, but these errors were encountered:
For a buggy code snippet like below,
can we have some features to automatic generate code patch like
I think this will be helpful for developers are using the plugin.
The text was updated successfully, but these errors were encountered: