Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-04-12 20:01:57 +0000
committerLars Vogel2021-04-12 20:01:57 +0000
commit077c0713b0e7388491a456da05dafa33ccadc243 (patch)
tree5bb67ae3aab6a7951110108dc6a6ba3c060ede8f
parent70fc28a0b65038c372d10cc45d97be02d81fee13 (diff)
downloadrt.equinox.framework-077c0713b0e7388491a456da05dafa33ccadc243.tar.gz
rt.equinox.framework-077c0713b0e7388491a456da05dafa33ccadc243.tar.xz
rt.equinox.framework-077c0713b0e7388491a456da05dafa33ccadc243.zip
[dogfooding] Use Java method instead of system property cleanup
Applied use Java method instead of system property 'FILE_ENCODING,PATH_SEPARATOR,FILE_SEPARATOR,LINE_SEPARATOR,BOOLEAN_PROPERTY' Change-Id: I09cccb13cfe57a1de12174ffd4526e0300515a40 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java2
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/EclipseDebugTrace.java2
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/EquinoxLogWriter.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java
index c6c4d481a..c07267717 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolver.java
@@ -77,7 +77,7 @@ import org.osgi.service.resolver.Resolver;
* in a module {@link ModuleContainer container}.
*/
final class ModuleResolver {
- static final String SEPARATOR = System.getProperty("line.separator"); //$NON-NLS-1$
+ static final String SEPARATOR = System.lineSeparator();
static final char TAB = '\t';
private static final String OPTION_RESOLVER = EquinoxContainer.NAME + "/resolver"; //$NON-NLS-1$
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/EclipseDebugTrace.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/EclipseDebugTrace.java
index f94881513..7bef37275 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/EclipseDebugTrace.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/debug/EclipseDebugTrace.java
@@ -71,7 +71,7 @@ class EclipseDebugTrace implements DebugTrace {
/** OS-specific line separator */
private static final String LINE_SEPARATOR;
static {
- String s = System.getProperty("line.separator"); //$NON-NLS-1$
+ String s = System.lineSeparator();
LINE_SEPARATOR = s == null ? "\n" : s; //$NON-NLS-1$
}
/** The value written to the trace file if a null object is being traced */
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/EquinoxLogWriter.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/EquinoxLogWriter.java
index 134f4fcb2..57e5d0bec 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/EquinoxLogWriter.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/EquinoxLogWriter.java
@@ -59,7 +59,7 @@ class EquinoxLogWriter implements SynchronousLogListener, LogFilter {
private static final String LINE_SEPARATOR;
static {
- String s = System.getProperty("line.separator"); //$NON-NLS-1$
+ String s = System.lineSeparator();
LINE_SEPARATOR = s == null ? "\n" : s; //$NON-NLS-1$
}

Back to the top