style: fix warnings
This commit is contained in:
@ -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 {
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user