Fix Checkstyle reported issues with maven-shared-resources 3

This commit is contained in:
Sylwester Lachiewicz 2021-01-08 04:10:00 +01:00
parent 12f3e7e878
commit ab95197436
4 changed files with 6 additions and 6 deletions

View File

@ -32,5 +32,5 @@ public interface BuildResumptionAnalyzer
* @param result Outcome of the current Maven build. * @param result Outcome of the current Maven build.
* @return A {@link BuildResumptionData} instance or {@link Optional#empty()} if resuming the build is not possible. * @return A {@link BuildResumptionData} instance or {@link Optional#empty()} if resuming the build is not possible.
*/ */
Optional<BuildResumptionData> determineBuildResumptionData( final MavenExecutionResult result ); Optional<BuildResumptionData> determineBuildResumptionData( MavenExecutionResult result );
} }

View File

@ -37,7 +37,7 @@ public interface BuildResumptionDataRepository
* @param buildResumptionData Information needed to resume the build. * @param buildResumptionData Information needed to resume the build.
* @throws BuildResumptionPersistenceException When an error occurs while persisting data. * @throws BuildResumptionPersistenceException When an error occurs while persisting data.
*/ */
void persistResumptionData( final MavenProject rootProject, final BuildResumptionData buildResumptionData ) void persistResumptionData( MavenProject rootProject, BuildResumptionData buildResumptionData )
throws BuildResumptionPersistenceException; throws BuildResumptionPersistenceException;
/** /**
@ -45,12 +45,12 @@ public interface BuildResumptionDataRepository
* @param request The execution request that will be enriched. * @param request The execution request that will be enriched.
* @param rootProject The root project that is being built. * @param rootProject The root project that is being built.
*/ */
void applyResumptionData( final MavenExecutionRequest request, final MavenProject rootProject ); void applyResumptionData( MavenExecutionRequest request, MavenProject rootProject );
/** /**
* Removes previously stored resumption data. * Removes previously stored resumption data.
* @param rootProject The root project that is being built. * @param rootProject The root project that is being built.
*/ */
void removeResumptionData( final MavenProject rootProject ); void removeResumptionData( MavenProject rootProject );
} }

View File

@ -36,6 +36,6 @@ public interface ProjectCollectionStrategy
* @return * @return
* @throws ProjectBuildingException * @throws ProjectBuildingException
*/ */
List<MavenProject> collectProjects( final MavenExecutionRequest request ) List<MavenProject> collectProjects( MavenExecutionRequest request )
throws ProjectBuildingException; throws ProjectBuildingException;
} }

View File

@ -64,7 +64,7 @@ public class DefaultBuildPomXMLFilterFactory extends BuildToRawPomXMLFilterFacto
@Override @Override
protected BiFunction<String, String, String> getDependencyKeyToVersionMapper() protected BiFunction<String, String, String> getDependencyKeyToVersionMapper()
{ {
return (g, a) -> Optional.ofNullable( context.getRawModel( g, a ) ) return ( g, a ) -> Optional.ofNullable( context.getRawModel( g, a ) )
.map( m -> toVersion( m ) ) .map( m -> toVersion( m ) )
.orElse( null ); .orElse( null );
} }