Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-01-07 15:53:31 -0500
committerAlexander Kurtakov2020-01-10 16:24:59 -0500
commitefd906be3deb58abf491eaa3f327f29cb1656a46 (patch)
treec23cc6fcc854cfa3aaa1576b7b9f180d24680905 /examples
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 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/text.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/text.txt b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/text.txt
index cc317cf6e1..0f871d800f 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/text.txt
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/text.txt
@@ -82,7 +82,7 @@ import org.eclipse.swt.widgets.*;
*/
public class StyledText extends Canvas {
static final char TAB = '\t';
- static final String PlatformLineDelimiter = System.getProperty("line.separator");
+ static final String PlatformLineDelimiter = System.lineSeparator();
static final int BIDI_CARET_WIDTH = 3;
static final int DEFAULT_WIDTH = 64;
static final int DEFAULT_HEIGHT = 64;

Back to the top