Skip to content

Commit 75341ce

Browse files
authored
Grammar fixes (#1291)
1 parent 77bdcfa commit 75341ce

File tree

20 files changed

+37
-38
lines changed

20 files changed

+37
-38
lines changed

maven-scm-api/src/main/java/org/apache/maven/scm/CommandParameters.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public int getInt(CommandParameter parameter) throws ScmException {
9898
/**
9999
* Return the parameter value as int or the default value if it doesn't exist.
100100
*
101-
* @param parameter The parameter
102-
* @param defaultValue The defaultValue
103-
* @return The parameter value as a int
101+
* @param parameter the parameter
102+
* @param defaultValue the default value
103+
* @return the parameter value as an int
104104
* @throws ScmException if the value is in the wrong type
105105
*/
106106
public int getInt(CommandParameter parameter, int defaultValue) throws ScmException {

maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
* </p>
2828
* <p>
2929
* There are two types of status defined in this class: <br>
30-
* 1) Status: Changes in the working tree, not yet committed to the repository eg. MODIFIED <br>
31-
* 2) Transaction: The file is part of some transaction with the repository eg. CHECKED_IN
30+
* 1) Status: Changes in the working tree, not yet committed to the repository e.g. MODIFIED <br>
31+
* 2) Transaction: The file is part of some transaction with the repository e.g. CHECKED_IN
3232
* </p>
3333
*
3434
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>

