if (obj instanceof String) {
String s = (String) obj;
// use s
}
becomes
if (obj instanceof String s) {
// use s
}
Comment From: avillalain
@wilkinsona Is this issue something that new comers can start working on?
Comment From: wilkinsona
Not at the moment. Thanks for the offer, though. We haven't started work on 3.0 yet and there are a number of things that'll have to be tackled before we can look at this one.
Comment From: wilkinsona
Closing in favor of #31475.