Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-05-08 10:59:48 +0000
committerKarsten Thoms2018-05-09 09:59:36 +0000
commit1e7a29e071953ebb2101ad3b6c582b560b49845d (patch)
treed030972df65f98ab09bf7c71f0bd50e001a95314 /org.eclipse.debug.ui/ui
parent3d920a7a364fdc3fa02da2c12f056ca4375525ce (diff)
downloadeclipse.platform.debug-1e7a29e071953ebb2101ad3b6c582b560b49845d.tar.gz
eclipse.platform.debug-1e7a29e071953ebb2101ad3b6c582b560b49845d.tar.xz
eclipse.platform.debug-1e7a29e071953ebb2101ad3b6c582b560b49845d.zip
Bug 533788 - Use StandardCharsetsI20180509-0800
Another bunch of such changes. Change-Id: I4012772607b8f7c165156b8d03fbd5bcbee4b581 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java5
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java5
2 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java
index dcf018cc0..258835629 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -16,6 +16,7 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
@@ -473,7 +474,7 @@ public class LaunchConfigurationManager implements ILaunchListener, ISavePartici
file.createNewFile();
try (FileOutputStream stream = new FileOutputStream(file)) {
- stream.write(xml.getBytes("UTF8")); //$NON-NLS-1$
+ stream.write(xml.getBytes(StandardCharsets.UTF_8));
}
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java
index 78a4417b0..e615acb72 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2015 IBM Corporation and others.
+ * Copyright (c) 2005, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -17,6 +17,7 @@ import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.lang.reflect.InvocationTargetException;
+import java.nio.charset.StandardCharsets;
import java.util.Map.Entry;
import org.eclipse.core.resources.IMarker;
@@ -140,7 +141,7 @@ public class ExportBreakpointsOperation implements IRunnableWithProgress {
localmonitor.worked(1);
}
if (writer == null) {
- try (Writer outWriter = new OutputStreamWriter(new FileOutputStream(fFileName), "UTF-8")) { //$NON-NLS-1$
+ try (Writer outWriter = new OutputStreamWriter(new FileOutputStream(fFileName), StandardCharsets.UTF_8)) {
memento.save(outWriter);
}
} else {

Back to the top