summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
32fec63)
Remove an explicit cast in favor of an instanceof pattern.
Change-Id: Iffe0425ba48a43396667354d4d7b22f882301445
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public CaseRuntimeType bindingCaseChild(final JavaTypeName typeName) {
final var child = bindingChild(typeName);
@Override
public CaseRuntimeType bindingCaseChild(final JavaTypeName typeName) {
final var child = bindingChild(typeName);
- return child instanceof CaseRuntimeType ? (CaseRuntimeType) child : null;
+ return child instanceof CaseRuntimeType caseChild ? caseChild : null;