Skip to content

Commit 08ab283

Browse files
eclipse-pde-botlaeubi
authored andcommitted
Perform clean code of ui/org.eclipse.pde.genericeditor.extension
1 parent 11764f9 commit 08ab283

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/expressions/EditorInputPropertyTester.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public class EditorInputPropertyTester extends PropertyTester {
2424

2525
@Override
2626
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
27-
if (receiver instanceof IEditorInput) {
28-
IEditorInput editorInput = (IEditorInput) receiver;
27+
if (receiver instanceof IEditorInput editorInput) {
2928
if (CONTENT_TYPE_ID.equals(property)) {
3029
String identifier = String.valueOf(expectedValue);
3130
IContentTypeManager contentTypeManager = Platform.getContentTypeManager();

0 commit comments

Comments
 (0)