diff options
author | bkolb | 2008-01-09 18:52:49 +0000 |
---|---|---|
committer | bkolb | 2008-01-09 18:52:49 +0000 |
commit | aca20292f7b60e503917f839b2771875a4186df1 (patch) | |
tree | c87ab584a64bb8d72efcf399c7e41e9e6f773589 | |
parent | 41a0ca298184ca407ffba6b77222d7ca69ea1544 (diff) | |
download | org.eclipse.xpand-aca20292f7b60e503917f839b2771875a4186df1.tar.gz org.eclipse.xpand-aca20292f7b60e503917f839b2771875a4186df1.tar.xz org.eclipse.xpand-aca20292f7b60e503917f839b2771875a4186df1.zip |
removed warnings
4 files changed, 3 insertions, 27 deletions
diff --git a/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/refactoring/actions/RefactorActionGroup.java b/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/refactoring/actions/RefactorActionGroup.java index bed8006c..056f1e33 100644 --- a/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/refactoring/actions/RefactorActionGroup.java +++ b/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/refactoring/actions/RefactorActionGroup.java @@ -89,24 +89,6 @@ public class RefactorActionGroup extends ActionGroup { */ public static final String GROUP_CODING2 = "codingGroup2"; //$NON-NLS-1$ - /** - * Pop-up menu: id of the reorg group 2 of the refactor sub menu (value - * <code>reorgGroup2</code>). - * - * @since 3.2 - */ - @SuppressWarnings("unused") - private static final String GROUP_REORG2 = "reorgGroup2"; //$NON-NLS-1$ //TODO(3.3): make public - - /** - * Pop-up menu: id of the type group 2 of the refactor sub menu (value - * <code>typeGroup2</code>). - * - * @since 3.2 - */ - @SuppressWarnings("unused") - private static final String GROUP_TYPE2 = "typeGroup2"; //$NON-NLS-1$ //TODO(3.3): make public - private final IWorkbenchSite fSite; private final XpandEditor fEditor; private String fGroupName = ""; @@ -177,11 +159,6 @@ public class RefactorActionGroup extends ActionGroup { keyBindingService.registerAction(quickAccessAction); } - @SuppressWarnings("unused") - private void initAction(SelectionDispatchAction action, ISelection selection, String actionDefinitionId) { - initUpdatingAction(action, null, selection, actionDefinitionId); - } - /** * Sets actionDefinitionId, updates enablement, adds to fActions, and adds * selection changed listener if provider is not <code>null</code>. diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/util/internal/icu/CharsetRecog_sbcs.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/util/internal/icu/CharsetRecog_sbcs.java index 1da7721c..92ff0d21 100644 --- a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/util/internal/icu/CharsetRecog_sbcs.java +++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/util/internal/icu/CharsetRecog_sbcs.java @@ -35,8 +35,6 @@ abstract class CharsetRecog_sbcs extends CharsetRecognizer { static class NGramParser { - @SuppressWarnings("unused") - private static final int N_GRAM_SIZE = 3; private static final int N_GRAM_MASK = 0xFFFFFF; private int byteIndex = 0; diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/ParseException.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/ParseException.java index 8c37b5ce..7edf7f39 100644 --- a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/ParseException.java +++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/ParseException.java @@ -10,8 +10,10 @@ *******************************************************************************/ package org.eclipse.internal.xtend.xtend.parser; -@SuppressWarnings("serial") public class ParseException extends RuntimeException { + + private static final long serialVersionUID = 2367973065443415423L; + public ParseException(XtendError e) { super(e.toString()); } diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/XtendParser.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/XtendParser.java index c03161d5..5e573453 100644 --- a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/XtendParser.java +++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/xtend/parser/XtendParser.java @@ -37,7 +37,6 @@ import org.eclipse.internal.xtend.xtend.ast.Check; import org.eclipse.internal.xtend.xtend.ast.Extension; import org.eclipse.internal.xtend.xtend.ast.ExtensionFile; import org.eclipse.internal.xtend.xtend.ast.ImportStatement; -@SuppressWarnings("unused") public class XtendParser extends Parser { public static final String[] tokenNames = new String[] { "<invalid>", "<EOR>", "<DOWN>", "<UP>", "StringLiteral", "IntLiteral", "Identifier", "EscapeSequence", "UnicodeEscape", "OctalEscape", "HexDigit", "Letter", "JavaIDDigit", "WS", "COMMENT", "LINE_COMMENT", "XPAND_TAG_OPEN", "XPAND_TAG_CLOSE", "'import'", "';'", "'extension'", "'reexport'", "'context'", "'if'", "'ERROR'", "'WARNING'", "':'", "'around'", "'('", "','", "'*'", "')'", "'::'", "'private'", "'cached'", "'JAVA'", "'.'", "'create'", "'Collection'", "'List'", "'Set'", "'let'", "'='", "'->'", "'?'", "'then'", "'else'", "'switch'", "'{'", "'case'", "'default'", "'}'", "'||'", "'&&'", "'implies'", "'=='", "'!='", "'>='", "'<='", "'>'", "'<'", "'+'", "'-'", "'/'", "'!'", "'GLOBALVAR'", "'new'", "'false'", "'true'", "'null'", "'typeSelect'", "'collect'", "'select'", "'selectFirst'", "'reject'", "'exists'", "'notExists'", "'sortBy'", "'forAll'", "'|'", "'['", "']'" |