Skip to content

Commit 06a4874

Browse files
bactgoneall
authored andcommitted
Fix minor typos in docstrings
Signed-off-by: Arthit Suriyawongkul <[email protected]>
1 parent 28835c6 commit 06a4874

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/main/java/org/spdx/library/ModelCopyManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public boolean canConvert(String fromSpecVersion,
105105

106106
/**
107107
* @param fromStore Store copied from
108-
* @param fromObjectUri Object URI in the from tsotre
108+
* @param fromObjectUri Object URI in the fromStore
109109
* @param toStore store copied to
110110
* @return the objectId which has already been copied, or null if it has not been copied
111111
*/

src/main/java/org/spdx/library/conversion/Spdx2to3Converter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ public static Agent stringToAgent(String spdx2personOrgString, CreationInfo crea
379379
SpdxConstantsV3.CORE_ORGANIZATION, creationInfo.getCopyManager(), true, creationInfo.getIdPrefix());
380380
organization.setCreationInfo(creationInfo);
381381
if (matcher.groupCount() > 1) {
382-
String origanizationName = matcher.group(2).trim();
383-
organization.setName(origanizationName);
382+
String organizationName = matcher.group(2).trim();
383+
organization.setName(organizationName);
384384
} else {
385385
logger.warn("Missing organization name");
386386
organization.setName("[MISSING]");
@@ -940,7 +940,7 @@ public LicenseAddition convertAndStore(org.spdx.library.model.v2.license.License
940940

941941
/**
942942
* Convert and add properties from the fromException to the toAddition
943-
* @param fromException SPDX spec verion 2 LicenseException to copy properties from
943+
* @param fromException SPDX spec version 2 LicenseException to copy properties from
944944
* @param toAddition SPDX spec version 3 LicenseAddition to copy properties to
945945
* @throws InvalidSPDXAnalysisException on any errors converting
946946
*/
@@ -992,7 +992,7 @@ public ListedLicenseException convertAndStore(org.spdx.library.model.v2.license.
992992
}
993993

994994
/**
995-
* Converts an SPDX spec version 2 SPDX AnyLicenseIfno to an SPDX spec version 3 LicenseExpression
995+
* Converts an SPDX spec version 2 SPDX AnyLicenseInfo to an SPDX spec version 3 LicenseExpression
996996
* @param fromLicense an SPDX spec version 2 AnyLicenseInfo
997997
* @return an SPDX spec version 3 LicenseExpression
998998
* @throws InvalidSPDXAnalysisException on any errors converting
@@ -1027,9 +1027,9 @@ public LicenseExpression convertToLicenseExpression(org.spdx.library.model.v2.li
10271027
}
10281028

10291029
/**
1030-
* Converts an SPDX spec version 2 SPDX AnyLicenseIfno to an SPDX spec version 3 SPDX AnyLicenseIfno and store the result
1030+
* Converts an SPDX spec version 2 SPDX AnyLicenseInfo to an SPDX spec version 3 SPDX AnyLicenseInfo and store the result
10311031
* @param fromLicense an SPDX spec version 2 AnyLicenseInfo
1032-
* @return an SPDX spec version 3 AnyLicenseIfno
1032+
* @return an SPDX spec version 3 AnyLicenseInfo
10331033
* @throws InvalidSPDXAnalysisException on any errors converting
10341034
*/
10351035
public AnyLicenseInfo convertAndStore(org.spdx.library.model.v2.license.AnyLicenseInfo fromLicense) throws InvalidSPDXAnalysisException {
@@ -1201,7 +1201,7 @@ private void convertAndAddFileType(org.spdx.library.model.v2.enumerations.FileTy
12011201
}
12021202

12031203
/**
1204-
* Adds a Sotfware Purpose to a SoftwareArtifact. If the primaryPurpose is already used, add as an additionalPurpose
1204+
* Adds a Software Purpose to a SoftwareArtifact. If the primaryPurpose is already used, add as an additionalPurpose
12051205
* @param purpose purpose to add
12061206
* @param artifact artifact to add the purpose to
12071207
* @throws InvalidSPDXAnalysisException on any error in conversion

src/main/java/org/spdx/storage/listedlicense/SpdxListedLicenseModelStore.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,25 @@ public SpdxListedLicenseModelStore() throws InvalidSPDXAnalysisException {
121121
}
122122

123123
/**
124-
* @return InputStream for the Table of Contents of the licenses formated in JSON SPDX
124+
* @return InputStream for the Table of Contents of the licenses formatted in JSON SPDX
125125
* @throws IOException on IO errors
126126
*/
127127
public abstract InputStream getTocInputStream() throws IOException;
128128

129129
/**
130-
* @return InputStream for the Table of Contents of the exceptions formated in JSON SPDX
130+
* @return InputStream for the Table of Contents of the exceptions formatted in JSON SPDX
131131
* @throws IOException on IO errors
132132
*/
133133
public abstract InputStream getExceptionTocInputStream() throws IOException;
134134

135135
/**
136-
* @return InputStream for a license formated in SPDX JSON
136+
* @return InputStream for a license formatted in SPDX JSON
137137
* @throws IOException on IO errors
138138
*/
139139
public abstract InputStream getLicenseInputStream(String licenseId) throws IOException;
140140

141141
/**
142-
* @return InputStream for an exception formated in SPDX JSON
142+
* @return InputStream for an exception formatted in SPDX JSON
143143
* @throws IOException on IO errors
144144
*/
145145
public abstract InputStream getExceptionInputStream(String exceptionId) throws IOException;

0 commit comments

Comments
 (0)