Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-01-07 20:53:31 +0000
committerAlexander Kurtakov2020-01-10 21:24:59 +0000
commitefd906be3deb58abf491eaa3f327f29cb1656a46 (patch)
treec23cc6fcc854cfa3aaa1576b7b9f180d24680905 /tests/org.eclipse.swt.tests.gtk/ManualTests/org
parentf966653a8a33bdef6afe64e52b7cd7da4c054d16 (diff)
downloadeclipse.platform.swt-efd906be3deb58abf491eaa3f327f29cb1656a46.tar.gz
eclipse.platform.swt-efd906be3deb58abf491eaa3f327f29cb1656a46.tar.xz
eclipse.platform.swt-efd906be3deb58abf491eaa3f327f29cb1656a46.zip
Use System.lineSeparator()
Benefit of this way rather than System.getProperty("line.separator") is that there are no security checks. Change-Id: I89bc3b8490f47498e161736a9ab5756fd88835a9 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk/ManualTests/org')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug221240_AWTJVMCrash.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug221240_AWTJVMCrash.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug221240_AWTJVMCrash.java
index 0a5ef7ce73..286a03fc90 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug221240_AWTJVMCrash.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug221240_AWTJVMCrash.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2018 Red Hat and others. All rights reserved.
+ * Copyright (c) 2018, 2020 Red Hat and others. All rights reserved.
* The contents of this file are made available under the terms
* of the GNU Lesser General Public License (LGPL) Version 2.1 that
* accompanies this distribution (lgpl-v21.txt). The LGPL is also
@@ -43,7 +43,7 @@ public class Bug221240_AWTJVMCrash extends JFrame {
private static final long serialVersionUID = -248424300520098295L;
-protected static final String LS = System.getProperty("line.separator");
+protected static final String LS = System.lineSeparator();
public Bug221240_AWTJVMCrash() {
setDefaultCloseOperation(EXIT_ON_CLOSE);

Back to the top