Skip to content

Commit d0ca534

Browse files
committed
fix: getter gets
1 parent e633bc1 commit d0ca534

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/main/java/org/apache/commons/release/plugin/internal/ArtifactUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private ArtifactUtils() {
3636
}
3737

3838
/**
39-
* Returns the conventional filename for the given artifact.
39+
* Gets the conventional filename for the given artifact.
4040
*
4141
* @param artifact A Maven artifact.
4242
* @return A filename.
@@ -46,7 +46,7 @@ public static String getFileName(Artifact artifact) {
4646
}
4747

4848
/**
49-
* Returns the filename for the given artifact with a changed extension.
49+
* Gets the filename for the given artifact with a changed extension.
5050
*
5151
* @param artifact A Maven artifact.
5252
* @param extension The file name extension.
@@ -63,7 +63,7 @@ public static String getFileName(Artifact artifact, String extension) {
6363
}
6464

6565
/**
66-
* Returns the Package URL corresponding to this artifact.
66+
* Gets the Package URL corresponding to this artifact.
6767
*
6868
* @param artifact A maven artifact.
6969
* @return A PURL for the given artifact.
@@ -81,7 +81,7 @@ public static String getPackageUrl(Artifact artifact) {
8181
}
8282

8383
/**
84-
* Returns a map of checksum algorithm names to hex-encoded digest values for the given artifact file.
84+
* Gets a map of checksum algorithm names to hex-encoded digest values for the given artifact file.
8585
*
8686
* @param artifact A Maven artifact.
8787
* @return A map of checksum algorithm names to hex-encoded digest values.

src/main/java/org/apache/commons/release/plugin/internal/GitUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static String scmToDownloadUri(String scmUri, Path repositoryPath) throws
6767
}
6868

6969
/**
70-
* Returns the current branch name for the given repository path.
70+
* Gets the current branch name for the given repository path.
7171
*
7272
* <p>Returns the commit SHA if the repository is in a detached HEAD state.
7373
*

src/main/java/org/apache/commons/release/plugin/mojos/BuildAttestationMojo.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void setOutputDirectory(final File outputDirectory) {
225225
}
226226

227227
/**
228-
* Returns the SCM directory.
228+
* Gets the SCM directory.
229229
*
230230
* @return The SCM directory.
231231
*/
@@ -270,7 +270,7 @@ void setSignAttestation(final boolean signAttestation) {
270270
}
271271

272272
/**
273-
* Overrides the GPG signer used for signing. Intended for testing.
273+
* Sets the GPG signer used for signing. Intended for testing.
274274
*
275275
* @param signer the signer to use
276276
*/
@@ -279,7 +279,7 @@ void setSigner(final AbstractGpgSigner signer) {
279279
}
280280

281281
/**
282-
* Returns the GPG signer, creating and preparing it from plugin parameters if not already set.
282+
* Gets the GPG signer, creating and preparing it from plugin parameters if not already set.
283283
*
284284
* @return the prepared signer
285285
* @throws MojoFailureException if signer preparation fails
@@ -421,7 +421,7 @@ private List<ResourceDescriptor> getSubjects() throws MojoExecutionException {
421421
}
422422

423423
/**
424-
* Returns resource descriptors for the JVM, Maven installation, SCM source, and project dependencies.
424+
* Gets resource descriptors for the JVM, Maven installation, SCM source, and project dependencies.
425425
*
426426
* @return A list of resolved build dependencies.
427427
* @throws MojoExecutionException If any dependency cannot be resolved or hashed.
@@ -441,7 +441,7 @@ private List<ResourceDescriptor> getBuildDependencies() throws MojoExecutionExce
441441
}
442442

443443
/**
444-
* Returns resource descriptors for all resolved project dependencies.
444+
* Gets resource descriptors for all resolved project dependencies.
445445
*
446446
* @return A list of resource descriptors for the project's resolved artifacts.
447447
* @throws MojoExecutionException If a dependency artifact cannot be described.
@@ -455,7 +455,7 @@ private List<ResourceDescriptor> getProjectDependencies() throws MojoExecutionEx
455455
}
456456

457457
/**
458-
* Returns a resource descriptor for the current SCM source, including the URI and Git commit digest.
458+
* Gets a resource descriptor for the current SCM source, including the URI and Git commit digest.
459459
*
460460
* @return A resource descriptor for the SCM source.
461461
* @throws IOException If the current branch cannot be determined.
@@ -473,7 +473,7 @@ private ResourceDescriptor getScmDescriptor() throws IOException, MojoExecutionE
473473
}
474474

475475
/**
476-
* Creates and returns an SCM repository from the configured connection URL.
476+
* Gets an SCM repository from the configured connection URL.
477477
*
478478
* @return The SCM repository.
479479
* @throws MojoExecutionException If the SCM repository cannot be created.
@@ -487,7 +487,7 @@ private ScmRepository getScmRepository() throws MojoExecutionException {
487487
}
488488

489489
/**
490-
* Returns the current SCM revision (commit hash) for the configured SCM directory.
490+
* Gets the current SCM revision (commit hash) for the configured SCM directory.
491491
*
492492
* @return The current SCM revision string.
493493
* @throws MojoExecutionException If the revision cannot be retrieved from SCM.
@@ -531,7 +531,7 @@ private String getScmRevision(final InfoScmResult result) throws MojoExecutionEx
531531
}
532532

533533
/**
534-
* Returns build metadata derived from the current Maven session, including start and finish timestamps.
534+
* Gets build metadata derived from the current Maven session, including start and finish timestamps.
535535
*
536536
* @return The build metadata.
537537
*/

0 commit comments

Comments
 (0)