From 8afd29e8eb94c2624225e8e31472eef9691fe3a9 Mon Sep 17 00:00:00 2001 From: George Lindholm <66577321+gnl42@users.noreply.github.com> Date: Sun, 30 Jun 2024 00:49:55 -0700 Subject: [PATCH] Some warning cleanup --- .../asciidoc/tests/AsciiDocDocumentBuilderTest.java | 3 ++- .../asciidoc/tests/AsciiDocLanguageSupportTest.java | 3 ++- .../mylyn/wikitext/commonmark/internal/LineTest.java | 2 +- .../commonmark/internal/SimpleLocatorTest.java | 3 ++- .../commonmark/internal/inlines/InlineTest.java | 3 ++- .../commonmark/internal/inlines/InlineParser.java | 2 +- .../internal/tests/ConfluenceDocumentBuilderTest.java | 3 ++- .../AbstractCreoleDocumentBuilderTest.java | 2 +- .../CreoleDocumentBuilderBlockTest.java | 3 ++- .../CreoleDocumentBuilderLinkImageTest.java | 3 ++- .../documentbuilder/CreoleDocumentBuilderListTest.java | 3 ++- .../documentbuilder/CreoleDocumentBuilderSpanTest.java | 3 ++- .../CreoleDocumentBuilderTableTest.java | 3 ++- .../documentbuilder/CreoleDocumentBuilderTest.java | 3 ++- .../wikitext/html/internal/BlockStrategiesTest.java | 2 +- .../wikitext/html/internal/SpanStrategiesTest.java | 3 ++- .../markdown/tests/MarkdownDocumentBuilderTest.java | 3 ++- .../mylyn/wikitext/parser/tests/AttributesTest.java | 3 ++- .../wikitext/textile/internal/tests/TextileTest.java | 3 ++- .../tasks/ui/editor/MarkupTaskEditorExtension.java | 10 ++++------ 20 files changed, 38 insertions(+), 25 deletions(-) diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocDocumentBuilderTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocDocumentBuilderTest.java index 2031a86e1b..6c5cc7cffe 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocDocumentBuilderTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocDocumentBuilderTest.java @@ -10,6 +10,7 @@ * Contributors: * Jeremie Bresson - copied from MarkdownDocumentBuilderTest and adapted to AsciiDoc * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.asciidoc.tests; @@ -28,7 +29,7 @@ import org.junit.Before; import org.junit.Test; -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class AsciiDocDocumentBuilderTest { private DocumentBuilder builder; diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocLanguageSupportTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocLanguageSupportTest.java index 00bc5a9d4a..678b20890c 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocLanguageSupportTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.asciidoc.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/asciidoc/tests/AsciiDocLanguageSupportTest.java @@ -10,6 +10,7 @@ * Contributors: * Jeremie Bresson - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.asciidoc.tests; @@ -28,7 +29,7 @@ /** * Unit Tests for {@link LanguageSupport} */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class AsciiDocLanguageSupportTest extends AsciiDocLanguageTestBase { @Test diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java index 3d14c58624..3b8fe47284 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java @@ -24,7 +24,7 @@ import org.eclipse.mylyn.wikitext.parser.Locator; import org.junit.Test; -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class LineTest { @Test(expected = NullPointerException.class) diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/SimpleLocatorTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/SimpleLocatorTest.java index 5ad29146e0..563e7ca0dc 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/SimpleLocatorTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/SimpleLocatorTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.commonmark.internal; @@ -19,7 +20,7 @@ import org.eclipse.mylyn.wikitext.parser.Locator; import org.junit.Test; -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class SimpleLocatorTest { @Test diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineTest.java index da93539208..4f59c04ab3 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark.tests/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.commonmark.internal.inlines; @@ -25,7 +26,7 @@ import org.eclipse.mylyn.wikitext.parser.Locator; import org.junit.Test; -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class InlineTest { @Test diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineParser.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineParser.java index adea9c47dd..cf9810b44e 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineParser.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/InlineParser.java @@ -101,7 +101,7 @@ public void characters(String text) { @Override public void entityReference(String entity) { stringBuilder - .append(Objects.requireNonNullElse(EntityReferences.instance().equivalentString(entity), "")); + .append(Objects.requireNonNullElse(EntityReferences.instance().equivalentString(entity), "")); //$NON-NLS-1$ } }; for (Inline inline : contents) { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.confluence.tests/src/test/java/org/eclipse/mylyn/wikitext/confluence/internal/tests/ConfluenceDocumentBuilderTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.confluence.tests/src/test/java/org/eclipse/mylyn/wikitext/confluence/internal/tests/ConfluenceDocumentBuilderTest.java index ac4f3fcbc8..3d0c4d7b67 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.confluence.tests/src/test/java/org/eclipse/mylyn/wikitext/confluence/internal/tests/ConfluenceDocumentBuilderTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.confluence.tests/src/test/java/org/eclipse/mylyn/wikitext/confluence/internal/tests/ConfluenceDocumentBuilderTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.confluence.internal.tests; @@ -31,7 +32,7 @@ * @author David Green * @see ConfluenceDocumentBuilder */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class ConfluenceDocumentBuilderTest { private final StringWriter out = new StringWriter(); diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/AbstractCreoleDocumentBuilderTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/AbstractCreoleDocumentBuilderTest.java index afc4a93f4e..fa577e5165 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/AbstractCreoleDocumentBuilderTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/AbstractCreoleDocumentBuilderTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -25,7 +26,6 @@ /** * @author Kevin de Vlaming */ -@SuppressWarnings("restriction") public abstract class AbstractCreoleDocumentBuilderTest { protected DocumentBuilder builder; diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderBlockTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderBlockTest.java index 9b18091ac0..41dd9dc2b5 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderBlockTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderBlockTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -25,7 +26,7 @@ * @see http://www.wikicreole.org/wiki/Elements * @author Kevin de Vlaming */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class CreoleDocumentBuilderBlockTest extends AbstractCreoleDocumentBuilderTest { @Test public void testParagraph() { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderLinkImageTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderLinkImageTest.java index ecb88a6030..18e5fa7ba7 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderLinkImageTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderLinkImageTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -25,7 +26,7 @@ * @see http://www.wikicreole.org/wiki/Elements * @author Kevin de Vlaming */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class CreoleDocumentBuilderLinkImageTest extends AbstractCreoleDocumentBuilderTest { @Test public void testLink() { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderListTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderListTest.java index 8b5999e3fe..e0278dce5f 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderListTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderListTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -25,7 +26,7 @@ * @see http://www.wikicreole.org/wiki/Elements * @author Kevin de Vlaming */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class CreoleDocumentBuilderListTest extends AbstractCreoleDocumentBuilderTest { @Test public void testListBulleted() { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderSpanTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderSpanTest.java index 879a986407..d7bbc03b3a 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderSpanTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderSpanTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -22,7 +23,7 @@ * @see http://www.wikicreole.org/wiki/Elements * @author Kevin de Vlaming */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class CreoleDocumentBuilderSpanTest extends AbstractCreoleDocumentBuilderTest { @Test public void testItalic() { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTableTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTableTest.java index b8cb787aa0..deb12e5c1f 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTableTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTableTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -26,7 +27,7 @@ * @see http://www.wikicreole.org/wiki/Elements * @author Kevin de Vlaming */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class CreoleDocumentBuilderTableTest extends AbstractCreoleDocumentBuilderTest { @Test public void testTableWithEmptyCells() { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTest.java index b634dd6c03..72f04dacad 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.creole.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/creole/tests/documentbuilder/CreoleDocumentBuilderTest.java @@ -10,6 +10,7 @@ * Contributors: * Kevin de Vlaming - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.creole.tests.documentbuilder; @@ -22,7 +23,7 @@ * @see http://www.wikicreole.org/wiki/Elements * @author Kevin de Vlaming */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class CreoleDocumentBuilderTest extends AbstractCreoleDocumentBuilderTest { @Test public void testLineBreak() { diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/BlockStrategiesTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/BlockStrategiesTest.java index 6ed7f9f28d..11267b414e 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/BlockStrategiesTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/BlockStrategiesTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.html.internal; @@ -27,7 +28,6 @@ import org.eclipse.mylyn.wikitext.parser.DocumentBuilder.BlockType; import org.junit.Test; -@SuppressWarnings("restriction") public class BlockStrategiesTest { @Test(expected = NullPointerException.class) diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/SpanStrategiesTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/SpanStrategiesTest.java index 7942346f15..31d287aa15 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/SpanStrategiesTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.html.tests/src/test/java/org/eclipse/mylyn/wikitext/html/internal/SpanStrategiesTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.html.internal; @@ -26,7 +27,7 @@ import org.eclipse.mylyn.wikitext.parser.DocumentBuilder.SpanType; import org.junit.Test; -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class SpanStrategiesTest { @Test(expected = NullPointerException.class) diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.markdown.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownDocumentBuilderTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.markdown.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownDocumentBuilderTest.java index 69622d67f7..8c07e42a1c 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.markdown.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownDocumentBuilderTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.markdown.tests/src/test/java/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownDocumentBuilderTest.java @@ -11,6 +11,7 @@ * Leo Dos Santos - initial API and implementation * Pierre-Yves B. - Bug 509033 - markdown misses support for ~~strike~~ * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.internal.wikitext.markdown.tests; @@ -33,7 +34,7 @@ * @see http://daringfireball.net/projects/markdown/syntax * @author Leo Dos Santos */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class MarkdownDocumentBuilderTest { private DocumentBuilder builder; diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.tests/src/test/java/org/eclipse/mylyn/wikitext/parser/tests/AttributesTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.tests/src/test/java/org/eclipse/mylyn/wikitext/parser/tests/AttributesTest.java index 0b8d9a35ab..25cdcd1fb1 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.tests/src/test/java/org/eclipse/mylyn/wikitext/parser/tests/AttributesTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.tests/src/test/java/org/eclipse/mylyn/wikitext/parser/tests/AttributesTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.parser.tests; @@ -20,7 +21,7 @@ import org.eclipse.mylyn.wikitext.parser.Attributes; import org.junit.Test; -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class AttributesTest { @Test diff --git a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.textile.tests/src/test/java/org/eclipse/mylyn/wikitext/textile/internal/tests/TextileTest.java b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.textile.tests/src/test/java/org/eclipse/mylyn/wikitext/textile/internal/tests/TextileTest.java index d1fe2c1eb7..d0f87f3918 100644 --- a/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.textile.tests/src/test/java/org/eclipse/mylyn/wikitext/textile/internal/tests/TextileTest.java +++ b/mylyn.docs/wikitext/core/org.eclipse.mylyn.wikitext.textile.tests/src/test/java/org/eclipse/mylyn/wikitext/textile/internal/tests/TextileTest.java @@ -10,6 +10,7 @@ * Contributors: * David Green - initial API and implementation * ArSysOp - ongoing support + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.textile.internal.tests; @@ -27,7 +28,7 @@ /** * @author David Green */ -@SuppressWarnings({ "nls", "restriction" }) +@SuppressWarnings("nls") public class TextileTest { @Test public void testExplicitHeaderStartsNewBlock() { diff --git a/mylyn.docs/wikitext/ui/org.eclipse.mylyn.wikitext.tasks.ui/src/org/eclipse/mylyn/wikitext/tasks/ui/editor/MarkupTaskEditorExtension.java b/mylyn.docs/wikitext/ui/org.eclipse.mylyn.wikitext.tasks.ui/src/org/eclipse/mylyn/wikitext/tasks/ui/editor/MarkupTaskEditorExtension.java index bdb528ae7d..12f10eb554 100644 --- a/mylyn.docs/wikitext/ui/org.eclipse.mylyn.wikitext.tasks.ui/src/org/eclipse/mylyn/wikitext/tasks/ui/editor/MarkupTaskEditorExtension.java +++ b/mylyn.docs/wikitext/ui/org.eclipse.mylyn.wikitext.tasks.ui/src/org/eclipse/mylyn/wikitext/tasks/ui/editor/MarkupTaskEditorExtension.java @@ -11,6 +11,7 @@ * David Green - initial API and implementation * Frank Becker - improvements for bug 304910 * Tasktop Technologies - improvements + * See git history *******************************************************************************/ package org.eclipse.mylyn.wikitext.tasks.ui.editor; @@ -74,7 +75,7 @@ * @since 1.0 */ public class MarkupTaskEditorExtension extends AbstractTaskEditorExtension - implements IAdaptable { +implements IAdaptable { private static final String MARKUP_SOURCE_CONTEXT_ID = "org.eclipse.mylyn.wikitext.tasks.ui.markupSourceContext"; //$NON-NLS-1$ @@ -147,8 +148,8 @@ public SourceViewer createViewer(TaskRepository taskRepository, Composite parent if (JFaceResources.getFontRegistry().hasValueFor(WikiTextTasksUiPlugin.FONT_REGISTRY_KEY_DEFAULT_FONT)) { markupViewer.getTextWidget() - .setFont( - JFaceResources.getFontRegistry().get(WikiTextTasksUiPlugin.FONT_REGISTRY_KEY_DEFAULT_FONT)); + .setFont( + JFaceResources.getFontRegistry().get(WikiTextTasksUiPlugin.FONT_REGISTRY_KEY_DEFAULT_FONT)); } if (JFaceResources.getFontRegistry().hasValueFor(WikiTextTasksUiPlugin.FONT_REGISTRY_KEY_MONOSPACE_FONT)) { markupViewer.setDefaultMonospaceFont( @@ -218,7 +219,6 @@ public SourceViewer createEditor(TaskRepository taskRepository, Composite parent return createEditor(taskRepository, parent, style, null); } - @SuppressWarnings("unchecked") @Override public SourceViewer createEditor(TaskRepository taskRepository, Composite parent, int style, IAdaptable context) { final MarkupLanguageType markupLanguageCopy = createRepositoryMarkupLanguage(taskRepository); @@ -348,7 +348,6 @@ protected boolean isIncluded(Annotation annotation) { }; } - @SuppressWarnings("unchecked") @Override protected Map getHyperlinkDetectorTargets(ISourceViewer sourceViewer) { Map hyperlinkDetectorTargets = super.getHyperlinkDetectorTargets(sourceViewer); @@ -400,7 +399,6 @@ public TaskMarkupViewerConfiguration(MarkupViewer viewer, TaskRepository taskRep markupHyperlinksFirst = false; } - @SuppressWarnings("unchecked") @Override protected Map getHyperlinkDetectorTargets(ISourceViewer sourceViewer) { Map hyperlinkDetectorTargets = super.getHyperlinkDetectorTargets(sourceViewer);