Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-2586: Small enhancements fixed in between #2587

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading