We have an already-casted AddedByUsesAware, use that for the next
instanceof check.
Change-Id: I2e9a172c02fbc3e97d8c90e477cecaf8fa9504f5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
// CopyableNode and AddedByUsesAware
private static boolean isOriginalDeclaration(final EffectiveStatement<?, ?> stmt) {
if (stmt instanceof AddedByUsesAware aware
- && (aware.isAddedByUses() || stmt instanceof CopyableNode copyable && copyable.isAugmenting())) {
+ && (aware.isAddedByUses() || aware instanceof CopyableNode copyable && copyable.isAugmenting())) {
return false;
}
return true;