From b79af9351009369d7ac99f16fb0a54364b68dee8 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Thu, 11 Sep 2025 09:13:33 -0400 Subject: [PATCH] Follow Oracle javadoc guidelines --- .../plugin/failsafe/IntegrationTestMojo.java | 4 +- .../maven/plugin/failsafe/VerifyMojo.java | 3 +- .../plugin/surefire/AbstractSurefireMojo.java | 34 +++---- .../surefire/SurefireExecutionParameters.java | 2 +- .../maven/plugin/surefire/SurefireHelper.java | 4 +- .../plugin/surefire/SurefireProperties.java | 6 +- .../booterclient/BooterSerializer.java | 2 +- .../DefaultForkConfiguration.java | 2 +- .../booterclient/ForkConfiguration.java | 2 +- .../booterclient/ForkNumberBucket.java | 6 +- .../surefire/booterclient/ForkStarter.java | 2 +- .../JarManifestForkConfiguration.java | 6 +- .../lazytestprovider/Commandline.java | 2 +- .../DefaultCommandReader.java | 3 +- .../NotifiableTestStream.java | 2 +- .../lazytestprovider/TestLessInputStream.java | 2 +- .../TestProvidingInputStream.java | 2 +- .../output/DeserializedStacktraceWriter.java | 2 +- .../booterclient/output/ForkClient.java | 2 +- .../output/ForkedProcessEventNotifier.java | 2 +- .../ForkedProcessReportEventListener.java | 2 +- .../output/NativeStdErrStreamConsumer.java | 2 +- .../output/ThreadedStreamConsumer.java | 3 - .../extensions/EventConsumerThread.java | 3 - .../extensions/SurefireStatelessReporter.java | 2 + .../junit5/JUnit5ConsoleOutputReporter.java | 1 + .../junit5/JUnit5Xml30StatelessReporter.java | 1 + .../surefire/log/PluginConsoleLogger.java | 2 +- .../report/DefaultReporterFactory.java | 4 +- .../surefire/report/FileReporterUtils.java | 2 +- .../surefire/report/ReportEntryType.java | 3 +- .../surefire/report/StatelessXmlReporter.java | 18 ++-- .../surefire/report/TestMethodStats.java | 2 - .../surefire/report/TestSetRunListener.java | 2 +- .../surefire/util/DependencyScanner.java | 1 - .../maven/plugin/surefire/util/Relocator.java | 2 +- .../surefire/util/SpecificFileFilter.java | 3 +- .../surefire/providerapi/ServiceLoader.java | 6 +- .../maven/surefire/stream/CommandEncoder.java | 3 - .../maven/surefire/stream/EventDecoder.java | 3 - .../report/AbstractSurefireReport.java | 88 +++++++++++++------ .../surefire/report/FailsafeOnlyReport.java | 2 + .../surefire/report/PluginConsoleLogger.java | 2 +- .../surefire/report/SurefireReport.java | 2 + .../report/SurefireReportRenderer.java | 18 ++-- .../maven/surefire/api/booter/BiProperty.java | 2 +- .../maven/surefire/api/booter/Constants.java | 3 - .../surefire/api/cli/CommandLineOption.java | 2 +- .../api/event/AbstractTestControlEvent.java | 2 +- .../api/filter/SpecificTestClassFilter.java | 3 +- .../api/provider/AbstractProvider.java | 2 +- .../api/provider/ProviderParameters.java | 38 ++++---- .../api/provider/SurefireProvider.java | 10 +-- .../surefire/api/report/ReportEntry.java | 28 +++--- .../api/report/ReporterConfiguration.java | 6 +- .../surefire/api/report/ReporterFactory.java | 2 +- .../api/report/ReporterFactoryOptions.java | 2 +- .../surefire/api/report/RunListener.java | 28 +++--- .../surefire/api/report/SafeThrowable.java | 2 +- .../api/report/TestOutputReceiver.java | 2 +- .../api/report/TestOutputReportEntry.java | 4 +- .../maven/surefire/api/runorder/Priority.java | 4 +- .../api/stream/AbstractStreamDecoder.java | 11 +-- .../api/stream/AbstractStreamEncoder.java | 1 + .../api/stream/MalformedChannelException.java | 3 - .../surefire/api/stream/SegmentType.java | 3 - .../testset/DirectoryScannerParameters.java | 6 +- .../surefire/api/testset/ResolvedTest.java | 5 +- .../api/testset/TestArtifactInfo.java | 2 +- .../api/testset/TestListResolver.java | 3 +- .../surefire/api/testset/TestRequest.java | 8 +- .../api/testset/TestSetFailedException.java | 6 +- .../surefire/api/util/CloseableIterator.java | 3 +- .../api/util/DefaultRunOrderCalculator.java | 2 +- .../surefire/api/util/DirectoryScanner.java | 8 +- .../maven/surefire/api/util/RunOrder.java | 2 +- .../surefire/api/util/ScannerFilter.java | 6 +- .../api/util/SurefireReflectionException.java | 2 +- .../surefire/api/util/TempFileManager.java | 1 + .../maven/surefire/api/util/TestsToRun.java | 12 +-- .../util/internal/DaemonThreadFactory.java | 1 + .../api/util/internal/StringUtils.java | 4 +- .../booter/AbstractPathConfiguration.java | 4 +- .../surefire/booter/BooterConstants.java | 2 +- .../surefire/booter/BooterDeserializer.java | 2 +- .../maven/surefire/booter/Classpath.java | 2 +- .../booter/ClasspathConfiguration.java | 2 +- .../maven/surefire/booter/CommandReader.java | 6 +- .../maven/surefire/booter/ForkedBooter.java | 4 +- .../maven/surefire/booter/ForkedNodeArg.java | 3 - .../surefire/booter/IsolatedClassLoader.java | 2 +- .../maven/surefire/booter/KeyValueSource.java | 2 +- .../maven/surefire/booter/LazyTestsToRun.java | 7 +- .../booter/ModularClasspathConfiguration.java | 2 +- .../maven/surefire/booter/PpidChecker.java | 2 +- .../surefire/booter/ProcessCheckerType.java | 3 - .../surefire/booter/PropertiesWrapper.java | 6 +- .../surefire/booter/SurefireReflector.java | 2 +- .../booter/SystemPropertyManager.java | 8 +- .../maven/surefire/booter/SystemUtils.java | 6 +- .../booter/spi/CommandChannelDecoder.java | 2 +- .../booter/spi/EventChannelEncoder.java | 2 +- .../booter/stream/CommandDecoder.java | 3 - .../surefire/booter/stream/EventEncoder.java | 3 - .../extensions/ConsoleOutputReporter.java | 2 +- .../surefire/extensions/ForkChannel.java | 10 +-- .../StatelessReportEventListener.java | 3 +- .../extensions/StatelessReporter.java | 4 +- ...TestsetInfoConsoleReportEventListener.java | 2 +- ...essTestsetInfoFileReportEventListener.java | 2 +- .../StatelessTestsetInfoReporter.java | 2 +- .../extensions/util/CommandlineExecutor.java | 4 +- .../extensions/util/CommandlineStreams.java | 3 - .../extensions/util/LineConsumerThread.java | 3 - .../MasterProcessChannelProcessorFactory.java | 2 + .../surefire/group/match/AndGroupMatcher.java | 3 +- .../surefire/group/match/GroupMatcher.java | 3 +- .../group/match/InverseGroupMatcher.java | 3 +- .../group/match/JoinGroupMatcher.java | 3 +- .../surefire/group/match/OrGroupMatcher.java | 3 +- .../group/match/SingleGroupMatcher.java | 3 +- .../maven/plugin/surefire/log/api/Level.java | 8 +- .../surefire/report/NullStackTraceFilter.java | 2 +- .../common/junit3/JUnit3Reflector.java | 3 +- .../common/junit4/JUnit4ProviderUtil.java | 7 +- .../common/junit4/JUnit4Reflector.java | 3 +- .../common/junit4/JUnit4RunListener.java | 3 +- .../junit4/JUnitTestFailureListener.java | 2 +- .../common/junit48/FilterFactory.java | 2 +- .../common/junit48/JUnit48TestChecker.java | 3 +- .../junitplatform/RunListenerAdapter.java | 4 +- .../surefire/junit/JUnitTestSetExecutor.java | 3 +- .../surefire/junit/PojoTestSetExecutor.java | 3 +- .../junit/SurefireTestSetExecutor.java | 3 +- .../junit/TestListenerInvocationHandler.java | 1 - .../junitcore/ConcurrentRunListener.java | 4 +- .../maven/surefire/junitcore/JUnitCore.java | 2 +- .../junitcore/JUnitCoreParameters.java | 2 +- .../junitcore/JUnitCoreRunListener.java | 2 +- .../surefire/junitcore/JUnitCoreWrapper.java | 2 +- .../surefire/junitcore/LogicalStream.java | 2 +- .../maven/surefire/junitcore/TestMethod.java | 2 +- .../maven/surefire/junitcore/pc/Balancer.java | 2 +- .../junitcore/pc/BalancerFactory.java | 7 +- .../junitcore/pc/ParallelComputerBuilder.java | 4 +- .../surefire/junitcore/pc/Scheduler.java | 17 ++-- .../junitcore/pc/SchedulingStrategy.java | 13 +-- .../junitcore/pc/ThreadResourcesBalancer.java | 2 +- .../utils/GroupMatcherMethodSelector.java | 1 - .../surefire/testng/utils/MethodSelector.java | 2 +- .../ConfigurationAwareTestNGReporter.java | 2 +- .../maven/surefire/testng/TestNGExecutor.java | 4 +- .../maven/surefire/testng/TestNGReporter.java | 8 +- .../conf/AbstractDirectConfigurator.java | 6 +- .../surefire/testng/conf/Configurator.java | 3 +- .../testng/conf/TestNG740Configurator.java | 2 +- .../surefire/report/ReportTestCase.java | 3 - .../surefire/report/ReportTestSuite.java | 3 - .../surefire/report/SurefireReportParser.java | 5 +- .../surefire/report/TestSuiteXmlParser.java | 3 - 160 files changed, 378 insertions(+), 398 deletions(-) diff --git a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java index a15301ef46..f6a881dc3f 100644 --- a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java +++ b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java @@ -135,7 +135,7 @@ public class IntegrationTestMojo extends AbstractSurefireMojo { * "true". * * @since 2.12 - * @deprecated Since 3.0.0-M8, use "failsafe.failIfNoSpecifiedTests" instead. + * @deprecated since 3.0.0-M8, use "failsafe.failIfNoSpecifiedTests" instead */ @Deprecated @Parameter(property = "it.failIfNoSpecifiedTests", defaultValue = "true") @@ -667,7 +667,7 @@ public void setTestClassesDirectory(File testClassesDirectory) { } /** - * @return Output directory, or artifact file if artifact type is "jar". If not forking the JVM, parameter + * @return output directory, or artifact file if artifact type is "jar". If not forking the JVM, parameter * {@link #useSystemClassLoader} is ignored and the {@link org.apache.maven.surefire.booter.IsolatedClassLoader} is * used instead. See the resolution of {@link #getClassLoaderConfiguration() ClassLoaderConfiguration}. */ diff --git a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java index e53f4073e5..1d499e6049 100644 --- a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java +++ b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java @@ -75,7 +75,7 @@ public class VerifyMojo extends AbstractMojo implements SurefireReportParameters * This old parameter is just like skipTests, but bound to the old property maven.test.skip.exec. * * @since 2.3 - * @deprecated Use -DskipTests instead. + * @deprecated use -DskipTests instead */ @Deprecated @Parameter(property = "maven.test.skip.exec") @@ -124,6 +124,7 @@ public class VerifyMojo extends AbstractMojo implements SurefireReportParameters /** * Additional summary files to read integration test results from. + * * @since 2.6 */ @Parameter diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index f7ffb6581a..a6f58e955a 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java @@ -203,7 +203,7 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref * This old parameter is just like {@code skipTests}, but bound to the old property "maven.test.skip.exec". * * @since 2.3 - * @deprecated Use skipTests instead. + * @deprecated use skipTests instead */ @Deprecated @Parameter(property = "maven.test.skip.exec") @@ -249,6 +249,7 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref * The matching algorithm is described in detail in Advanced Artifact-Matching for the maven-assembly-plugin. This parameter behaves the same as the {@code excludes} pattern described there. * The dependency matching is applied to the project dependency IDs (including transitive ones) after resolving, i.e. excluding * one dependency will not exclude its transitive dependencies! + * * @since 2.6 */ @Parameter(property = "maven.test.dependency.excludes") @@ -313,8 +314,8 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref /** * List of System properties to pass to a provider. * - * @deprecated Use {@link #systemPropertyVariables} instead. * @see #systemPropertyVariables {@code systemPropertyVariables} for how the effective provider properties are calculated + * @deprecated use {@link #systemPropertyVariables} instead */ @Deprecated @Parameter @@ -342,8 +343,8 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref *
  • {@code line.separator}
  • * * - * @since 2.5 * @see #systemProperties + * @since 2.5 */ @Parameter Map systemPropertyVariables; @@ -352,8 +353,8 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref * If set to {@code true} will also pass all user properties exposed via {@link MavenSession#getUserProperties()} as system properties to a provider. * Those always take precedence over same named system properties set via any other means. * - * @since 3.4.0 * @see #systemPropertyVariables + * @since 3.4.0 */ @Parameter(defaultValue = "true") boolean promoteUserPropertiesToSystemProperties; @@ -376,6 +377,7 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref * {@literal methods} * {@literal } * {@literal } + * * @since 2.4 */ @Parameter @@ -705,8 +707,9 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref /** * Flag to disable the generation of report files in xml format. * Deprecated since 3.0.0-M4. - * @deprecated Instead use disable within {@code statelessTestsetReporter} since of 3.0.0-M6. + * * @since 2.2 + * @deprecated instead use disable within {@code statelessTestsetReporter} since of 3.0.0-M6 */ @Deprecated // todo make readonly to handle system property @Parameter(property = "disableXmlReport") @@ -763,6 +766,7 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref /** * Read-only parameter with value of Maven property project.build.directory. + * * @since 2.20 */ @Parameter(defaultValue = "${project.build.directory}", readonly = true, required = true) @@ -835,9 +839,6 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref @Parameter private Map jdkToolchain; - /** - * - */ @Component private ToolchainManager toolchainManager; @@ -874,7 +875,7 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref protected abstract List suiteXmlFiles(); /** - * @return {@code true} if {@link #getSuiteXmlFiles() suite-xml files array} is not empty. + * @return {@code true} if {@link #getSuiteXmlFiles() suite-xml files array} is not empty */ protected abstract boolean hasSuiteXmlFiles(); @@ -1926,6 +1927,7 @@ private static Classpath createInProcClasspath(Classpath providerClasspath, Set< /** * For testing purposes - Mockito. + * * @return plexus component */ private LocationManager getLocationManager() { @@ -2140,6 +2142,7 @@ private List getExcludeList() throws MojoFailureException { /** * Computes a merge list of test exclusions. * Used only in {@link #getExcludeList()} and {@link #getExcludedScanList()}. + * * @param asScanList true if dependency or directory scanner * @return list of patterns * @throws MojoFailureException if the excludes breaks a pattern format @@ -2182,6 +2185,7 @@ private List getIncludeList() throws MojoFailureException { /** * Computes a merge list of test inclusions. * Used only in {@link #getIncludeList()} and {@link #getIncludedScanList()}. + * * @param asScanList true if dependency or directory scanner * @return list of patterns * @throws MojoFailureException if the includes breaks a pattern format @@ -2544,9 +2548,9 @@ private JdkAttributes getEffectiveJvm() throws MojoFailureException { } /** - * Where surefire stores its own temp files + * Where surefire stores its own temp files. * - * @return A file pointing to the location of surefire's own temp files + * @return a file pointing to the location of surefire's own temp files */ File getSurefireTempDir() { File result = IS_OS_WINDOWS ? createSurefireBootDirectoryInTemp() : createSurefireBootDirectoryInBuild(); @@ -2565,7 +2569,7 @@ File getSurefireTempDir() { /** * Operates on raw plugin parameters, not the "effective" values. * - * @return The checksum + * @return the checksum */ private String getConfigChecksum() { ChecksumCalculator checksum = new ChecksumCalculator(); @@ -2754,9 +2758,9 @@ protected Collection resolveDependencies(List dependencies /** * Return a new set containing only the artifacts not accepted by the given filter. * - * @param artifacts The unfiltered artifacts - * @param filter The excludes filter to apply - * @return The filtered result + * @param artifacts the unfiltered artifacts + * @param filter the excludes filter to apply + * @return the filtered result */ private static Set filterArtifacts(Set artifacts, ArtifactFilter filter) { Set filteredArtifacts = new LinkedHashSet<>(); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireExecutionParameters.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireExecutionParameters.java index d69cb88287..a8ff82ef9c 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireExecutionParameters.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireExecutionParameters.java @@ -22,7 +22,7 @@ import java.util.List; /** - * This interface contains all the common parameters that have different implementations in Surefire vs IntegrationTest + * This interface contains all the common parameters that have different implementations in Surefire vs IntegrationTest. * * @author Stephen Connolly */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java index 6285506c73..bd3e082e7e 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java @@ -49,7 +49,7 @@ import static org.apache.maven.surefire.shared.lang3.SystemUtils.IS_OS_WINDOWS; /** - * Helper class for surefire plugins + * Helper class for surefire plugins. */ public final class SurefireHelper { private static final String DUMP_FILE_DATE = newFormattedDateFileName(); @@ -95,7 +95,7 @@ public final class SurefireHelper { /** * The placeholder that is replaced by the executing fork's running number. The fork number - * range starts with 1 + * range starts with 1. */ private static final String FORK_NUMBER_PLACEHOLDER = "${surefire.forkNumber}"; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireProperties.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireProperties.java index 6aeef18f00..0424ff8942 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireProperties.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireProperties.java @@ -102,7 +102,8 @@ public synchronized Enumeration keys() { } /** - * Copies all keys and values from source to these properties, overwriting existing properties with same name + * Copies all keys and values from source to these properties, overwriting existing properties with same name. + * * @param source * @return all overwritten property names (may be empty if there was no property name clash) */ @@ -115,7 +116,8 @@ public Collection copyPropertiesFrom(Properties source) { } /** - * Copies all keys and values from source to these properties, overwriting existing properties with same name + * Copies all keys and values from source to these properties, overwriting existing properties with same name. + * * @param source * @return all overwritten property names (may be empty if there was no property name clash) */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java index 2dbc27b300..61b08676ca 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java @@ -97,7 +97,7 @@ class BooterSerializer { } /** - * Does not modify sourceProperties + * Does not modify sourceProperties. */ File serialize( KeyValueSource sourceProperties, diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/DefaultForkConfiguration.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/DefaultForkConfiguration.java index d78f6807d6..a8517504b0 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/DefaultForkConfiguration.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/DefaultForkConfiguration.java @@ -139,7 +139,7 @@ public final ForkNodeFactory getForkNodeFactory() { } /** - * @param config The startup configuration + * @param config the startup configuration * @param forkNumber index of forked JVM, to be the replacement in the argLine * @param dumpLogDirectory directory for dump log file * @return CommandLine able to flush entire command going to be sent to forked JVM diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java index f5b37ede3d..65c719f8f6 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java @@ -79,7 +79,7 @@ public abstract class ForkConfiguration { protected abstract Classpath getBooterClasspath(); /** - * @param config The startup configuration + * @param config the startup configuration * @param forkNumber index of forked JVM, to be the replacement in the argLine * @param dumpLogDirectory directory for dump log file * @return CommandLine able to flush entire command going to be sent to forked JVM diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java index dde528456c..b3690bb5dd 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java @@ -36,7 +36,7 @@ public final class ForkNumberBucket { private final AtomicInteger highWaterMark = new AtomicInteger(1); /** - * Non-public constructor + * Non-public constructor. */ private ForkNumberBucket() {} @@ -49,7 +49,7 @@ public static int drawNumber() { } /** - * @param number the number to return to the bucket so that it can be reused. + * @param number the number to return to the bucket so that it can be reused */ public static void returnNumber(int number) { getInstance().returnNumberInternal(number); @@ -79,7 +79,7 @@ private int getHighestDrawnNumber() { } /** - * @param number the number to return to the bucket so that it can be reused. + * @param number the number to return to the bucket so that it can be reused */ private void returnNumberInternal(int number) { qFree.add(number); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java index c612861eb8..5b85a6436f 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java @@ -112,7 +112,7 @@ *
    * Lives only on the plugin-side (not present in remote vms) *
    - * Knows how to fork new vms and also how to delegate non-forking invocation to SurefireStarter directly + * Knows how to fork new vms and also how to delegate non-forking invocation to SurefireStarter directly. * * @author Jason van Zyl * @author Emmanuel Venisse diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java index a13de8fb86..4bd12a3630 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java @@ -116,10 +116,10 @@ protected void resolveClasspath( * Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry * for all classpath elements. * - * @param classPath List<String> of all classpath elements. - * @param startClassName The class name to start (main-class) + * @param classPath List<String> of all classpath elements + * @param startClassName the class name to start (main-class) * @return file of the jar - * @throws IOException When a file operation fails. + * @throws IOException when a file operation fails */ @Nonnull private File createJar( diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/Commandline.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/Commandline.java index 651e80ca3f..437f92f97c 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/Commandline.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/Commandline.java @@ -38,7 +38,7 @@ public class Commandline extends org.apache.maven.surefire.shared.utils.cli.Comm private final Set addedEnvironmentVariables; /** - * for testing purposes only + * For testing purposes only. */ public Commandline() { this(new String[0]); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/DefaultCommandReader.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/DefaultCommandReader.java index 42e3391bf0..953323d5b3 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/DefaultCommandReader.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/DefaultCommandReader.java @@ -26,12 +26,13 @@ * Reader stream sends commands to forked jvm std-{@link java.io.InputStream input-stream}. * * @author Tibor Digana (tibor17) - * @since 2.19 * @see Command + * @since 2.19 */ public abstract class DefaultCommandReader extends AbstractCommandReader { /** * Opposite to {@link #isClosed()}. + * * @return {@code true} if not closed */ protected boolean canContinue() { diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/NotifiableTestStream.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/NotifiableTestStream.java index d12f3eddf9..56b0e792df 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/NotifiableTestStream.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/NotifiableTestStream.java @@ -29,9 +29,9 @@ * throw {@link UnsupportedOperationException}. * * @author Tibor Digana (tibor17) - * @since 2.19 * @see TestProvidingInputStream * @see TestLessInputStream + * @since 2.19 */ public interface NotifiableTestStream { /** diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestLessInputStream.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestLessInputStream.java index 7b9aa3a0e4..04a2c736e3 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestLessInputStream.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestLessInputStream.java @@ -203,7 +203,7 @@ public NotifiableTestStream getImmediateCommands() { * {@link NotifiableTestStream#skipSinceNextTest()} are supported. * Another methods throw {@link UnsupportedOperationException}. * - * @return commands which are cached for currently alive or future forks. + * @return commands which are cached for currently alive or future forks */ public NotifiableTestStream getCachableCommands() { return cachableCommands; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java index 99b358afad..3432307fcc 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java @@ -55,7 +55,7 @@ public final class TestProvidingInputStream extends DefaultCommandReader { private final Queue testClassNames; /** - * C'tor + * C'tor. * * @param testClassNames source of the tests to be read from this stream */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/DeserializedStacktraceWriter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/DeserializedStacktraceWriter.java index 7ac2bb8761..f67faa0bc7 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/DeserializedStacktraceWriter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/DeserializedStacktraceWriter.java @@ -25,7 +25,7 @@ * Represents a deserialize stacktracewriter that has been * marshalled across to the plugin from the fork. *
    - * Might be better to represent this whole thing differently + * Might be better to represent this whole thing differently. * * @author Kristian Rosenvold */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java index cecc271c6e..7ea282efd0 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java @@ -349,7 +349,7 @@ public Map getTestVmSystemProperties() { * Used when getting reporters on the plugin side of a fork. * Used by testing purposes only. May not be volatile variable. * - * @return A mock provider reporter + * @return a mock provider reporter */ public RunListener getReporter() { return getTestSetReporter(); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java index a3cedd0350..bccc0b987d 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java @@ -53,7 +53,7 @@ import static org.apache.maven.surefire.api.booter.ForkedProcessEventType.BOOTERCODE_TEST_SUCCEEDED; /** - * magic number : run mode : opcode [: opcode specific data]* + * Magic number : run mode : opcode [: opcode specific data]* * * @author Tibor Digana (tibor17) * @since 3.0.0-M4 diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessReportEventListener.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessReportEventListener.java index ec25a31004..2714927215 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessReportEventListener.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessReportEventListener.java @@ -22,8 +22,8 @@ /** * @author Tibor Digana (tibor17) - * @since 3.0.0-M4 * @param report entry type + * @since 3.0.0-M4 */ public interface ForkedProcessReportEventListener { void handle(T reportEntry); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java index 9b7fd7e99a..11b3340489 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/NativeStdErrStreamConsumer.java @@ -27,8 +27,8 @@ * see {@link org.apache.maven.plugin.surefire.booterclient.ForkStarter}. * * @author Tibor Digana (tibor17) - * @since 2.20 * @see org.apache.maven.plugin.surefire.booterclient.ForkStarter + * @since 2.20 */ public final class NativeStdErrStreamConsumer implements EventHandler { private final Object errStreamLock; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java index 7e1cdc5e22..658b6da289 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ThreadedStreamConsumer.java @@ -156,9 +156,6 @@ private static boolean shouldStopQueueing(Event item) { return item == END_ITEM; } - /** - * - */ private static class FinalEvent extends Event { FinalEvent() { super(null); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/EventConsumerThread.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/EventConsumerThread.java index cac48b67a8..6716ca5193 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/EventConsumerThread.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/EventConsumerThread.java @@ -34,9 +34,6 @@ import org.apache.maven.surefire.extensions.util.CountdownCloseable; import org.apache.maven.surefire.stream.EventDecoder; -/** - * - */ public class EventConsumerThread extends CloseableDaemonThread { private final ReadableByteChannel channel; private final EventHandler eventHandler; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/SurefireStatelessReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/SurefireStatelessReporter.java index 26b4164846..0f0d4ca0d7 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/SurefireStatelessReporter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/SurefireStatelessReporter.java @@ -33,6 +33,7 @@ * The listener handles testSetCompleted event. * * author Tibor Digana (tibor17) + * * @since 3.0.0-M4 */ public class SurefireStatelessReporter @@ -46,6 +47,7 @@ public SurefireStatelessReporter() { /** * Activated if null injection point in MOJO. + * * @param disable {@code true} to disable performing the report * @param version version of the schema */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5ConsoleOutputReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5ConsoleOutputReporter.java index a5290eab1e..da0ff3ce83 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5ConsoleOutputReporter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5ConsoleOutputReporter.java @@ -29,6 +29,7 @@ * Selectively enables report files upon JUnit5 annotation DisplayName. * * author Tibor Digana (tibor17) + * * @since 3.0.0-M4 */ public class JUnit5ConsoleOutputReporter extends SurefireConsoleOutputReporter { diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5Xml30StatelessReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5Xml30StatelessReporter.java index e6cc39d563..d6719da269 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5Xml30StatelessReporter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/extensions/junit5/JUnit5Xml30StatelessReporter.java @@ -30,6 +30,7 @@ * Selectively enables phrased classes, methods and report files upon JUnit5 annotation DisplayName. * * author Tibor Digana (tibor17) + * * @since 3.0.0-M4 */ public class JUnit5Xml30StatelessReporter extends SurefireStatelessReporter { diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/log/PluginConsoleLogger.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/log/PluginConsoleLogger.java index 15640eb6c4..5a621b532f 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/log/PluginConsoleLogger.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/log/PluginConsoleLogger.java @@ -29,8 +29,8 @@ * {@link org.apache.maven.plugin.surefire.report.TestSetRunListener}. * * @author Tibor Digana (tibor17) - * @since 2.20 * @see ConsoleLogger + * @since 2.20 */ public final class PluginConsoleLogger implements ConsoleLogger { private final Logger logger; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java index f95c061abc..f8fbc7024a 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java @@ -201,7 +201,7 @@ public RunStatistics getGlobalRunStatistics() { /** * Get the result of a test based on all its runs. If it has success and failures/errors, then it is a flake; - * if it only has errors or failures, then count its result based on its first run + * if it only has errors or failures, then count its result based on its first run. * * @param reportEntries the list of test run report type for a given test * @param rerunFailingTestsCount configured rerun count for failing tests @@ -309,7 +309,7 @@ private void mergeTestHistoryResult() { /** * Print failed tests and flaked tests. A test is considered as a failed test if it failed/got an error with - * all the runs. If a test passes in ever of the reruns, it will be count as a flaked test + * all the runs. If a test passes in ever of the reruns, it will be count as a flaked test. * * @param type the type of results to be printed, could be error, failure or flake * @return {@code true} if printed some lines diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/FileReporterUtils.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/FileReporterUtils.java index fb54edaeb5..3b693134e8 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/FileReporterUtils.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/FileReporterUtils.java @@ -21,7 +21,7 @@ import static org.apache.maven.surefire.shared.lang3.SystemUtils.IS_OS_WINDOWS; /** - * Utils class for file-based reporters + * Utils class for file-based reporters. * * @author Andreas Gudian */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ReportEntryType.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ReportEntryType.java index 8fb31be2b0..4371482ddf 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ReportEntryType.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ReportEntryType.java @@ -19,8 +19,7 @@ package org.apache.maven.plugin.surefire.report; /** - * Type of an entry in the report - * + * Type of an entry in the report. */ public enum ReportEntryType { ERROR("error", "flakyError", "rerunError"), diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java index 05b5059de6..69ed4ab487 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java @@ -349,14 +349,14 @@ private void serializeTestClassWithRerun( } /** - * Clean testClassMethodRunHistoryMap + * Clean testClassMethodRunHistoryMap. */ public void cleanTestHistoryMap() { testClassMethodRunHistoryMap.clear(); } /** - * Get the result of a test from a list of its runs in WrappedReportEntry + * Get the result of a test from a list of its runs in WrappedReportEntry. * * @param methodEntryList the list of runs for a given test * @return the TestResultType for the given test @@ -535,7 +535,7 @@ private static void addOutputStreamElement( * Adds system properties to the XML report. *
    * - * @param xmlWriter The test suite to report to + * @param xmlWriter the test suite to report to */ private static void showProperties(XMLWriter xmlWriter, Map systemProperties) throws IOException { xmlWriter.startElement("properties"); @@ -561,8 +561,8 @@ private static void showProperties(XMLWriter xmlWriter, Map syst /** * Handle stuff that may pop up in java that is not legal in xml. * - * @param message The string - * @return The escaped string or returns itself if all characters are legal + * @param message the string + * @return the escaped string or returns itself if all characters are legal */ private static String extraEscapeAttribute(String message) { // Someday convert to xml 1.1 which handles everything but 0 inside string @@ -572,7 +572,7 @@ private static String extraEscapeAttribute(String message) { /** * Writes escaped string or the message within CDATA if all characters are legal. * - * @param message The string + * @param message the string */ private static void extraEscapeElementValue( String message, OutputStreamWriter outputStreamWriter, XMLWriter xmlWriter, OutputStream fw) @@ -665,11 +665,11 @@ private static boolean isIllegalEscape(int c) { } /** - * escape for XML 1.0 + * Escape for XML 1.0. * - * @param text The string + * @param text the string * @param attribute true if the escaped value is inside an attribute - * @return The escaped string + * @return the escaped string */ private static String escapeXml(String text, boolean attribute) { StringBuilder sb = new StringBuilder(text.length() * 2); diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestMethodStats.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestMethodStats.java index d3abb53a79..8357272348 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestMethodStats.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestMethodStats.java @@ -21,11 +21,9 @@ import org.apache.maven.surefire.api.report.StackTraceWriter; /** - * * Maintains per-thread test result state for a single test method. * * @author Qingzhou Luo - * */ public class TestMethodStats { private final String testClassMethodName; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java index 6e79c05011..3879ef54d6 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java @@ -51,7 +51,7 @@ public class TestSetRunListener implements TestReportListener testMethodStats = new ConcurrentLinkedQueue<>(); /** - * will be used only if report entry have a sourceName other than that #currentTestSetStats will be used + * Will be used only if report entry have a sourceName other than that #currentTestSetStats will be used * it looks some provider doesn't provide enough information so we assume to use previous technique * class field (this is definitely hackish) */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/DependencyScanner.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/DependencyScanner.java index 156f280ed3..460f9716fe 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/DependencyScanner.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/DependencyScanner.java @@ -82,7 +82,6 @@ private static void scanArtifact(File artifact, TestFilter filte } /** - * * @param artifacts a list to filter * @param artifactPatterns a list of strings in the form *
    groupId[:artifactId[:type[:classifier][:version]]]
    diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/Relocator.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/Relocator.java index 9c1438a51e..3524c88f61 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/Relocator.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/Relocator.java @@ -21,7 +21,7 @@ import javax.annotation.Nonnull; /** - * Relocates class names when running with relocated provider + * Relocates class names when running with relocated provider. * * @author Kristian Rosenvold */ diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/SpecificFileFilter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/SpecificFileFilter.java index 8246180dcc..5c933741a1 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/SpecificFileFilter.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/util/SpecificFileFilter.java @@ -28,8 +28,7 @@ import static org.apache.maven.plugin.surefire.util.ScannerUtil.convertSlashToSystemFileSeparator; /** - * filters file names by a given collection of class name patterns - * + * Filters file names by a given collection of class name patterns. */ @Deprecated public class SpecificFileFilter { diff --git a/maven-surefire-common/src/main/java/org/apache/maven/surefire/providerapi/ServiceLoader.java b/maven-surefire-common/src/main/java/org/apache/maven/surefire/providerapi/ServiceLoader.java index d33500a3e3..76cac33fd6 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/surefire/providerapi/ServiceLoader.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/surefire/providerapi/ServiceLoader.java @@ -78,9 +78,9 @@ public Set lookup(Class clazz, ClassLoader classLoader) throws IOExce * Method loadServices loads the services of a class that are * defined using the SPI mechanism. * - * @param urlEnumeration The urls from the resource - * @return The set of service provider names - * @throws IOException When reading the streams fails + * @param urlEnumeration the urls from the resource + * @return the set of service provider names + * @throws IOException when reading the streams fails */ @Nonnull @SuppressWarnings("checkstyle:innerassignment") diff --git a/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/CommandEncoder.java b/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/CommandEncoder.java index ef5b2a4b72..6cce1352d3 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/CommandEncoder.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/CommandEncoder.java @@ -39,9 +39,6 @@ import static org.apache.maven.surefire.api.booter.MasterProcessCommand.SKIP_SINCE_NEXT_TEST; import static org.apache.maven.surefire.api.booter.MasterProcessCommand.TEST_SET_FINISHED; -/** - * - */ public class CommandEncoder extends AbstractStreamEncoder implements AutoCloseable { private final WritableByteChannel out; diff --git a/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/EventDecoder.java b/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/EventDecoder.java index 0bfc1e26b7..0b08f897e1 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/EventDecoder.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/surefire/stream/EventDecoder.java @@ -74,9 +74,6 @@ import static org.apache.maven.surefire.api.stream.SegmentType.TEST_RUN_ID; import static org.apache.maven.surefire.shared.utils.cli.ShutdownHookUtils.addShutDownHook; -/** - * - */ public class EventDecoder extends AbstractStreamDecoder { private static final int DEBUG_SINK_BUFFER_SIZE = 64 * 1024; // due to have fast and thread-safe Map diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReport.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReport.java index 95ca6b31d6..98d33b816a 100644 --- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReport.java +++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReport.java @@ -112,7 +112,7 @@ public abstract class AbstractSurefireReport extends AbstractMavenReport { private List resolvedReportsDirectories; /** - * Internationalization component + * Internationalization component. */ private I18N i18n; @@ -123,7 +123,7 @@ protected AbstractSurefireReport(I18N i18n) { /** * Whether the report should be generated or not. * - * @return {@code true} if and only if the report should be generated. + * @return {@code true} if and only if the report should be generated * @since 2.11 */ protected boolean isSkipped() { @@ -133,7 +133,7 @@ protected boolean isSkipped() { /** * Whether the report should be generated when there are no test results. * - * @return {@code true} if and only if the report should be generated when there are no result files at all. + * @return {@code true} if and only if the report should be generated when there are no result files at all * @since 2.11 */ protected boolean isGeneratedWhenNoResults() { @@ -239,8 +239,8 @@ private List getReportsDirectories() { /** * Gets the default surefire reports directory for the specified project. * - * @param subProject the project to query. - * @return the default surefire reports directory for the specified project. + * @param subProject the project to query + * @return the default surefire reports directory for the specified project */ protected abstract File getSurefireReportsDirectory(MavenProject subProject); @@ -257,7 +257,7 @@ private List getProjectsWithoutRoot() { /** * @param locale the locale * @param key the key to search fo - * @return the text appropriate for the locale. + * @return the text appropriate for the locale */ protected String getI18nString(Locale locale, String key) { return getI18N(locale).getString("surefire-report", locale, "report." + getI18Nsection() + '.' + key); @@ -287,13 +287,17 @@ protected I18N getI18N(Locale locale) { */ protected abstract String getI18Nsection(); - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getName(Locale locale) { return getI18nString(locale, "name"); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getDescription(Locale locale) { return getI18nString(locale, "description"); @@ -358,73 +362,97 @@ private static class CustomI18N implements I18N { } } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getDefaultLanguage() { return locale.getLanguage(); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getDefaultCountry() { return locale.getCountry(); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getDefaultBundleName() { return bundleName; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String[] getBundleNames() { return new String[] {bundleName}; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ResourceBundle getBundle() { return bundle; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ResourceBundle getBundle(String bundleName) { return bundle; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ResourceBundle getBundle(String bundleName, String languageHeader) { return bundle; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ResourceBundle getBundle(String bundleName, Locale locale) { return bundle; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public Locale getLocale(String languageHeader) { return new Locale(languageHeader); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getString(String key) { return getString(bundleName, locale, key); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getString(String key, Locale locale) { return getString(bundleName, locale, key); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String getString(String bundleName, Locale locale, String key) { String value; @@ -467,31 +495,41 @@ public String getString(String bundleName, Locale locale, String key) { return value; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String format(String key, Object arg1) { return format(bundleName, locale, key, new Object[] {arg1}); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String format(String key, Object arg1, Object arg2) { return format(bundleName, locale, key, new Object[] {arg1, arg2}); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String format(String bundleName, Locale locale, String key, Object arg1) { return format(bundleName, locale, key, new Object[] {arg1}); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String format(String bundleName, Locale locale, String key, Object arg1, Object arg2) { return format(bundleName, locale, key, new Object[] {arg1, arg2}); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public String format(String bundleName, Locale locale, String key, Object[] args) { if (locale == null) { diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeOnlyReport.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeOnlyReport.java index 3e0aa40306..c9404b6fe6 100644 --- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeOnlyReport.java +++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeOnlyReport.java @@ -49,6 +49,7 @@ public class FailsafeOnlyReport extends AbstractSurefireReport { /** * If set to true the failsafe report will be generated even when there are no failsafe result files. * Defaults to {@code false} to preserve legacy behaviour pre 2.10. + * * @since 2.11 */ @Parameter(defaultValue = "false", property = "alwaysGenerateFailsafeReport") @@ -56,6 +57,7 @@ public class FailsafeOnlyReport extends AbstractSurefireReport { /** * If set to true the failsafe report generation will be skipped. + * * @since 2.11 */ @Parameter(defaultValue = "false", property = "skipFailsafeReport") diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/PluginConsoleLogger.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/PluginConsoleLogger.java index ce668f0f1b..e65e5b0f82 100644 --- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/PluginConsoleLogger.java +++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/PluginConsoleLogger.java @@ -29,8 +29,8 @@ * Wrapper logger of miscellaneous implementations of {@link Log}. * * @author Tibor Digana (tibor17) - * @since 2.20 * @see ConsoleLogger + * @since 2.20 */ final class PluginConsoleLogger implements ConsoleLogger { private final Log mojoLogger; diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReport.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReport.java index 29bdb0b512..4a5e85561c 100644 --- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReport.java +++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReport.java @@ -48,6 +48,7 @@ public class SurefireReport extends AbstractSurefireReport { /** * If set to true, the surefire report will be generated even when there are no surefire result files. * Defaults to {@code true} to preserve legacy behaviour pre 2.10. + * * @since 2.11 */ @Parameter(defaultValue = "true", property = "alwaysGenerateSurefireReport") @@ -55,6 +56,7 @@ public class SurefireReport extends AbstractSurefireReport { /** * If set to true, the surefire report generation will be skipped. + * * @since 2.11 */ @Parameter(defaultValue = "false", property = "skipSurefireReport") diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java index 75d2528dd1..6d767897a0 100644 --- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java +++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java @@ -79,8 +79,8 @@ public String getTitle() { } /** - * @param key The key. - * @return The translated string. + * @param key the key + * @return the translated string */ private String getI18nString(String key) { return getI18nString(getI18nSection(), key); @@ -91,19 +91,19 @@ private String getI18nSection() { } /** - * @param section The section. - * @param key The key to translate. - * @return the translated key. + * @param section the section + * @param key the key to translate + * @return the translated key */ private String getI18nString(String section, String key) { return i18n.getString("surefire-report", locale, "report." + section + '.' + key); } /** - * @param section The section. - * @param key The key to translate. - * @param args The args to pass to translated string. - * @return the translated key. + * @param section the section + * @param key the key to translate + * @param args the args to pass to translated string + * @return the translated key */ private String formatI18nString(String section, String key, Object... args) { return i18n.format("surefire-report", locale, "report." + section + '.' + key, args); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/BiProperty.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/BiProperty.java index ebacde89e8..48b80c9bd9 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/BiProperty.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/BiProperty.java @@ -22,9 +22,9 @@ * Internal generic wrapper. * * @author Tibor Digana (tibor17) - * @since 2.19 * @param first property * @param second property + * @since 2.19 */ public final class BiProperty { private final P1 p1; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/Constants.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/Constants.java index d57db47406..2e2c1fa7e7 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/Constants.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/booter/Constants.java @@ -23,9 +23,6 @@ import static java.nio.charset.StandardCharsets.US_ASCII; import static java.nio.charset.StandardCharsets.UTF_8; -/** - * - */ public final class Constants { private static final String MAGIC_NUMBER_FOR_EVENTS = "maven-surefire-event"; public static final String MAGIC_NUMBER_FOR_COMMANDS = "maven-surefire-command"; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/cli/CommandLineOption.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/cli/CommandLineOption.java index d050201d9e..5646191ae2 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/cli/CommandLineOption.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/cli/CommandLineOption.java @@ -26,8 +26,8 @@ * CLI options. * * @author Tibor Digana (tibor17) - * @since 2.19 * @see command line options + * @since 2.19 */ public enum CommandLineOption { REACTOR_FAIL_FAST, diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/event/AbstractTestControlEvent.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/event/AbstractTestControlEvent.java index 863a5ebfb5..d7c64aafec 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/event/AbstractTestControlEvent.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/event/AbstractTestControlEvent.java @@ -24,8 +24,8 @@ /** * The base class of an event of test control. * - * @since 3.0.0-M5 * @param TestSetReportEntry or ReportEntry + * @since 3.0.0-M5 */ public abstract class AbstractTestControlEvent extends Event { private final T reportEntry; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/filter/SpecificTestClassFilter.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/filter/SpecificTestClassFilter.java index 5efc91c17f..b07a23b973 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/filter/SpecificTestClassFilter.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/filter/SpecificTestClassFilter.java @@ -26,8 +26,7 @@ import org.apache.maven.surefire.shared.utils.io.SelectorUtils; /** - * Filter for test class files - * + * Filter for test class files. */ public class SpecificTestClassFilter implements ScannerFilter { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/AbstractProvider.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/AbstractProvider.java index c24427e75b..ba26baf977 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/AbstractProvider.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/AbstractProvider.java @@ -19,7 +19,7 @@ package org.apache.maven.surefire.api.provider; /** - * A provider base class that all providers should extend to shield themselves from interface changes + * A provider base class that all providers should extend to shield themselves from interface changes. * * @author Kristian Rosenvold */ diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/ProviderParameters.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/ProviderParameters.java index 71caddaee4..55baf0b872 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/ProviderParameters.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/ProviderParameters.java @@ -44,60 +44,60 @@ public interface ProviderParameters { /** * Provides a directory scanner that enforces the includes/excludes parameters that were passed to surefire. - * See #getDirectoryScannerParameters for details + * See #getDirectoryScannerParameters for details. * - * @return The directory scanner - * @deprecated Use scanresult instead, as of version 2.12.2. Will be removed in next major version. + * @return the directory scanner + * @deprecated use scanresult instead, as of version 2.12.2. Will be removed in next major version. */ @Deprecated DirectoryScanner getDirectoryScanner(); /** - * Provides the result of the directory scan performed in the plugin + * Provides the result of the directory scan performed in the plugin. * - * @return The scan result + * @return the scan result */ ScanResult getScanResult(); /** * Provides a service to calculate run order of tests. Applied after directory scanning. * - * @return A RunOrderCalculator + * @return a RunOrderCalculator */ RunOrderCalculator getRunOrderCalculator(); /** - * Provides features for creating reporting objects + * Provides features for creating reporting objects. * - * @return A ReporterFactory that allows the creation of one or more ReporterManagers + * @return a ReporterFactory that allows the creation of one or more ReporterManagers */ ReporterFactory getReporterFactory(); /** - * The raw parameters used in creating the directory scanner + * The raw parameters used in creating the directory scanner. * - * @return The parameters - * @deprecated Use scanresult instead, as of version 2.12.2. Will be removed in next major version. + * @return the parameters + * @deprecated use scanresult instead, as of version 2.12.2. Will be removed in next major version. */ @Deprecated DirectoryScannerParameters getDirectoryScannerParameters(); /** - * The raw parameters used in creating the ReporterManagerFactory + * The raw parameters used in creating the ReporterManagerFactory. * - * @return The reporter configuration + * @return the reporter configuration */ ReporterConfiguration getReporterConfiguration(); /** * Contains information about requested test suites or individual tests from the command line. * - * @return The testRequest + * @return the testRequest */ TestRequest getTestRequest(); /** - * The class loader for the tests + * The class loader for the tests. * * @return the classloader */ @@ -111,22 +111,22 @@ public interface ProviderParameters { Map getProviderProperties(); /** - * Artifact info about the artifact used to autodetect provider + * Artifact info about the artifact used to autodetect provider. * - * @return The artifactinfo, or null if autodetect was not used. + * @return the artifactinfo, or null if autodetect was not used */ TestArtifactInfo getTestArtifactInfo(); List getMainCliOptions(); /** - * @return Defaults to 0. Configured with parameter {@code skipAfterFailureCount} in POM. + * @return defaults to 0. Configured with parameter {@code skipAfterFailureCount} in POM. */ int getSkipAfterFailureCount(); /** * @return {@code true} if test provider appears in forked jvm; Otherwise {@code false} means - * in-plugin provider. + * in-plugin provider */ boolean isInsideFork(); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/SurefireProvider.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/SurefireProvider.java index a3194b355e..891282e3d4 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/SurefireProvider.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/provider/SurefireProvider.java @@ -48,22 +48,22 @@ public interface SurefireProvider { * Called when forkmode is different from "never" or "always", allows the provider to define * how to behave for the fork. * - * @return An iterator that will trigger one fork per item + * @return an iterator that will trigger one fork per item */ Iterable> getSuites(); /** - * Runs a forked test + * Runs a forked test. * - * @param forkTestSet An item from the iterator in #getSuites. Will be null for forkmode never or always. + * @param forkTestSet an item from the iterator in #getSuites. Will be null for forkmode never or always. * When this is non-null, the forked process will run only that test * and probably not scan the classpath - * @return A result of the invocation + * @return a result of the invocation + * @throws InvocationTargetException fails in {@code ProviderFactory} * @throws ReporterException * When reporting fails * @throws TestSetFailedException * When testset fails - * @throws InvocationTargetException fails in {@code ProviderFactory} */ @SuppressWarnings("checkstyle:redundantthrows") RunResult invoke(Object forkTestSet) throws TestSetFailedException, ReporterException, InvocationTargetException; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReportEntry.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReportEntry.java index 804766db44..cb08ae9171 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReportEntry.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReportEntry.java @@ -21,14 +21,13 @@ import javax.annotation.Nonnull; /** - * Describes a single entry for a test report - * + * Describes a single entry for a test report. */ public interface ReportEntry { /** - * The class name of the test + * The class name of the test. * - * @return A string with the class name + * @return a string with the class name */ String getSourceName(); @@ -40,9 +39,9 @@ public interface ReportEntry { String getSourceText(); /** - * The name of the test case + * The name of the test case. * - * @return A string describing the test case + * @return a string describing the test case */ String getName(); @@ -54,14 +53,14 @@ public interface ReportEntry { String getNameText(); /** - * The group/category of the testcase + * The group/category of the testcase. * - * @return A string + * @return a string */ String getGroup(); /** - * The group/category of the testcase + * The group/category of the testcase. * * @return stack trace object */ @@ -71,6 +70,7 @@ public interface ReportEntry { * Gets the runtime for the item. Optional parameter. If the value is not set, it will be determined within * the reporting subsystem. Some providers like to calculate this value themselves, and it gets the * most accurate value. + * * @return duration of a test in milliseconds */ Integer getElapsed(); @@ -86,23 +86,23 @@ public interface ReportEntry { /** * A message relating to a non-successful termination. - * May be the "message" from an exception or the reason for a test being ignored + * May be the "message" from an exception or the reason for a test being ignored. * - * @return A string that explains an anomaly + * @return a string that explains an anomaly */ String getMessage(); /** * A source name of the test case together with the group or category (if any exists). * - * @return A string with the test case name and group/category, or just the name. + * @return a string with the test case name and group/category, or just the name */ String getNameWithGroup(); /** * A source text of the test case together with the group or category (if any exists). * - * @return A string with the test case text and group/category, or just the source text. If no + * @return a string with the test case text and group/category, or just the source text. If no * source text is provided, then this will return null. */ String getReportNameWithGroup(); @@ -110,7 +110,7 @@ public interface ReportEntry { /** * Run mode. * - * @return a normal run, or re-run. + * @return a normal run, or re-run */ @Nonnull RunMode getRunMode(); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterConfiguration.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterConfiguration.java index 532d18f456..0b19f21fee 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterConfiguration.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterConfiguration.java @@ -23,7 +23,7 @@ /** * Bits and pieces of reporting configuration that seem to be necessary on the provider side. *
    - * Todo: Consider moving these fields elsewhere, this concept does not smell too good + * Todo: Consider moving these fields elsewhere, this concept does not smell too good. * * @author Kristian Rosenvold */ @@ -37,9 +37,9 @@ public ReporterConfiguration(File reportsDirectory, boolean trimStackTrace) { } /** - * The directory where reports will be created, normally ${project.build.directory}/surefire-reports + * The directory where reports will be created, normally ${project.build.directory}/surefire-reports. * - * @return A file pointing at the specified directory + * @return a file pointing at the specified directory */ public File getReportsDirectory() { return reportsDirectory; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactory.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactory.java index 80dde24f0c..73cd1a0d9d 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactory.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactory.java @@ -36,7 +36,7 @@ public interface ReporterFactory { /** * Closes the factory, freeing resources allocated in the factory. * - * @return The run result + * @return the run result */ RunResult close(); } diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactoryOptions.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactoryOptions.java index fcdac04bfe..82a0aadb31 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactoryOptions.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReporterFactoryOptions.java @@ -22,7 +22,7 @@ public class ReporterFactoryOptions { /** - * provider such Junit5 may be running tests in parallel so report will stored depending on + * Provider such Junit5 may be running tests in parallel so report will stored depending on * {@link ReportEntry#getSourceName()} */ private boolean statPerSourceName; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/RunListener.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/RunListener.java index 799891cbff..bc8b40a44d 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/RunListener.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/RunListener.java @@ -29,61 +29,61 @@ */ public interface RunListener { /** - * Indicates the start of a given test-set + * Indicates the start of a given test-set. * * @param report the report entry describing the testset - * @throws ReporterException When reporting fails + * @throws ReporterException when reporting fails */ void testSetStarting(TestSetReportEntry report); /** - * Indicates end of a given test-set + * Indicates end of a given test-set. * * @param report the report entry describing the testset - * @throws ReporterException When reporting fails + * @throws ReporterException when reporting fails */ void testSetCompleted(TestSetReportEntry report); /** - * Event fired when a test is about to start + * Event fired when a test is about to start. * - * @param report The report entry to log for + * @param report the report entry to log for */ void testStarting(ReportEntry report); /** - * Event fired when a test ended successfully + * Event fired when a test ended successfully. * - * @param report The report entry to log for + * @param report the report entry to log for */ void testSucceeded(ReportEntry report); /** * Event fired when a test assumption failure was encountered. - * An assumption failure indicates that the test is not relevant + * An assumption failure indicates that the test is not relevant. * - * @param report The report entry to log for + * @param report the report entry to log for */ void testAssumptionFailure(ReportEntry report); /** * Event fired when a test ended with an error (non anticipated problem) * - * @param report The report entry to log for + * @param report the report entry to log for */ void testError(ReportEntry report); /** * Event fired when a test ended with a failure (anticipated problem) * - * @param report The report entry to log for + * @param report the report entry to log for */ void testFailed(ReportEntry report); /** - * Event fired when a test is skipped + * Event fired when a test is skipped. * - * @param report The report entry to log for + * @param report the report entry to log for */ void testSkipped(ReportEntry report); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/SafeThrowable.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/SafeThrowable.java index d639d28bf3..6e36ac3af7 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/SafeThrowable.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/SafeThrowable.java @@ -19,7 +19,7 @@ package org.apache.maven.surefire.api.report; /** - * Guards against misbehaving throwables + * Guards against misbehaving throwables. */ public class SafeThrowable { private final Throwable target; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReceiver.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReceiver.java index d1ce28e06e..6766e0fc14 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReceiver.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReceiver.java @@ -27,7 +27,7 @@ public interface TestOutputReceiver { /** - * Forwards process output from the running test-case into the reporting system + * Forwards process output from the running test-case into the reporting system. * * @param reportEntry wraps test output with descriptive information of the output */ diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReportEntry.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReportEntry.java index 3c4c46dea6..44eb9ad6d6 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReportEntry.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/report/TestOutputReportEntry.java @@ -34,7 +34,7 @@ public final class TestOutputReportEntry implements OutputReportEntry { * Wraps the output from the running test-case. * * @param log stdout/sterr output from running tests - * @param isStdOut Indicates if this is stdout + * @param isStdOut indicates if this is stdout * @param newLine print on new line * @param runMode the phase of testset * @param testRunId unique id of the test run pointing to the test description @@ -51,7 +51,7 @@ public TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunM * Wraps the output from the running test-case. * * @param log stdout/sterr output from running tests - * @param isStdOut Indicates if this is stdout + * @param isStdOut indicates if this is stdout * @param newLine print on new line */ private TestOutputReportEntry(String log, boolean isStdOut, boolean newLine) { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/runorder/Priority.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/runorder/Priority.java index fa06bb581d..560f337752 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/runorder/Priority.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/runorder/Priority.java @@ -37,8 +37,8 @@ public Priority(String className) { /** * Returns a priority that applies to a new testclass (that has never been run/recorded) * - * @param className The class name - * @return A priority + * @param className the class name + * @return a priority */ public static Priority newTestClassPriority(String className) { Priority priority1 = new Priority(className); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoder.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoder.java index 400f74f6c0..f687a262d7 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoder.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoder.java @@ -355,9 +355,6 @@ protected final void printRemainingStream(Memento memento) { memento.getLine().clear(); } - /** - * - */ public static final class Segment { private final byte[] array; private final int fromIndex; @@ -447,9 +444,6 @@ private StreamReadStatus read(ByteBuffer buffer, int oldPosition, int recommende } } - /** - * - */ public final class Memento { private CharsetDecoder currentDecoder; private final CharsetDecoder defaultDecoder; @@ -617,9 +611,6 @@ private boolean isJvmError(String line) { } } - /** - * - */ public static final class MalformedFrameException extends Exception { private final int readFrom; private final int readTo; @@ -647,7 +638,7 @@ public boolean hasValidPositions() { *
    * Overflow - read all bytes or more *
    - * EOF - end of stream + * EOF - end of stream. */ public enum StreamReadStatus { UNDERFLOW, diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamEncoder.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamEncoder.java index eba5246fa8..82fdb79788 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamEncoder.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamEncoder.java @@ -36,6 +36,7 @@ /** * The base class of stream encoder. * The type of message is expressed by opcode where the opcode object is described by the generic type {@link E}. + * * @param type of the message */ public abstract class AbstractStreamEncoder> { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/MalformedChannelException.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/MalformedChannelException.java index 2bd212166c..bbedfb7e90 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/MalformedChannelException.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/MalformedChannelException.java @@ -18,7 +18,4 @@ */ package org.apache.maven.surefire.api.stream; -/** - * - */ public class MalformedChannelException extends Exception {} diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/SegmentType.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/SegmentType.java index 07f01d9ce7..8cd0105b64 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/SegmentType.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/stream/SegmentType.java @@ -18,9 +18,6 @@ */ package org.apache.maven.surefire.api.stream; -/** - * - */ public enum SegmentType { RUN_MODE, TEST_RUN_ID, diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/DirectoryScannerParameters.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/DirectoryScannerParameters.java index afff641acc..a0e4a414dc 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/DirectoryScannerParameters.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/DirectoryScannerParameters.java @@ -75,7 +75,7 @@ public List getSpecificTests() { /** * Returns the directory of the compiled classes, normally ${project.build.testOutputDirectory} * - * @return A directory that can be scanned for .class files + * @return a directory that can be scanned for .class files */ public File getTestClassesDirectory() { return testClassesDirectory; @@ -84,7 +84,7 @@ public File getTestClassesDirectory() { /** * The includes pattern list, as specified on the plugin includes parameter. * - * @return A list of patterns. May contain both source file designators and .class extensions. + * @return a list of patterns. May contain both source file designators and .class extensions. */ @Deprecated public List getIncludes() { @@ -94,7 +94,7 @@ public List getIncludes() { /** * The excludes pattern list, as specified on the plugin includes parameter. * - * @return A list of patterns. May contain both source file designators and .class extensions. + * @return a list of patterns. May contain both source file designators and .class extensions. */ @Deprecated public List getExcludes() { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/ResolvedTest.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/ResolvedTest.java index 9e976c2915..915894fce5 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/ResolvedTest.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/ResolvedTest.java @@ -33,6 +33,7 @@ /** * Single pattern test filter resolved from multi pattern filter -Dtest=MyTest#test,AnotherTest#otherTest. + * * @deprecated will be renamed to ResolvedTestPattern */ // will be renamed to ResolvedTestPattern @@ -125,7 +126,7 @@ public ResolvedTest(Type type, String pattern, boolean isRegex) { * Other examples: org/animals/Cat*, org/animals/Ca?.class, %regex[Cat.class|Dog.*]
    *
    * '*' means zero or more characters
    - * '?' means one and only one character + * '?' means one and only one character. * * @return class pattern or regex */ @@ -142,7 +143,7 @@ public boolean hasTestClassPattern() { * Other examples: test* or testSomethin? or %regex[testOne|testTwo] or %ant[testOne|testTwo]
    *
    * '*' means zero or more characters
    - * '?' means one and only one character + * '?' means one and only one character. * * @return method pattern or regex */ diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestArtifactInfo.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestArtifactInfo.java index 0ff272cc14..bba2e5926f 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestArtifactInfo.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestArtifactInfo.java @@ -19,7 +19,7 @@ package org.apache.maven.surefire.api.testset; /** - * Contains information about the detected test artifact + * Contains information about the detected test artifact. * * @author Kristian Rosenvold */ diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestListResolver.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestListResolver.java index ab8938dc2e..492cc95f07 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestListResolver.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestListResolver.java @@ -127,10 +127,9 @@ public boolean hasMethodPatterns() { } /** - * * @param resolver filter possibly having method patterns * @return {@code resolver} if {@link TestListResolver#hasMethodPatterns() resolver.hasMethodPatterns()} - * returns {@code true}; Otherwise wildcard filter {@code *.class} is returned. + * returns {@code true}; Otherwise wildcard filter {@code *.class} is returned */ public static TestListResolver optionallyWildcardFilter(TestListResolver resolver) { return resolver.hasMethodPatterns() ? resolver : WILDCARD; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestRequest.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestRequest.java index e5fe6814cf..0acc7b68c3 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestRequest.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestRequest.java @@ -49,9 +49,9 @@ public TestRequest( } /** - * Represents suitexmlfiles that define the test-run request + * Represents suitexmlfiles that define the test-run request. * - * @return A list of java.io.File objects. + * @return a list of java.io.File objects */ public List getSuiteXmlFiles() { return suiteXmlFiles; @@ -60,7 +60,7 @@ public List getSuiteXmlFiles() { /** * Test source directory, normally ${project.build.testSourceDirectory} * - * @return A file pointing to test sources + * @return a file pointing to test sources */ public File getTestSourceDirectory() { return testSourceDirectory; @@ -78,7 +78,7 @@ public TestListResolver getTestListResolver() { /** * How many times to rerun failing tests, issued with -Dsurefire.rerunFailingTestsCount from the command line. * - * @return The int parameter to indicate how many times to rerun failing tests + * @return the int parameter to indicate how many times to rerun failing tests */ public int getRerunFailingTestsCount() { return rerunFailingTestsCount; diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestSetFailedException.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestSetFailedException.java index d1ea14fcc6..461be8a6ca 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestSetFailedException.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestSetFailedException.java @@ -28,7 +28,7 @@ public class TestSetFailedException extends Exception { /** * Creates {@code TestSetFailedException} with a detail message. * - * @param message A detail message for this {@code TestSetFailedException}, or + * @param message a detail message for this {@code TestSetFailedException}, or * {@code null}. If {@code null} is passed, the {@link #getMessage} * method will return an empty {@link String string}. */ @@ -44,7 +44,7 @@ public TestSetFailedException(String message) { * NOT automatically incorporated in this throwable's detail * message. * - * @param message A detail message for this {@code TestSetFailedException}, or {@code null}. + * @param message a detail message for this {@code TestSetFailedException}, or {@code null} * @param cause the cause, which is saved for later retrieval by the {@link #getCause} method. * (A null value is permitted, and indicates that the cause is nonexistent or unknown.) */ @@ -56,7 +56,7 @@ public TestSetFailedException(String message, Throwable cause) { * Creates {@code TestSetFailedException} with the specified cause. The mthod {@link #getMessage} method of this * exception object will return {@code cause == null ? "" : cause.toString()}. * - * @param cause The cause + * @param cause the cause */ public TestSetFailedException(Throwable cause) { super(cause == null ? "" : cause.toString(), cause); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/CloseableIterator.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/CloseableIterator.java index c197461522..5c4d1405f6 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/CloseableIterator.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/CloseableIterator.java @@ -28,9 +28,8 @@ * method {@link #next()} throws {@link java.util.NoSuchElementException}. * The method {@link #remove()} throws {@link IllegalStateException} if the iterator has been closed. * - * @param the type of elements returned by this iterator - * * @author Tibor Digana (tibor17) + * @param the type of elements returned by this iterator * @since 2.19.1 */ public abstract class CloseableIterator implements Iterator { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DefaultRunOrderCalculator.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DefaultRunOrderCalculator.java index 4e79468316..524f4bcd66 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DefaultRunOrderCalculator.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DefaultRunOrderCalculator.java @@ -30,7 +30,7 @@ import org.apache.maven.surefire.api.testset.RunOrderParameters; /** - * Applies the final runorder of the tests + * Applies the final runorder of the tests. * * @author Kristian Rosenvold */ diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DirectoryScanner.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DirectoryScanner.java index 41fde0308d..bd59c60634 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DirectoryScanner.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/DirectoryScanner.java @@ -24,11 +24,11 @@ @Deprecated public interface DirectoryScanner { /** - * Locates tests based on scanning directories + * Locates tests based on scanning directories. * - * @param classLoader The classloader to use when loading classes - * @param scannerFilter The filter to include/exclude test classes - * @return The found classes that match the filter + * @param classLoader the classloader to use when loading classes + * @param scannerFilter the filter to include/exclude test classes + * @return the found classes that match the filter */ TestsToRun locateTestClasses(ClassLoader classLoader, ScannerFilter scannerFilter); } diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/RunOrder.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/RunOrder.java index c8b2612df9..7e9c940d2b 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/RunOrder.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/RunOrder.java @@ -45,7 +45,7 @@ public class RunOrder { public static final RunOrder[] DEFAULT = new RunOrder[] {FILESYSTEM}; /** - * Returns the specified RunOrder + * Returns the specified RunOrder. * * @param values the runorder string value * @return an array of RunOrder objects, never null diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/ScannerFilter.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/ScannerFilter.java index 61eaa5bea0..54285004b4 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/ScannerFilter.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/ScannerFilter.java @@ -23,10 +23,10 @@ */ public interface ScannerFilter { /** - * Indicates if the class should be accepted by the directory scanner + * Indicates if the class should be accepted by the directory scanner. * - * @param testClass The class in question - * @return true if the class should be part of the directory scan result. + * @param testClass the class in question + * @return true if the class should be part of the directory scan result */ boolean accept(Class testClass); } diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SurefireReflectionException.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SurefireReflectionException.java index e105ab12d3..b07ef008ce 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SurefireReflectionException.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/SurefireReflectionException.java @@ -30,7 +30,7 @@ public class SurefireReflectionException extends RuntimeException { * Create a {@link SurefireReflectionException} with the specified cause. The method {@link #getMessage} of this * exception object will return {@code cause == null ? "" : cause.toString()}. * - * @param cause The cause of this exception + * @param cause the cause of this exception */ public SurefireReflectionException(Throwable cause) { super(cause == null ? "" : cause.toString(), cause); diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TempFileManager.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TempFileManager.java index ddf98005b4..eda6cdf90d 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TempFileManager.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TempFileManager.java @@ -82,6 +82,7 @@ public static TempFileManager instance() { /** * Creates an instance using a subdirectory of the system's temporary directory. + * * @param subDirName name of subdirectory * @return instance */ diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TestsToRun.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TestsToRun.java index c6a9541b62..43f3218710 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TestsToRun.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/TestsToRun.java @@ -43,9 +43,9 @@ public class TestsToRun implements Iterable> { private int iteratedCount; /** - * Constructor + * Constructor. * - * @param locatedClasses A set of java.lang.Class objects representing tests to run + * @param locatedClasses a set of java.lang.Class objects representing tests to run */ public TestsToRun(Set> locatedClasses) { this.locatedClasses = new ArrayList<>(locatedClasses); @@ -56,14 +56,14 @@ public static TestsToRun fromClass(Class clazz) throws TestSetFailedException } /** - * @return test classes which have been retrieved by {@link TestsToRun#iterator()}. + * @return test classes which have been retrieved by {@link TestsToRun#iterator()} */ public Iterator> iterated() { return newWeakIterator(); } /** - * Returns an iterator over the located java.lang.Class objects + * Returns an iterator over the located java.lang.Class objects. * * @return an unmodifiable iterator */ @@ -163,10 +163,10 @@ public Class[] getLocatedClasses() { } /** - * Get test class which matches className + * Get test class which matches className. * * @param className string used to find the test class - * @return Class object with the matching name, null if could not find a class with the matching name + * @return class object with the matching name, null if could not find a class with the matching name */ public Class getClassByName(String className) { for (Class clazz : this) { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/DaemonThreadFactory.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/DaemonThreadFactory.java index 90bec08d8c..eabc5cfa05 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/DaemonThreadFactory.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/DaemonThreadFactory.java @@ -48,6 +48,7 @@ public Thread newThread(Runnable r) { /** * Should be used by thread pools. + * * @return new instance of {@link ThreadFactory} where each {@link Thread thread} is daemon */ public static ThreadFactory newDaemonThreadFactory() { diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/StringUtils.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/StringUtils.java index 67265e20d7..efae29fb54 100644 --- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/StringUtils.java +++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/StringUtils.java @@ -74,9 +74,9 @@ public static String[] split(String text, String separator) { /** * Determines if {@code buffer} starts with specific literal(s). * - * @param buffer Examined StringBuffer + * @param buffer examined StringBuffer * @param pattern a pattern which should start in {@code buffer} - * @return {@code true} if buffer's literal starts with given {@code pattern}, or both are empty. + * @return {@code true} if buffer's literal starts with given {@code pattern}, or both are empty */ public static boolean startsWith(StringBuffer buffer, String pattern) { if (buffer.length() < pattern.length()) { diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/AbstractPathConfiguration.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/AbstractPathConfiguration.java index d02a3ba7cb..de90e13dc8 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/AbstractPathConfiguration.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/AbstractPathConfiguration.java @@ -61,14 +61,14 @@ protected AbstractPathConfiguration( /** * Must be exclusive with {@link #isClassPathConfig()}. * - * @return {@code true} if this is {@link ModularClasspathConfiguration}. + * @return {@code true} if this is {@link ModularClasspathConfiguration} */ public abstract boolean isModularPathConfig(); /** * Must be exclusive with {@link #isModularPathConfig()}. * - * @return {@code true} if this is {@link ClasspathConfiguration}. + * @return {@code true} if this is {@link ClasspathConfiguration} */ public abstract boolean isClassPathConfig(); diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterConstants.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterConstants.java index b736bd7496..61fc3abac9 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterConstants.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterConstants.java @@ -19,7 +19,7 @@ package org.apache.maven.surefire.booter; /** - * Constants used by the serializer/deserializer + * Constants used by the serializer/deserializer. * * @author Kristian Rosenvold */ diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java index 8cf0e84bab..0db7f5c848 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java @@ -73,7 +73,7 @@ public String getConnectionString() { } /** - * @return PID of Maven process where plugin is executed; or null if PID could not be determined. + * @return PID of Maven process where plugin is executed; or null if PID could not be determined */ public String getPluginPid() { return properties.getProperty(PLUGIN_PID); diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java index e340903ddd..3dffd98972 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java @@ -36,7 +36,7 @@ * * A Classpath is immutable and thread safe. * - * Immutable and thread safe + * Immutable and thread safe. * * @author Kristian Rosenvold */ diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java index 069a08d0dd..93a7975176 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java @@ -34,7 +34,7 @@ public class ClasspathConfiguration extends AbstractPathConfiguration { private final Classpath testClasspathUrls; /** - * The surefire classpath to use when invoking in-process with the plugin + * The surefire classpath to use when invoking in-process with the plugin. */ private final Classpath inprocClasspath; diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/CommandReader.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/CommandReader.java index b1dba3bb51..18deb3e9cb 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/CommandReader.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/CommandReader.java @@ -133,7 +133,7 @@ private void addListener(MasterProcessCommand cmd, CommandListener listener) { /** * @return test classes which have been retrieved by - * {@link CommandReader#getIterableClasses(MasterProcessChannelEncoder)}. + * {@link CommandReader#getIterableClasses(MasterProcessChannelEncoder)} */ Iterator iterated() { return testClasses.subList(0, iteratedCount).iterator(); @@ -144,7 +144,7 @@ Iterator iterated() { * Two simultaneous instances are not allowed for sake of only one {@link #nextCommandNotifier}. * * @param eventChannel original stream in current JVM process - * @return Iterator with test classes lazily loaded as commands from the main process + * @return iterator with test classes lazily loaded as commands from the main process */ Iterable getIterableClasses(MasterProcessChannelEncoder eventChannel) { return new ClassesIterable(eventChannel); @@ -164,7 +164,7 @@ private boolean isStopped() { } /** - * @return {@code true} if {@link #LAST_TEST_SYMBOL} found at the last index in {@link #testClasses}. + * @return {@code true} if {@link #LAST_TEST_SYMBOL} found at the last index in {@link #testClasses} */ private boolean isQueueFull() { // The problem with COWAL is that such collection doe not have operation getLast, however it has get(int) diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java index 1bcdc8b09f..bccc78c853 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java @@ -488,7 +488,7 @@ private static MasterProcessChannelProcessorFactory lookupDecoderFactory(String * This method is invoked when Surefire is forked - this method parses and organizes the arguments passed to it and * then calls the Surefire class' run method.
    The system exit code will be 1 if an exception is thrown. * - * @param args Commandline arguments + * @param args commandline arguments */ public static void main(String[] args) { ForkedBooter booter = new ForkedBooter(); @@ -496,7 +496,7 @@ public static void main(String[] args) { } /** - * created for testing purposes. + * Created for testing purposes. * * @param booter booter in JVM * @param args arguments passed to JVM diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedNodeArg.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedNodeArg.java index c30aa7e345..1c80435c23 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedNodeArg.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedNodeArg.java @@ -27,9 +27,6 @@ import org.apache.maven.surefire.api.booter.DumpErrorSingleton; import org.apache.maven.surefire.api.fork.ForkNodeArguments; -/** - * - */ public final class ForkedNodeArg implements ForkNodeArguments { private final int forkChannelId; private final ConsoleLogger logger; diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java index a748ca748b..c29e2df8b5 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java @@ -47,7 +47,7 @@ public IsolatedClassLoader(ClassLoader parent, boolean childDelegation, String r /** * @deprecated this method will use {@link java.io.File} instead of {@link URL} in the next - * major version. + * major version */ @Override @Deprecated diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/KeyValueSource.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/KeyValueSource.java index 7da898bd76..df1346f16c 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/KeyValueSource.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/KeyValueSource.java @@ -21,7 +21,7 @@ import java.util.Map; /** - * A key-value source obeying the geneal constrains of java.util.Properties + * A key-value source obeying the geneal constrains of java.util.Properties. */ public interface KeyValueSource { void copyTo(Map target); diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java index 1dff93cf3a..ffa649e6b4 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java @@ -45,7 +45,7 @@ final class LazyTestsToRun extends TestsToRun { private final CommandReader commandReader; /** - * C'tor + * C'tor. * * @param eventChannel the output stream to use when requesting new new tests */ @@ -76,7 +76,7 @@ public void remove() { } /** - * @return test classes which have been retrieved by {@link LazyTestsToRun#iterator()}. + * @return test classes which have been retrieved by {@link LazyTestsToRun#iterator()} */ @Override public Iterator> iterated() { @@ -86,8 +86,9 @@ public Iterator> iterated() { /** * The iterator can be used only in one Thread. * {@inheritDoc} + * * @see TestsToRun#iterator() - * */ + */ @Override public Iterator> iterator() { return new BlockingIterator(); diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ModularClasspathConfiguration.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ModularClasspathConfiguration.java index 6a31124822..a322a863f8 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ModularClasspathConfiguration.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ModularClasspathConfiguration.java @@ -33,7 +33,7 @@ public class ModularClasspathConfiguration extends AbstractPathConfiguration { private final Classpath testClasspathUrls; /** - * The surefire classpath to use when invoking in-process with the plugin + * The surefire classpath to use when invoking in-process with the plugin. */ private final Classpath inprocClasspath; diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java index 2c836ea210..3c4cbf7574 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java @@ -309,7 +309,7 @@ private static void checkValid(Scanner scanner) throws IOException { * https://technet.microsoft.com/en-us/library/ee198928.aspx
    * We use UTC time zone which avoids DST changes, see SUREFIRE-1512. * - * @return Windows WMIC format yyyymmddHHMMSS.xxx + * @return windows WMIC format yyyymmddHHMMSS.xxx */ private static SimpleDateFormat createWindowsCreationDateFormat() { SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss'.'SSS"); diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProcessCheckerType.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProcessCheckerType.java index 9b49055a4d..a75c7561d1 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProcessCheckerType.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProcessCheckerType.java @@ -20,9 +20,6 @@ import static org.apache.maven.surefire.shared.utils.StringUtils.isBlank; -/** - * - */ public enum ProcessCheckerType { PING("ping"), NATIVE("native"), diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java index 91cdb4f8ce..9d250c6ba0 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java @@ -88,10 +88,10 @@ public List getStringList(String propertyPrefix) { } /** - * Retrieves as single object that is persisted with type encoding + * Retrieves as single object that is persisted with type encoding. * - * @param key The key for the propery - * @return The object, of a supported type + * @param key the key for the propery + * @return the object, of a supported type */ public TypeEncodedValue getTypeEncodedValue(String key) { String typeEncoded = getProperty(key); diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java index 90d2279416..4ec533be48 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java @@ -52,7 +52,7 @@ /** * Does reflection based invocation of the surefire methods. *
    - * This is to avoid complications with linkage issues + * This is to avoid complications with linkage issues. * * @author Kristian Rosenvold */ diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemPropertyManager.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemPropertyManager.java index 84b93b826d..a40ca22e94 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemPropertyManager.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemPropertyManager.java @@ -35,11 +35,11 @@ public class SystemPropertyManager { /** - * Loads the properties, closes the stream + * Loads the properties, closes the stream. * - * @param inStream The stream to read from, will be closed - * @return The properties - * @throws java.io.IOException If something bad happens + * @param inStream the stream to read from, will be closed + * @return the properties + * @throws java.io.IOException if something bad happens */ public static PropertiesWrapper loadProperties(InputStream inStream) throws IOException { try (InputStream stream = inStream) { diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemUtils.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemUtils.java index 3f7b4aa5b0..0a06a09a8e 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemUtils.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SystemUtils.java @@ -78,7 +78,7 @@ public static boolean endsWithJavaPath(String jvmExecPath) { * Null is returned if {@code jvmExecutable} is incorrect. * * @param jvmExecutable /jdk/bin/java* or /jdk/jre/bin/java* - * @return path to jdk directory; or null if wrong path or directory layout of JDK installation. + * @return path to jdk directory; or null if wrong path or directory layout of JDK installation */ public static File toJdkHomeFromJvmExec(String jvmExecutable) { File bin = new File(jvmExecutable).getAbsoluteFile().getParentFile(); @@ -222,7 +222,7 @@ static Long pidOnJMX() { *
    * $ echo $CPU_ID | gawk '{print $1}' *
    - * 48982 + * 48982. * * @return self PID * @throws Exception i/o and number format exc @@ -261,7 +261,7 @@ static Long pidStatusOnLinux(String root) throws Exception { * Fields are: *
    * comm pid ppid pgid sid maj, min ctty, sldr start user/system time wmsg euid ruid rgid,egid, - * groups[1 .. NGROUPS] hostname + * groups[1 .. NGROUPS] hostname. * * @return current PID * @throws Exception if could not read /proc/curproc/status diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/CommandChannelDecoder.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/CommandChannelDecoder.java index 3c1a609f27..dd5243edb6 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/CommandChannelDecoder.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/CommandChannelDecoder.java @@ -31,7 +31,7 @@ import org.apache.maven.surefire.booter.stream.CommandDecoder; /** - * magic number : opcode [: opcode specific data]* + * Magic number : opcode [: opcode specific data]* *
    * * @author Tibor Digana (tibor17) diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/EventChannelEncoder.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/EventChannelEncoder.java index 13df7fa1a0..f2fdd71cf3 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/EventChannelEncoder.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/EventChannelEncoder.java @@ -66,7 +66,7 @@ import static org.apache.maven.surefire.api.booter.ForkedProcessEventType.BOOTERCODE_TEST_SUCCEEDED; /** - * magic number : opcode : run mode [: opcode specific data]* + * Magic number : opcode : run mode [: opcode specific data]* *
    * * @author Tibor Digana (tibor17) diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/CommandDecoder.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/CommandDecoder.java index 3a48ca92dd..41dffc26cd 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/CommandDecoder.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/CommandDecoder.java @@ -50,9 +50,6 @@ import static org.apache.maven.surefire.api.stream.SegmentType.STRING_ENCODING; import static org.apache.maven.surefire.shared.utils.cli.ShutdownHookUtils.addShutDownHook; -/** - * - */ public class CommandDecoder extends AbstractStreamDecoder { private static final int DEBUG_SINK_BUFFER_SIZE = 64 * 1024; private static final int NO_POSITION = -1; diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/EventEncoder.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/EventEncoder.java index ebc50f5148..47503922f3 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/EventEncoder.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/stream/EventEncoder.java @@ -31,9 +31,6 @@ import static org.apache.maven.surefire.api.booter.Constants.DEFAULT_STREAM_ENCODING_BYTES; import static org.apache.maven.surefire.api.booter.Constants.MAGIC_NUMBER_FOR_EVENTS_BYTES; -/** - * - */ public class EventEncoder extends AbstractStreamEncoder { public EventEncoder(WritableBufferedByteChannel out) { super(out); diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ConsoleOutputReporter.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ConsoleOutputReporter.java index 5f32f9b782..ceaa3944d3 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ConsoleOutputReporter.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ConsoleOutputReporter.java @@ -32,7 +32,7 @@ */ public abstract class ConsoleOutputReporter { /** - * {@code false} by default + * {@code false} by default. */ private boolean disable; diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ForkChannel.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ForkChannel.java index e9424830f1..31821dc539 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ForkChannel.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/ForkChannel.java @@ -46,7 +46,7 @@ public abstract class ForkChannel implements Closeable { private final ForkNodeArguments arguments; /** - * @param arguments data necessary for command reader and event handler. + * @param arguments data necessary for command reader and event handler */ protected ForkChannel(@Nonnull ForkNodeArguments arguments) { this.arguments = arguments; @@ -55,8 +55,8 @@ protected ForkChannel(@Nonnull ForkNodeArguments arguments) { /** * Asynchronously connects to the client. * - * @throws IOException if stream fails * @throws InterruptedException if interrupted thread + * @throws IOException if stream fails */ public abstract void tryConnectToClient() throws IOException, InterruptedException; @@ -68,7 +68,7 @@ protected ForkChannel(@Nonnull ForkNodeArguments arguments) { public abstract String getForkNodeConnectionString(); /** - * the permits in {@link CountdownCloseable}. + * The permits in {@link CountdownCloseable}. */ public abstract int getCountdownCloseablePermits(); @@ -77,8 +77,8 @@ protected ForkChannel(@Nonnull ForkNodeArguments arguments) { * * @param commands command reader, see {@link CommandReader#readNextCommand()} * @param stdIn optional standard input stream of the JVM to write the encoded commands into it - * @throws IOException if an error in the fork channel * @throws InterruptedException channel interrupted + * @throws IOException if an error in the fork channel */ public abstract void bindCommandReader(@Nonnull CommandReader commands, WritableByteChannel stdIn) throws IOException, InterruptedException; @@ -89,8 +89,8 @@ public abstract void bindCommandReader(@Nonnull CommandReader commands, Writable * @param eventHandler event eventHandler * @param countdownCloseable count down of the final call of {@link Closeable#close()} * @param stdOut optional standard output stream of the JVM - * @throws IOException if an error in the fork channel * @throws InterruptedException channel interrupted + * @throws IOException if an error in the fork channel */ public abstract void bindEventHandler( @Nonnull EventHandler eventHandler, diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReportEventListener.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReportEventListener.java index 948c27893e..5db81f0866 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReportEventListener.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReportEventListener.java @@ -26,9 +26,10 @@ * Defaults to org.apache.maven.plugin.surefire.report.StatelessXmlReporter. * * author Tibor Digana (tibor17) - * @since 3.0.0-M4 + * * @param report entry type, see WrappedReportEntry from module the maven-surefire-common * @param test-set statistics, see TestSetStats from module the maven-surefire-common + * @since 3.0.0-M4 */ public interface StatelessReportEventListener { /** diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReporter.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReporter.java index da330c02ec..06fb83fd37 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReporter.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessReporter.java @@ -27,14 +27,14 @@ * Signatures can be changed between major, minor versions or milestones. * * @author Tibor Digana (tibor17) - * @since 3.0.0-M4 * @param report entry type, see WrappedReportEntry from module the maven-surefire-common * @param test-set statistics, see TestSetStats from module the maven-surefire-common * @param mojo config, see DefaultStatelessReportMojoConfiguration from maven-surefire-common + * @since 3.0.0-M4 */ public abstract class StatelessReporter { /** - * {@code false} by default + * {@code false} by default. */ private boolean disable; diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.java index 8ca3956a13..3072112388 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoConsoleReportEventListener.java @@ -28,9 +28,9 @@ * Signatures can be changed between major, minor versions or milestones. * * @author Tibor Digana (tibor17) - * @since 3.0.0-M4 * @param report entry type, see WrappedReportEntry from module the maven-surefire-common * @param test-set statistics, see TestSetStats from module the maven-surefire-common + * @since 3.0.0-M4 */ public abstract class StatelessTestsetInfoConsoleReportEventListener { private final ConsoleLogger logger; diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoFileReportEventListener.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoFileReportEventListener.java index 57139030e4..fd850b1ef8 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoFileReportEventListener.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoFileReportEventListener.java @@ -29,9 +29,9 @@ * Signatures can be changed between major, minor versions or milestones. * * @author Tibor Digana (tibor17) - * @since 3.0.0-M4 * @param report entry type, see WrappedReportEntry from module the maven-surefire-common * @param test-set statistics, see TestSetStats from module the maven-surefire-common + * @since 3.0.0-M4 */ public abstract class StatelessTestsetInfoFileReportEventListener { private final File reportsDirectory; diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoReporter.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoReporter.java index f33cb5335c..60133b026a 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoReporter.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/StatelessTestsetInfoReporter.java @@ -29,9 +29,9 @@ * Signatures can be changed between major, minor versions or milestones. * * @author Tibor Digana (tibor17) - * @since 3.0.0-M4 * @param report entry type, see WrappedReportEntry from module the maven-surefire-common * @param test-set statistics, see TestSetStats from module the maven-surefire-common + * @since 3.0.0-M4 */ public abstract class StatelessTestsetInfoReporter { private boolean disable; diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineExecutor.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineExecutor.java index 737fd5af14..9f517c8ab8 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineExecutor.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineExecutor.java @@ -106,7 +106,9 @@ private ProcessHook(Process process) { setDaemon(true); } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ public void run() { process.destroy(); } diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java index 489d106c18..d181a88cdd 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java @@ -31,9 +31,6 @@ import static org.apache.maven.surefire.api.util.internal.Channels.newBufferedChannel; import static org.apache.maven.surefire.api.util.internal.Channels.newChannel; -/** - * - */ public final class CommandlineStreams implements Closeable { private final ReadableByteChannel stdOutChannel; private final ReadableByteChannel stdErrChannel; diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/LineConsumerThread.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/LineConsumerThread.java index c24d16e0a5..fd9b642d27 100644 --- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/LineConsumerThread.java +++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/LineConsumerThread.java @@ -29,9 +29,6 @@ import org.apache.maven.surefire.extensions.CloseableDaemonThread; import org.apache.maven.surefire.extensions.EventHandler; -/** - * - */ public final class LineConsumerThread extends CloseableDaemonThread { private final Charset encoding; private final ReadableByteChannel channel; diff --git a/surefire-extensions-spi/src/main/java/org/apache/maven/surefire/spi/MasterProcessChannelProcessorFactory.java b/surefire-extensions-spi/src/main/java/org/apache/maven/surefire/spi/MasterProcessChannelProcessorFactory.java index fd77010c80..a409cc5d51 100644 --- a/surefire-extensions-spi/src/main/java/org/apache/maven/surefire/spi/MasterProcessChannelProcessorFactory.java +++ b/surefire-extensions-spi/src/main/java/org/apache/maven/surefire/spi/MasterProcessChannelProcessorFactory.java @@ -49,6 +49,7 @@ public interface MasterProcessChannelProcessorFactory extends Closeable { /** * Decoder factory method. + * * @param forkingArguments forking arguments * @return a new instance of decoder */ @@ -56,6 +57,7 @@ public interface MasterProcessChannelProcessorFactory extends Closeable { /** * Encoder factory method. + * * @param forkingArguments forking arguments * @return a new instance of encoder */ diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/AndGroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/AndGroupMatcher.java index e50a328c60..3a09f10606 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/AndGroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/AndGroupMatcher.java @@ -21,8 +21,7 @@ import java.util.Collection; /** - * AND group matcher - * + * AND group matcher. */ public class AndGroupMatcher extends JoinGroupMatcher { diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/GroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/GroupMatcher.java index a5b2caef94..ac76965cb8 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/GroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/GroupMatcher.java @@ -19,8 +19,7 @@ package org.apache.maven.surefire.group.match; /** - * Group Matcher - * + * Group Matcher. */ public interface GroupMatcher { diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java index a75933ffd7..bdacde6f2a 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java @@ -19,8 +19,7 @@ package org.apache.maven.surefire.group.match; /** - * Inverse group matcher - * + * Inverse group matcher. */ public class InverseGroupMatcher implements GroupMatcher { diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/JoinGroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/JoinGroupMatcher.java index 4180e0e166..bde46688b4 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/JoinGroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/JoinGroupMatcher.java @@ -22,8 +22,7 @@ import java.util.Set; /** - * Joins several group matchers - * + * Joins several group matchers. */ public abstract class JoinGroupMatcher implements GroupMatcher { diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/OrGroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/OrGroupMatcher.java index 92dddbadc3..9be7a43c51 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/OrGroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/OrGroupMatcher.java @@ -21,8 +21,7 @@ import java.util.Collection; /** - * OR group matcher - * + * OR group matcher. */ public class OrGroupMatcher extends JoinGroupMatcher { diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/SingleGroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/SingleGroupMatcher.java index 750cbd0662..5194cbc928 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/SingleGroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/SingleGroupMatcher.java @@ -22,8 +22,7 @@ import java.util.regex.PatternSyntaxException; /** - * Single group matcher - * + * Single group matcher. */ public class SingleGroupMatcher implements GroupMatcher { private final String enabled; diff --git a/surefire-logger-api/src/main/java/org/apache/maven/plugin/surefire/log/api/Level.java b/surefire-logger-api/src/main/java/org/apache/maven/plugin/surefire/log/api/Level.java index a99c04e193..019f63bdff 100644 --- a/surefire-logger-api/src/main/java/org/apache/maven/plugin/surefire/log/api/Level.java +++ b/surefire-logger-api/src/main/java/org/apache/maven/plugin/surefire/log/api/Level.java @@ -27,22 +27,22 @@ */ public enum Level { /** - * direct println + * Direct println. */ NO_COLOR, /** - * defaults to bold, green + * Defaults to bold, green. */ FAILURE, /** - * defaults to bold, yellow + * Defaults to bold, yellow. */ UNSTABLE, /** - * defaults to bold, red + * Defaults to bold, red. */ SUCCESS; diff --git a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/NullStackTraceFilter.java b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/NullStackTraceFilter.java index 629c77a604..c338b6b244 100644 --- a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/NullStackTraceFilter.java +++ b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/NullStackTraceFilter.java @@ -19,7 +19,7 @@ package org.apache.maven.surefire.report; /** - * always returns true + * Always returns true. */ final class NullStackTraceFilter implements StackTraceFilter { @Override diff --git a/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java b/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java index ed76798749..c8b86fa810 100644 --- a/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java +++ b/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java @@ -26,8 +26,7 @@ import org.apache.maven.surefire.api.util.ReflectionUtils; /** - * Reflection facade for JUnit3 classes - * + * Reflection facade for JUnit3 classes. */ public final class JUnit3Reflector { private static final String TEST_CASE = "junit.framework.Test"; diff --git a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4ProviderUtil.java b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4ProviderUtil.java index 4b88aadc00..685758140b 100644 --- a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4ProviderUtil.java +++ b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4ProviderUtil.java @@ -33,11 +33,9 @@ import static org.junit.runner.Description.TEST_MECHANISM; /** - * - * Utility method used among all JUnit4 providers + * Utility method used among all JUnit4 providers. * * @author Qingzhou Luo - * */ public final class JUnit4ProviderUtil { private JUnit4ProviderUtil() { @@ -45,7 +43,7 @@ private JUnit4ProviderUtil() { } /** - * Get all descriptions from a list of Failures + * Get all descriptions from a list of Failures. * * @param allFailures the list of failures for a given test class * @return the list of descriptions @@ -68,6 +66,7 @@ public static boolean isFailureInsideJUnitItself(Description failure) { /** * Java Patterns of regex is slower than cutting a substring. + * * @param description method(class) or method[#](class) or method[#whatever-literals](class) * @return method JUnit test method */ diff --git a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4Reflector.java b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4Reflector.java index ba919b30d6..c75f09c3c7 100644 --- a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4Reflector.java +++ b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4Reflector.java @@ -29,8 +29,7 @@ import static org.apache.maven.surefire.api.util.ReflectionUtils.tryGetMethod; /** - * JUnit4 reflection helper - * + * JUnit4 reflection helper. */ public final class JUnit4Reflector { private static final Class[] PARAMS = {Class.class}; diff --git a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4RunListener.java b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4RunListener.java index 09f7abc68b..0117a45338 100644 --- a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4RunListener.java +++ b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnit4RunListener.java @@ -44,8 +44,7 @@ import static org.apache.maven.surefire.common.junit4.JUnit4Reflector.getAnnotatedIgnoreValue; /** - * RunListener for JUnit4, delegates to our own RunListener - * + * RunListener for JUnit4, delegates to our own RunListener. */ public class JUnit4RunListener extends RunListener implements TestOutputReceiver, RunModeSetter { protected final ClassMethodIndexer classMethodIndexer = new ClassMethodIndexer(); diff --git a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java index dc477d132b..f2126204fe 100644 --- a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java +++ b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java @@ -25,7 +25,7 @@ import org.junit.runner.notification.RunListener; /** - * Test listener to record all the failures during one run + * Test listener to record all the failures during one run. * * @author Qingzhou Luo */ diff --git a/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/FilterFactory.java b/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/FilterFactory.java index 45d21b7513..4682a2d11c 100644 --- a/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/FilterFactory.java +++ b/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/FilterFactory.java @@ -46,7 +46,7 @@ public FilterFactory(ClassLoader testClassLoader) { /** * @return {@code true} if non-blank * {@link ProviderParameterNames#TESTNG_GROUPS_PROP} and/or - * {@link ProviderParameterNames#TESTNG_EXCLUDEDGROUPS_PROP} exists. + * {@link ProviderParameterNames#TESTNG_EXCLUDEDGROUPS_PROP} exists */ public boolean canCreateGroupFilter(Map providerProperties) { String groups = providerProperties.get(TESTNG_GROUPS_PROP); diff --git a/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/JUnit48TestChecker.java b/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/JUnit48TestChecker.java index 324eb876aa..96af928465 100644 --- a/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/JUnit48TestChecker.java +++ b/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/JUnit48TestChecker.java @@ -24,7 +24,8 @@ import org.junit.experimental.runners.Enclosed; /** - * Looks for additional junit48-like features + * Looks for additional junit48-like features. + * * @author Geoff Denning * @author Kristian Rosenvold */ diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java index 26f0e359b8..6efd5efc84 100644 --- a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java +++ b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java @@ -305,7 +305,7 @@ private TestIdentifier findTopParent(TestIdentifier testIdentifier) { } /** - * Checks if the test identifier has a parent ID but using reflection as it's only available from 1.8 + * Checks if the test identifier has a parent ID but using reflection as it's only available from 1.8. * * @param testIdentifier the test identifier to check * @return true if the test identifier has a parent ID, false otherwise @@ -514,7 +514,7 @@ public String getClassDisplayName() { } /** - * @return Map of tests that failed. + * @return map of tests that failed */ Map getFailures() { return failures; diff --git a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/JUnitTestSetExecutor.java b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/JUnitTestSetExecutor.java index 2d113d385d..f4912095db 100644 --- a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/JUnitTestSetExecutor.java +++ b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/JUnitTestSetExecutor.java @@ -26,8 +26,7 @@ import org.apache.maven.surefire.common.junit3.JUnit3Reflector; /** - * JUnit3 test set - * + * JUnit3 test set. */ public final class JUnitTestSetExecutor implements SurefireTestSetExecutor { private final JUnit3Reflector reflector; diff --git a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoTestSetExecutor.java b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoTestSetExecutor.java index f9769aea35..21ded90531 100644 --- a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoTestSetExecutor.java +++ b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/PojoTestSetExecutor.java @@ -35,8 +35,7 @@ import static org.apache.maven.surefire.api.report.SimpleReportEntry.withException; /** - * Executes a JUnit3 test class - * + * Executes a JUnit3 test class. */ public class PojoTestSetExecutor implements SurefireTestSetExecutor { private static final String TEST_METHOD_PREFIX = "test"; diff --git a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/SurefireTestSetExecutor.java b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/SurefireTestSetExecutor.java index 6379c6ae12..33835d8c56 100644 --- a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/SurefireTestSetExecutor.java +++ b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/SurefireTestSetExecutor.java @@ -21,8 +21,7 @@ import org.apache.maven.surefire.api.testset.TestSetFailedException; /** - * Describes a single test set - * + * Describes a single test set. */ public interface SurefireTestSetExecutor { void execute(Class testClass, ClassLoader loader) throws TestSetFailedException; diff --git a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/TestListenerInvocationHandler.java b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/TestListenerInvocationHandler.java index 083d076f33..adfc431b28 100644 --- a/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/TestListenerInvocationHandler.java +++ b/surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/TestListenerInvocationHandler.java @@ -37,7 +37,6 @@ /** * Invocation Handler for TestListener proxies to delegate to our {@link RunListener} - * */ public class TestListenerInvocationHandler implements InvocationHandler { // The String names of the four methods in interface junit.framework.TestListener diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConcurrentRunListener.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConcurrentRunListener.java index cb819a052c..db26d9aa4d 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConcurrentRunListener.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConcurrentRunListener.java @@ -37,10 +37,10 @@ * Stuff to remember about JUnit threading: * parallel=classes; beforeClass/afterClass, constructor and all tests method run on same thread * parallel=methods; beforeClass/afterClass run on main thread, constructor + each test method run on same thread - * parallel=both; same as parallel=methods + * parallel=both; same as parallel=methods. * - * @see org.apache.maven.surefire.junitcore.JUnitCoreRunListener for details about regular junit run listening * @author Kristian Rosenvold + * @see org.apache.maven.surefire.junitcore.JUnitCoreRunListener for details about regular junit run listening */ @Deprecated // remove this class after StatelessXmlReporter is capable of parallel test sets processing abstract class ConcurrentRunListener implements TestReportListener { diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCore.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCore.java index d4101ce8a0..ef585de411 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCore.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCore.java @@ -30,8 +30,8 @@ * is called anyway in finally block. * * @author Tibor Digana (tibor17) - * @since 2.19 * @see JUnit issue 1186 + * @since 2.19 */ class JUnitCore { private final Notifier notifier; diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreParameters.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreParameters.java index 51eea78d40..82802241f4 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreParameters.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreParameters.java @@ -121,8 +121,8 @@ public boolean isParallelSuites() { } /** - * @deprecated Instead use the expression isParallelMethods() && isParallelClasses(). * @return {@code true} if classes and methods are both parallel + * @deprecated instead use the expression isParallelMethods() && isParallelClasses() */ @Deprecated @SuppressWarnings("unused") diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreRunListener.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreRunListener.java index 31a939f401..c2e0a2cde2 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreRunListener.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreRunListener.java @@ -43,7 +43,7 @@ final class JUnitCoreRunListener extends JUnit4RunListener { /** * @param reporter the report manager to log testing events to - * @param classMethodCounts A map of methods + * @param classMethodCounts a map of methods */ JUnitCoreRunListener(ConcurrentRunListener reporter, Map classMethodCounts) { super(reporter); diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreWrapper.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreWrapper.java index 96fc928fa8..eeab7fa1d7 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreWrapper.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/JUnitCoreWrapper.java @@ -45,7 +45,7 @@ import static org.junit.runner.Request.classes; /** - * Encapsulates access to JUnitCore + * Encapsulates access to JUnitCore. * * @author Kristian Rosenvold */ diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/LogicalStream.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/LogicalStream.java index a4846be6d2..6015275bce 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/LogicalStream.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/LogicalStream.java @@ -25,7 +25,7 @@ import org.apache.maven.surefire.api.report.TestOutputReportEntry; /** - * A stream-like object that preserves ordering between stdout/stderr + * A stream-like object that preserves ordering between stdout/stderr. */ @Deprecated // remove this class after StatelessXmlReporter is capable of parallel test sets processing final class LogicalStream { diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestMethod.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestMethod.java index cdff242e8f..307b03208e 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestMethod.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestMethod.java @@ -31,7 +31,7 @@ * Represents the test-state of a single test method that is run. *
    * Notes about thread safety: This instance is serially confined to 1-3 threads (construction, test-run, reporting), - * without any actual parallel access + * without any actual parallel access. */ @Deprecated // remove this class after StatelessXmlReporter is capable of parallel test sets processing class TestMethod implements TestOutputReceiver { diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Balancer.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Balancer.java index bbaabb8ae4..cbf4317764 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Balancer.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Balancer.java @@ -35,7 +35,7 @@ public interface Balancer { * Acquires a permit from this balancer, blocking until one is available. * * @return {@code true} if current thread is NOT interrupted - * while waiting for a permit. + * while waiting for a permit */ boolean acquirePermit(); diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/BalancerFactory.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/BalancerFactory.java index 58d2618ddc..1202dfaa9a 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/BalancerFactory.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/BalancerFactory.java @@ -28,7 +28,8 @@ private BalancerFactory() {} /** * Infinite permits. - * @return Balancer wih infinite permits + * + * @return balancer wih infinite permits */ public static Balancer createInfinitePermitsBalancer() { return balancer(0, false); @@ -39,7 +40,7 @@ public static Balancer createInfinitePermitsBalancer() { * Fairness guarantees the waiting schedulers to wake up in order they acquired a permit. * * @param concurrency number of permits to acquire when maintaining concurrency on tests - * @return Balancer with given number of permits + * @return balancer with given number of permits */ public static Balancer createBalancer(int concurrency) { return balancer(concurrency, false); @@ -50,7 +51,7 @@ public static Balancer createBalancer(int concurrency) { * Fairness guarantees the waiting schedulers to wake up in order they acquired a permit. * * @param concurrency number of permits to acquire when maintaining concurrency on tests - * @return Balancer with given number of permits + * @return balancer with given number of permits */ public static Balancer createBalancerWithFairness(int concurrency) { return balancer(concurrency, true); diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ParallelComputerBuilder.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ParallelComputerBuilder.java index 08f365cf7d..49efe0d7e8 100755 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ParallelComputerBuilder.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ParallelComputerBuilder.java @@ -140,10 +140,10 @@ ParallelComputerBuilder useOnePool() { } /** - * @param totalPoolSize Pool size where suites, classes and methods are executed in parallel. + * @param totalPoolSize pool size where suites, classes and methods are executed in parallel. * If the totalPoolSize is {@link Integer#MAX_VALUE}, the pool capacity is not * limited. - * @throws IllegalArgumentException If totalPoolSize is < 1. + * @throws IllegalArgumentException if totalPoolSize is < 1 */ ParallelComputerBuilder useOnePool(int totalPoolSize) { if (totalPoolSize < 1) { diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Scheduler.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Scheduler.java index b92f53f376..7041863575 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Scheduler.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/Scheduler.java @@ -146,7 +146,6 @@ public Scheduler( * or {@link #Scheduler(ConsoleLogger, org.junit.runner.Description, SchedulingStrategy)} * @param strategy scheduling strategy * @param concurrency determines maximum concurrent children scheduled a time via {@link #schedule(Runnable)} - * * @see #Scheduler(ConsoleLogger, org.junit.runner.Description, SchedulingStrategy) * @see #Scheduler(ConsoleLogger, org.junit.runner.Description, SchedulingStrategy, int) */ @@ -186,7 +185,7 @@ private void setController(Controller masterController) { /** * @param slave a slave scheduler to register - * @return {@code true} if successfully registered the slave. + * @return {@code true} if successfully registered the slave */ private boolean register(Scheduler slave) { boolean canRegister = slave != null && slave != this; @@ -202,7 +201,7 @@ private boolean register(Scheduler slave) { } /** - * @return {@code true} if new tasks can be scheduled. + * @return {@code true} if new tasks can be scheduled */ private boolean canSchedule() { return !shutdown && (masterController == null || masterController.canSchedule()); @@ -236,18 +235,18 @@ protected ShutdownResult describeStopped(boolean stopNow) { /** * Stop/Shutdown/Interrupt scheduler and its children (if any). * - * @param executedTests Started tests which have finished normally or abruptly till called this method. - * @param incompleteTests Started tests which have finished incomplete due to shutdown. - * @param tryCancelFutures Useful to set to {@code false} if a timeout is specified in plugin config. + * @param executedTests started tests which have finished normally or abruptly till called this method + * @param incompleteTests started tests which have finished incomplete due to shutdown + * @param tryCancelFutures useful to set to {@code false} if a timeout is specified in plugin config. * When the runner of * {@link ParallelComputer#getSuite(org.junit.runners.model.RunnerBuilder, Class[])} * is finished in * {@link org.junit.runners.Suite#run(org.junit.runner.notification.RunNotifier)} * all the thread-pools created by {@link ParallelComputerBuilder.PC} are already dead. * See the unit test {@code ParallelComputerBuilder#timeoutAndForcedShutdown()}. - * @param stopNow Interrupting tests by {@link java.util.concurrent.ExecutorService#shutdownNow()} or + * @param stopNow interrupting tests by {@link java.util.concurrent.ExecutorService#shutdownNow()} or * {@link java.util.concurrent.Future#cancel(boolean) Future#cancel(true)} or - * {@link Thread#interrupt()}. + * {@link Thread#interrupt()} */ private void stop( Collection executedTests, @@ -369,7 +368,7 @@ private Controller(Scheduler slave) { } /** - * @return {@code true} if new children can be scheduled. + * @return {@code true} if new children can be scheduled */ boolean canSchedule() { return Scheduler.this.canSchedule(); diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/SchedulingStrategy.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/SchedulingStrategy.java index 7495464e8a..b4639c09cc 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/SchedulingStrategy.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/SchedulingStrategy.java @@ -62,7 +62,7 @@ protected SchedulingStrategy(ConsoleLogger logger) { * * @return {@code true} if successfully stopped the scheduler, else * {@code false} if already stopped (a shared thread - * pool was shutdown externally). + * pool was shutdown externally) * @throws InterruptedException if interrupted while waiting * for scheduled tasks to finish * @see org.junit.runners.model.RunnerScheduler#finished() @@ -75,7 +75,7 @@ protected SchedulingStrategy(ConsoleLogger logger) { * * @return {@code true} if successfully stopped the scheduler, else * {@code false} if already stopped (a shared thread - * pool was shutdown externally). + * pool was shutdown externally) * @see java.util.concurrent.ExecutorService#shutdown() */ protected abstract boolean stop(); @@ -89,7 +89,7 @@ protected SchedulingStrategy(ConsoleLogger logger) { * * @return {@code true} if successfully stopped the scheduler, else * {@code false} if already stopped (a shared thread - * pool was shutdown externally). + * pool was shutdown externally) * @see java.util.concurrent.ExecutorService#shutdownNow() */ protected boolean stopNow() { @@ -99,7 +99,8 @@ protected boolean stopNow() { /** * Persistently disables this strategy. Atomically ignores {@link Balancer} to acquire a new permit.
    * The method {@link #canSchedule()} atomically returns {@code false}. - * @return {@code true} if {@link #canSchedule()} has return {@code true} on the beginning of this method call. + * + * @return {@code true} if {@link #canSchedule()} has return {@code true} on the beginning of this method call */ protected boolean disable() { return canSchedule.getAndSet(false); @@ -109,12 +110,12 @@ protected void setDefaultShutdownHandler(Scheduler.ShutdownHandler handler) {} /** * @return {@code true} if a thread pool associated with this strategy - * can be shared with other strategies. + * can be shared with other strategies */ protected abstract boolean hasSharedThreadPool(); /** - * @return {@code true} unless stopped, finished or disabled. + * @return {@code true} unless stopped, finished or disabled */ protected boolean canSchedule() { return canSchedule.get(); diff --git a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ThreadResourcesBalancer.java b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ThreadResourcesBalancer.java index 5bb47dd4a1..4f8dd734d6 100644 --- a/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ThreadResourcesBalancer.java +++ b/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ThreadResourcesBalancer.java @@ -59,7 +59,7 @@ final class ThreadResourcesBalancer implements Balancer { * Acquires a permit from this balancer, blocking until one is available. * * @return {@code true} if current thread is NOT interrupted - * while waiting for a permit. + * while waiting for a permit */ @Override public boolean acquirePermit() { diff --git a/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/GroupMatcherMethodSelector.java b/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/GroupMatcherMethodSelector.java index fa8d02efc6..abfd24b3f3 100644 --- a/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/GroupMatcherMethodSelector.java +++ b/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/GroupMatcherMethodSelector.java @@ -33,7 +33,6 @@ /** * Method selector delegating to {@link GroupMatcher} to decide if a method is included or not. - * */ public class GroupMatcherMethodSelector implements IMethodSelector { diff --git a/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/MethodSelector.java b/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/MethodSelector.java index b5930ad4ef..368159d95e 100644 --- a/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/MethodSelector.java +++ b/surefire-providers/surefire-testng-utils/src/main/java/org/apache/maven/surefire/testng/utils/MethodSelector.java @@ -26,7 +26,7 @@ import org.testng.ITestNGMethod; /** - * For internal use only + * For internal use only. * * @author Olivier Lamy * @since 2.7.3 diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/ConfigurationAwareTestNGReporter.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/ConfigurationAwareTestNGReporter.java index 71637ab56d..4ac3c9e761 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/ConfigurationAwareTestNGReporter.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/ConfigurationAwareTestNGReporter.java @@ -23,7 +23,7 @@ import org.testng.internal.IResultListener; /** - * Just like TestNGReporter, but explicitly implements IResultListener; this interface is new in TestNG 5.5 + * Just like TestNGReporter, but explicitly implements IResultListener; this interface is new in TestNG 5.5. * * @author Dan Fabulich */ diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java index 816e564252..8813436761 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java @@ -64,10 +64,10 @@ * @author Alex Popescu */ final class TestNGExecutor { - /** The default name for a suite launched from the maven surefire plugin */ + /** The default name for a suite launched from the maven surefire plugin. */ private static final String DEFAULT_SUREFIRE_SUITE_NAME = "Surefire suite"; - /** The default name for a test launched from the maven surefire plugin */ + /** The default name for a test launched from the maven surefire plugin. */ private static final String DEFAULT_SUREFIRE_TEST_NAME = "Surefire test"; private static final boolean HAS_TEST_ANNOTATION_ON_CLASSPATH = diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java index ec887b792f..1f9f9919d4 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java @@ -64,7 +64,7 @@ public class TestNGReporter * method call has already associated with this instance before the test * suite is run. * - * @param reportManager Instance to report suite status to + * @param reportManager instance to report suite status to */ public TestNGReporter(TestReportListener reportManager) { this.reporter = reportManager; @@ -146,8 +146,8 @@ public void onFinish(ISuite suite) {} * Creates a string out of the list of testng groups in the * form of
    "group1,group2,group3"
    . * - * @param groups The groups being run - * @param defaultValue The default to use if no groups + * @param groups the groups being run + * @param defaultValue the default to use if no groups * @return a string describing the groups */ private static String groupString(String[] groups, String defaultValue) { @@ -182,7 +182,7 @@ public void onConfigurationSuccess(ITestResult result) { /** * Acquire a better representation of the test name that includes parameters and the invocation count, if there are - * any parameters + * any parameters. * * @param result the test result to extract from * @return a descriptive name for the test diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java index b73b9bacdf..508993ba2f 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java @@ -30,8 +30,7 @@ import org.testng.xml.XmlSuite; /** - * Configurator that relies on reflection to set parameters in TestNG - * + * Configurator that relies on reflection to set parameters in TestNG. */ public abstract class AbstractDirectConfigurator implements Configurator { final Map setters; @@ -118,8 +117,7 @@ static Class loadClass(String className) throws TestSetFailedException { } /** - * Describes a property setter by method name and parameter class - * + * Describes a property setter by method name and parameter class. */ public static final class Setter { private final String setterName; diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/Configurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/Configurator.java index c24bf1b2d5..b674b653de 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/Configurator.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/Configurator.java @@ -25,8 +25,7 @@ import org.testng.xml.XmlSuite; /** - * Configurator for passing configuration properties to TestNG - * + * Configurator for passing configuration properties to TestNG. */ public interface Configurator { void configure(TestNG testng, Map options) throws TestSetFailedException; diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java index 3f1b0773f8..7bf16a1b39 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java @@ -43,7 +43,7 @@ public class TestNG740Configurator extends TestNG60Configurator { * Surefire plugin configuration to its corresponding constant and applies this to the specified suite object. * * @param suite TestNG {@link XmlSuite} object - * @param options Surefire plugin configuration options + * @param options surefire plugin configuration options * @throws TestSetFailedException if unable to convert specified [parallel] setting */ @Override diff --git a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java index c62e89b1f8..bbe7f6a751 100644 --- a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java +++ b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java @@ -24,9 +24,6 @@ import static org.apache.maven.shared.utils.StringUtils.isNotBlank; -/** - * - */ public final class ReportTestCase { private String fullClassName; diff --git a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java index 6e42cb44f8..deb33e1fe2 100644 --- a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java +++ b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java @@ -21,9 +21,6 @@ import java.util.ArrayList; import java.util.List; -/** - * - */ public final class ReportTestSuite { private final List testCases = new ArrayList<>(); diff --git a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java index 2303176473..522bd3be2a 100644 --- a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java +++ b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java @@ -34,9 +34,6 @@ import static org.apache.maven.shared.utils.StringUtils.split; -/** - * - */ public final class SurefireReportParser { private static final String INCLUDES = "*.xml"; @@ -166,7 +163,7 @@ public List getFailureDetails(List testSuites) * Returns {@code true} if the specified directory contains at least one report file. * * @param directory the directory - * @return {@code true} if the specified directory contains at least one report file. + * @return {@code true} if the specified directory contains at least one report file */ public static boolean hasReportFiles(File directory) { return directory != null diff --git a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java index c0643fd92d..6ef0c312e8 100644 --- a/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java +++ b/surefire-report-parser/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java @@ -40,9 +40,6 @@ import static java.nio.charset.StandardCharsets.UTF_8; import static org.apache.maven.shared.utils.StringUtils.isBlank; -/** - * - */ public final class TestSuiteXmlParser extends DefaultHandler { private final ConsoleLogger consoleLogger;