diff options
author | Alexander Kurtakov | 2018-05-08 10:59:48 +0000 |
---|---|---|
committer | Karsten Thoms | 2018-05-09 09:59:36 +0000 |
commit | 1e7a29e071953ebb2101ad3b6c582b560b49845d (patch) | |
tree | d030972df65f98ab09bf7c71f0bd50e001a95314 /org.eclipse.core.variables/src | |
parent | 3d920a7a364fdc3fa02da2c12f056ca4375525ce (diff) | |
download | eclipse.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.core.variables/src')
-rw-r--r-- | org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java index 8be6f7c3b..c6b8a5007 100644 --- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java +++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2016 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 @@ -15,6 +15,7 @@ import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; +import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -278,7 +279,7 @@ public class StringVariableManager implements IStringVariableManager, IPreferenc } Element root= null; try { - ByteArrayInputStream stream = new ByteArrayInputStream(variablesString.getBytes("UTF-8")); //$NON-NLS-1$ + ByteArrayInputStream stream = new ByteArrayInputStream(variablesString.getBytes(StandardCharsets.UTF_8)); DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); parser.setErrorHandler(new DefaultHandler()); root = parser.parse(stream).getDocumentElement(); |