diff options
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java index 89791b619..c8713aa8b 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/ProjectSetImporter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. + * Copyright (c) 2000, 2017 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 @@ -12,6 +12,7 @@ package org.eclipse.team.internal.ui; import java.io.*; import java.lang.reflect.InvocationTargetException; +import java.nio.charset.StandardCharsets; import java.util.*; import java.util.List; @@ -193,10 +194,8 @@ public class ProjectSetImporter { private static XMLMemento filenameToXMLMemento(String filename) throws InvocationTargetException { InputStreamReader reader = null; try { - reader = new InputStreamReader(new FileInputStream(filename), "UTF-8"); //$NON-NLS-1$ + reader = new InputStreamReader(new FileInputStream(filename), StandardCharsets.UTF_8); return XMLMemento.createReadRoot(reader); - } catch (UnsupportedEncodingException e) { - throw new InvocationTargetException(e); } catch (FileNotFoundException e) { throw new InvocationTargetException(e); } catch (WorkbenchException e) { |