DomGarguilo opened a new pull request, #5874:
URL: https://github.com/apache/accumulo/pull/5874
use Java 17 pattern matching for `instanceof` checks, eliminating redundant
casting and improving readability.
### Example Transformation
Before (Java 11):
```java
if (obj instanceof String) {
String str = (String) obj;
return str.length();
}
```
After (Java 17):
```java
if (obj instanceof String str) {
return str.length();
}
```
These changes were made by my IDE
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]