style: fix warnings

This commit is contained in:
Clément Fournier
2022-07-23 00:54:56 +02:00
parent 019169d69d
commit 0781a261a2
5 changed files with 5 additions and 6 deletions

View File

@ -5,10 +5,10 @@
package net.sourceforge.pmd.lang.apex;
import net.sourceforge.pmd.lang.Language;
import net.sourceforge.pmd.lang.LanguageModuleBase;
import net.sourceforge.pmd.lang.LanguageProcessor;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.LanguageModuleBase;
public class ApexLanguageModule extends LanguageModuleBase {

View File

@ -5,10 +5,10 @@
package net.sourceforge.pmd.lang.java;
import net.sourceforge.pmd.lang.Language;
import net.sourceforge.pmd.lang.LanguageModuleBase;
import net.sourceforge.pmd.lang.LanguageProcessor;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.LanguageModuleBase;
import net.sourceforge.pmd.lang.java.internal.JavaLanguageProcessor;
import net.sourceforge.pmd.lang.java.internal.JavaLanguageProperties;

View File

@ -48,8 +48,7 @@ public class JavaLanguageProcessor extends BatchLanguageProcessor<JavaLanguagePr
}
public JavaLanguageProcessor(JavaLanguageProperties properties) {
this(properties, TypeSystem.usingClassLoaderClasspath(properties.getAnalysisClassLoader()));
this(properties, TypeSystem.usingClassLoaderClasspath(properties.getAnalysisClassLoader()));
}
@Override

View File

@ -68,7 +68,7 @@ public class JavaParsingHelper extends BaseParsingHelper<JavaParsingHelper, ASTC
@Override
protected @NonNull ASTCompilationUnit doParse(@NotNull LanguageProcessor processor, @NotNull Params params, @NotNull ParserTask task) {
@SuppressWarnings( { "PMD.CloseResource", "resource" })
@SuppressWarnings({ "PMD.CloseResource", "resource" })
JavaLanguageProcessor proc = (JavaLanguageProcessor) processor;
proc.setTypeSystem(ts);
JavaParser parser = proc.getParserWithoutProcessing();

View File

@ -7,11 +7,11 @@ package net.sourceforge.pmd.lang.scala;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.LanguageModuleBase;
import net.sourceforge.pmd.lang.LanguageProcessor;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.LanguageVersion;
import net.sourceforge.pmd.lang.LanguageModuleBase;
import net.sourceforge.pmd.processor.SimpleBatchLanguageProcessor;
import scala.meta.Dialect;