Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-09-12 19:53:59 +0000
committerSopot Cela2017-09-15 12:34:36 +0000
commite341a61b8c18b906a60eee6886b5d0fc452797e1 (patch)
tree0f045e9031df603bb04442d322da96d390aaf436 /org.eclipse.core.filebuffers.tests
parent436cf72b5d16b64ce88662e468a4839ed8dd99e9 (diff)
downloadeclipse.platform.text-e341a61b8c18b906a60eee6886b5d0fc452797e1.tar.gz
eclipse.platform.text-e341a61b8c18b906a60eee6886b5d0fc452797e1.tar.xz
eclipse.platform.text-e341a61b8c18b906a60eee6886b5d0fc452797e1.zip
Bug 522212 - Resolve redundant null checks
Change-Id: Iaea3ee9df3771e40bc1d5bc58cd96b871c576406 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.core.filebuffers.tests')
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferCreation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferCreation.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferCreation.java
index 7c0bc37b52f..ca3652397af 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferCreation.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferCreation.java
@@ -69,12 +69,12 @@ public class FileBufferCreation {
private IPath createLinkedFile(String linkedFileName, String linkedFileTarget) throws CoreException {
IFile linkedFile= ResourceHelper.createLinkedFile(fProject, new Path(linkedFileName), FileBuffersTestPlugin.getDefault(), new Path(linkedFileTarget));
- return linkedFile != null ? linkedFile.getFullPath() : null;
+ return linkedFile.getFullPath();
}
private IPath createLinkedFolder(String linkedFolderName, String linkedFolderTarget) throws CoreException {
IFolder linkedFolder= ResourceHelper.createLinkedFolder(fProject, new Path(linkedFolderName), FileBuffersTestPlugin.getDefault(), new Path(linkedFolderTarget));
- return linkedFolder != null ? linkedFolder.getFullPath() : null;
+ return linkedFolder.getFullPath();
}
/*

Back to the top