Skip to content

Commit 45842d4

Browse files
Bananeweizenromani
authored andcommitted
minor: remove unnecessary null checks in instanceof
1 parent 9471ec5 commit 45842d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/properties/CheckConfigurationContentProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public Object[] getElements(Object inputElement) {
5050

5151
List<ICheckConfiguration> configurations = new ArrayList<>();
5252

53-
if (inputElement != null && inputElement instanceof ProjectConfigurationWorkingCopy) {
53+
if (inputElement instanceof ProjectConfigurationWorkingCopy) {
5454
ICheckConfiguration[] localConfigs = ((ProjectConfigurationWorkingCopy) inputElement)
5555
.getLocalCheckConfigWorkingSet().getWorkingCopies();
5656

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/properties/filter/CheckFileOnOpenPartListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private IFile getEditorFile(IWorkbenchPartReference partRef) {
230230

231231
IEditorInput input = null;
232232

233-
if (part != null && part instanceof IEditorPart) {
233+
if (part instanceof IEditorPart) {
234234

235235
IEditorPart editor = (IEditorPart) part;
236236
input = editor.getEditorInput();

0 commit comments

Comments
 (0)