maven-scm-api/src/main/java/org/apache/maven/scm/ScmResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class ScmResult implements Serializable {
4646
* Copy constructor.
4747
* <p>
4848
* Typically used from derived classes when wrapping a ScmResult
49-
* into a specific type eg. AddScmResult
49+
* into a specific type e.g. AddScmResult
5050
*
5151
* @param scmResult not null
5252
*/
@@ -87,7 +87,7 @@ public boolean isSuccess() {
8787

8888
/**
8989
* @return A message from the provider. On success this would typically be null or
90-
* an empty string. On failure it would be the error message from the provider
90+
* an empty string. On failure, it would be the error message from the provider
9191
*/
9292
public String getProviderMessage() {
9393
return providerMessage;

maven-scm-api/src/main/java/org/apache/maven/scm/command/remoteinfo/RemoteInfoScmResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ public class RemoteInfoScmResult extends ScmResult {
3131
private static final long serialVersionUID = -5571403202068311222L;
3232

3333
/**
34-
* depending on scm informations can be different
34+
* depending on scm, information can be different
3535
* svn: branch name / remote url
3636
*/
3737
private Map<String, String> branches = new HashMap<>();
3838

3939
/**
40-
* depending on scm informations can be different
40+
* depending on scm, information can be different
4141
* svn: branch name / remote url
4242
*/
4343
private Map<String, String> tags = new HashMap<>();

maven-scm-api/src/main/java/org/apache/maven/scm/manager/AbstractScmManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected void setScmProviders(Map<String, ScmProvider> providers) {
8181
}
8282

8383
/**
84-
* @param providerType the type of SCM, eg. <code>svn</code>, <code>git</code>
84+
* @param providerType the type of SCM, e.g. <code>svn</code>, <code>git</code>
8585
* @param provider the provider that will be used for that SCM type
8686
* @deprecated use {@link #setScmProvider(String, ScmProvider)} instead
8787
*/
@@ -94,7 +94,7 @@ protected void addScmProvider(String providerType, ScmProvider provider) {
9494
* Set a provider to be used for a type of SCM.
9595
* If there was already a designed provider for that type it will be replaced.
9696
*
97-
* @param providerType the type of SCM, eg. <code>svn</code>, <code>git</code>
97+
* @param providerType the type of SCM, e.g. <code>svn</code>, <code>git</code>
9898
* @param provider the provider that will be used for that SCM type
9999
*/
100100
@Override

maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public interface ScmManager {
6363
// ----------------------------------------------------------------------
6464

6565
/**
66-
* Generate a SCMRepository from a SCM url.
66+
* Generate a SCMRepository from an SCM URL.
6767
*
6868
* @param scmUrl the scm url
6969
* @return The scm repository
@@ -102,16 +102,16 @@ ScmRepository makeProviderScmRepository(String providerType, File path)
102102
* Set a provider to be used for a type of SCM. If there was already a designed provider for that type it will be
103103
* replaced.
104104
*
105-
* @param providerType the type of SCM, eg. <code>svn</code>, <code>git</code>
105+
* @param providerType the type of SCM, e.g. <code>svn</code>, <code>git</code>
106106
* @param provider the provider that will be used for that SCM type
107107
*/
108108
void setScmProvider(String providerType, ScmProvider provider);
109109

110110
/**
111111
* Set the provider implementation
112112
*
113-
* @param providerType The provider type, eg. <code>git</code>
114-
* @param providerImplementation The provider implementation (the role-hint of the provider), eg. <code>git</code>,
113+
* @param providerType The provider type, e.g. <code>git</code>
114+
* @param providerImplementation The provider implementation (the role-hint of the provider), e.g. <code>git</code>,
115115
* <code>svn</code>
116116
*/
117117
void setScmProviderImplementation(String providerType, String providerImplementation);
@@ -378,9 +378,9 @@ DiffScmResult diff(
378378
throws ScmException;
379379

380380
/**
381-
* Make a file editable. This is used in source control systems where you look at read-only files and you need to
382-
* make them not read-only anymore before you can edit them. This can also mean that no other user in the system can
383-
* make the file not read-only anymore.
381+
* Make a file editable. This is used in source control systems where you look at read-only files, and you need to
382+
* make them writable before you can edit them. This can also mean that no other user in the system can
383+
* make the file writable.
384384
*
385385
* @param repository the source control system
386386
* @param fileSet the files to make editable

maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,9 @@ UpdateScmResult update(
865865
throws ScmException;
866866

867867
/**
868-
* Make a file editable. This is used in source control systems where you look at read-only files
869-
* and you need to make them not read-only anymore before you can edit them. This can also mean
870-
* that no other user in the system can make the file not read-only anymore.
868+
* Make a file editable. This is used in source control systems where you look at read-only files,
869+
* and you need to make them writable before you can edit them. This can also mean
870+
* that no other user in the system can make the file writable.
871871
*
872872
* @param repository the source control system
873873
* @param fileSet the files to make editable

maven-scm-api/src/main/java/org/apache/maven/scm/provider/ScmProviderRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void setPersistCheckout(boolean persistCheckout) {
165165

166166
/**
167167
* Get a {@link ScmProviderRepository} that represents the parent folder in the repository.
168-
* Useful when the repository does not exist yet and we need to create it from the parent.
168+
* Useful when the repository does not exist yet, and we need to create it from the parent.
169169
*
170170
* @return the parent repository
171171
* @throws UnsupportedOperationException unless overridden by subclass

maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private void runGoals(String relativePathProjectDirectory) throws MojoExecutionE
158158

159159
/**
160160
* Determines the path of the working directory. By default, this is the checkout directory. For some SCMs,
161-
* the project root directory is not the checkout directory itself, but a SCM-specific subdirectory. The
161+
* the project root directory is not the checkout directory itself, but an SCM-specific subdirectory. The
162162
* build can furthermore optionally be executed in a subdirectory of this project directory, in case.
163163
*
164164
* @param checkoutDirectory

maven-scm-plugin/src/site/markdown/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Check the [Maven SCM list](http://maven.apache.org/scm/scms-overview.html) for t
6161

6262
# Committing and updating changes through Maven
6363

64-
Assuming that SCM has been configured in the `pom.xml` and the project directory is managed by a SCM, invoking the checkin goal in the SCM will start the commit process for all configured sources in your `pom.xml`.
64+
Assuming that SCM has been configured in the `pom.xml` and the project directory is managed by an SCM, invoking the checkin goal in the SCM will start the commit process for all configured sources in your `pom.xml`.
6565

6666
**The files should be added beforehand by an external scm client.**
6767

0 commit comments

Comments
 (0)