Skip to content

Commit

Permalink
GH-2586: Small enhancements fixed in between
Browse files Browse the repository at this point in the history
  • Loading branch information
mmews-n4 authored Dec 20, 2023
1 parent 3403473 commit 8999137
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/**
* Use this class to override bindings for the cli use case.
*/
@SuppressWarnings({ "javadoc" })
public class N4jscModule extends AbstractGenericModule {

// public Class<? extends DefaultBuildRequestFactory> bindDocumentExtensions() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public List<Either<Command, CodeAction>> getCodeActions(Options options) {
if (options.getCodeActionParams() != null && options.getCodeActionParams().getContext() != null) {
List<Diagnostic> diagnostics = options.getCodeActionParams().getContext().getDiagnostics();
for (Diagnostic diag : diagnostics) {
if (IssueCodes.NON_EXISTING_PROJECT.equals(diag.getCode().getLeft())) {
if (IssueCodes.NON_EXISTING_PROJECT.name().equals(diag.getCode().getLeft())) {
Command cmd = createInstallNpmCommand(options, diag);
if (cmd != null) {
result.add(Either.forLeft(cmd));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/
public class N4LanguageUtils {

@SuppressWarnings("javadoc")
public static final class ParseResult<T extends EObject> {
/** The AST. May be <code>null</code> in case of error. */
public final T ast;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import com.google.inject.AbstractModule;

@SuppressWarnings({ "javadoc", "restriction" })
@SuppressWarnings("restriction")
public class SerializerPatchModule extends AbstractModule {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
public class N4jscTestFactory extends N4jscFactory {

/** An {@link N4jscFactory} and related global state. */
@SuppressWarnings("javadoc")
public static final class State {
public final N4jscFactory n4jscFactory;
public final GlobalStateMemento globalState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public N4JSInjectorProviderWithIndex() {
super(new EagerResourceSetModule());
}

@SuppressWarnings("javadoc")
public static class EagerResourceSetModule extends BaseTestModule {
public Class<? extends IResourceDescriptions> bindResourceDescriptions() {
return EagerResourceSetBasedResourceDescriptions.class;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Test two cases of projects with the same project name within a yarn setup
*/
@SuppressWarnings({ "javadoc", "unchecked" })
@SuppressWarnings("unchecked")
public class YarnProjectDuplicateNames extends AbstractIncrementalBuilderTest {

private static Map<String, Map<String, String>> testData1 = Map.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* Performance test for resource description implementations.
*/
@Ignore("TODO Implement a way to make this a real test with assertions on the timing")
@SuppressWarnings({ "javadoc", "restriction" })
@SuppressWarnings("restriction")
public class ChunkedResourceDescriptionsTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public void testMethodRenamedInSuperClassOfClassThatIsUsedToCallTheMethod() thro
* 07. Brother should have no error markers
*/
//@formatter:on
@SuppressWarnings("resource")
@Test
// TODO: while running there is a java.lang.IndexOutOfBoundsException: Index: 2, Size: 0 at at
// org.eclipse.n4js.resource.N4JSResource.getEncodedURI(N4JSResource.java:446)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/
package org.eclipse.n4js.tests.dirtystate.testdata;

@SuppressWarnings("unused")
public class StaticTestFiles {

public static String moduleFolder() {
Expand Down

0 comments on commit 8999137

Please sign in to comment.