diff options
author | Steffen Pingel | 2014-03-25 10:20:26 +0000 |
---|---|---|
committer | Sam Davis | 2014-04-09 16:38:38 +0000 |
commit | df87f343eaa583d8171de5cd081a29b1b1d9890b (patch) | |
tree | 97887b8f5025d489d6b553aeee8c04c652122d13 /org.eclipse.mylyn.tasks.core | |
parent | 60837157de424386ee9c813a6f7650475c73d8f3 (diff) | |
download | org.eclipse.mylyn.tasks-df87f343eaa583d8171de5cd081a29b1b1d9890b.tar.gz org.eclipse.mylyn.tasks-df87f343eaa583d8171de5cd081a29b1b1d9890b.tar.xz org.eclipse.mylyn.tasks-df87f343eaa583d8171de5cd081a29b1b1d9890b.zip |
376337: remove deprecated internal provisional classes from Tasks
Change-Id: I9c4cc4c29c745c6d4af94896853ab7a1fa5dce91
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=376337
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r-- | org.eclipse.mylyn.tasks.core/META-INF/MANIFEST.MF | 3 | ||||
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java | 79 |
2 files changed, 1 insertions, 81 deletions
diff --git a/org.eclipse.mylyn.tasks.core/META-INF/MANIFEST.MF b/org.eclipse.mylyn.tasks.core/META-INF/MANIFEST.MF index f5b9614db..3d1bc79d6 100644 --- a/org.eclipse.mylyn.tasks.core/META-INF/MANIFEST.MF +++ b/org.eclipse.mylyn.tasks.core/META-INF/MANIFEST.MF @@ -13,8 +13,7 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.mylyn.commons.repositories.core;bundle-version="1.0.0", com.google.guava;bundle-version="15.0.0", org.apache.xerces;bundle-version="2.9.0";resolution:=optional -Export-Package: org.eclipse.mylyn.internal.provisional.tasks.core;x-internal:=true, - org.eclipse.mylyn.internal.tasks.core;x-friends:="org.eclipse.mylyn.tasks.ui,org.eclipse.mylyn.tasks.bugs", +Export-Package: org.eclipse.mylyn.internal.tasks.core;x-friends:="org.eclipse.mylyn.tasks.ui,org.eclipse.mylyn.tasks.bugs", org.eclipse.mylyn.internal.tasks.core.activity;x-friends:="org.eclipse.mylyn.tasks.ui,org.eclipse.mylyn.tasks.bugs", org.eclipse.mylyn.internal.tasks.core.context;x-friends:="org.eclipse.mylyn.tasks.ui,org.eclipse.mylyn.tasks.bugs", org.eclipse.mylyn.internal.tasks.core.data;x-friends:="org.eclipse.mylyn.tasks.ui,org.eclipse.mylyn.tasks.bugs", diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java deleted file mode 100644 index d194abb99..000000000 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/provisional/tasks/core/TasksUtil.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2008 Tasktop Technologies 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.internal.provisional.tasks.core; - -import org.eclipse.mylyn.commons.core.CoreUtil; - -/** - * @author Steffen Pingel - * @deprecated - */ -@Deprecated -public class TasksUtil { - - /** - * @deprecated use {@link CoreUtil#decode(String)} instead - */ - @Deprecated - public static String decode(String text) { - boolean escaped = false; - StringBuffer sb = new StringBuffer(text.length()); - StringBuffer escapedText = new StringBuffer(4); - char[] chars = text.toCharArray(); - for (char c : chars) { - if (c >= '0' && c <= '9' || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '.') { - if (escaped) { - escapedText.append(c); - } else { - sb.append(c); - } - } else if (c == '%') { - if (escaped) { - throw new IllegalArgumentException("Unexpected '%' sign in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$ - } - escaped = !escaped; - } else if (c == '_') { - if (!escaped) { - throw new IllegalArgumentException("Unexpected '_' sign in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$ - } - try { - sb.append((char) Integer.parseInt(escapedText.toString(), 16)); - escapedText.setLength(0); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("Invalid escape code in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$ - } - escaped = !escaped; - } else { - throw new IllegalArgumentException("Unexpected character '" + c + "' in '" + text + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - } - } - return sb.toString(); - } - - /** - * @deprecated use {@link CoreUtil#encode(String)} instead - */ - @Deprecated - public static String encode(String text) { - StringBuffer sb = new StringBuffer(text.length()); - char[] chars = text.toCharArray(); - for (char c : chars) { - if (c >= '0' && c <= '9' || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '.') { - sb.append(c); - } else { - sb.append("%" + Integer.toHexString(c).toUpperCase() + "_"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - return sb.toString(); - } - -} |