Skip to content

Commit 843f271

Browse files
committed
CSSTUDIO-3337 Replace "instanceof VType" with "!= null".
1 parent ed23f14 commit 843f271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/RegionBaseRepresentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private void connectionOrValueChanged(final WidgetProperty<?> property, final Ob
266266
if (alarm != null && alarm.getSeverity() != AlarmSeverity.NONE)
267267
// Have alarm info
268268
severity = alarm.getSeverity();
269-
else if (value instanceof VType)
269+
else if (value != null)
270270
// VType that doesn't provide alarm, always OK
271271
severity = AlarmSeverity.NONE;
272272
else // null

0 commit comments

Comments
 (0)