Skip to main content
aboutsummaryrefslogtreecommitdiffstats
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/org/eclipse/debug/internal/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/org/eclipse/debug/internal/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java5
1 files changed, 3 insertions, 2 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));
}
}
}

Back to the top