Skip to content

Commit 6f1a387

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of bundles/org.eclipse.e4.ui.css.swt
1 parent 88705e3 commit 6f1a387

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/custom/CSSPropertyHeaderHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ public class CSSPropertyHeaderHandler implements ICSSPropertyHandler {
3232
@Override
3333
public boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine)
3434
throws Exception {
35-
if (!(element instanceof IHeaderCustomizationElement headerCustomizationElement && element instanceof ElementAdapter)) {
35+
if (!(element instanceof IHeaderCustomizationElement headerCustomizationElement && element instanceof ElementAdapter elementAdapter)) {
3636
return false;
3737
}
38-
ElementAdapter elementAdapter = (ElementAdapter) element;
3938
Object nativeWidget = elementAdapter.getNativeWidget();
4039
if (!(nativeWidget instanceof Widget widget)) {
4140
return false;

0 commit comments

Comments
 (0)