Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2018-02-24 13:44:32 +0000
committerAlexander Kurtakov2018-03-09 13:34:12 +0000
commit80aedf7d7251de0c03bbe902e4644855e7030be5 (patch)
treed3fd0de125986cbf9adfb7736c04992a29d01364 /bundles/org.eclipse.compare
parent40637379e4dccde9a1736e8103ba143ae8a8be4d (diff)
downloadeclipse.platform.team-80aedf7d7251de0c03bbe902e4644855e7030be5.tar.gz
eclipse.platform.team-80aedf7d7251de0c03bbe902e4644855e7030be5.tar.xz
eclipse.platform.team-80aedf7d7251de0c03bbe902e4644855e7030be5.zip
Bug 531630 - Replace usage of System.getProperty("file.separator")
Change-Id: Ida18ec7c840c380570f3f4690683fedb55677cc1 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'bundles/org.eclipse.compare')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/InputPatchPage.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/InputPatchPage.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/InputPatchPage.java
index 9a2d51362..2c1245128 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/InputPatchPage.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/InputPatchPage.java
@@ -91,8 +91,6 @@ public class InputPatchPage extends WizardPage {
protected final static String INPUTPATCHPAGE_NAME= "InputPatchPage"; //$NON-NLS-1$
- static final char SEPARATOR= System.getProperty("file.separator").charAt(0); //$NON-NLS-1$
-
private boolean fShowError= false;
private String fPatchSource;
private boolean fPatchRead= false;
@@ -621,7 +619,7 @@ public class InputPatchPage extends WizardPage {
dialog.setText(PatchMessages.InputPatchPage_SelectPatchFileDialog_title);
String patchFilePath= getPatchFilePath();
if (patchFilePath != null) {
- int lastSegment= patchFilePath.lastIndexOf(SEPARATOR);
+ int lastSegment= patchFilePath.lastIndexOf(File.separatorChar);
if (lastSegment > 0) {
patchFilePath= patchFilePath.substring(0, lastSegment);
}

Back to the top