Skip to content

Commit 24a8487

Browse files
authored
Merge pull request github#10879 from jsoref/spelling-kotlin
Spelling kotlin
2 parents 9e5d9f8 + 7ba9a31 commit 24a8487

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

java/kotlin-extractor/src/main/java/com/semmle/util/expansion/ExpansionEnvironment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public ExpansionEnvironment(boolean commandSubstitutions) {
123123
}
124124

125125
/**
126-
* This the old default constructor, which always enables command substutitions.
126+
* This the old default constructor, which always enables command substitutions.
127127
* <b>Doing so is a security risk</b> whenever the string you expand may come
128128
* from an untrusted source, so you should only do that when you explicitly want
129129
* to do it and have decided that it is safe. (And then use the constructor that

java/kotlin-extractor/src/main/java/com/semmle/util/files/FileUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,11 +1033,11 @@ public boolean accept (File pathname)
10331033
}
10341034

10351035
/**
1036-
* Santize path string To handle windows drive letters and cross-platform builds.
1036+
* Sanitize path string To handle windows drive letters and cross-platform builds.
10371037
* @param pathString to be sanitized
10381038
* @return sanitized path string
10391039
*/
1040-
private static String santizePathString(String pathString) {
1040+
private static String sanitizePathString(String pathString) {
10411041
// Replace ':' by '_', as the extractor does - to handle Windows drive letters
10421042
pathString = pathString.replace(':', '_');
10431043

@@ -1059,7 +1059,7 @@ private static String santizePathString(String pathString) {
10591059
*/
10601060
public static File appendAbsolutePath (File root, String absolutePath)
10611061
{
1062-
absolutePath = santizePathString(absolutePath);
1062+
absolutePath = sanitizePathString(absolutePath);
10631063

10641064
return new File(root, absolutePath).getAbsoluteFile();
10651065
}
@@ -1075,7 +1075,7 @@ public static File appendAbsolutePath (File root, String absolutePath)
10751075
*/
10761076
public static Path appendAbsolutePath(Path root, String absolutePathString){
10771077

1078-
absolutePathString = santizePathString(absolutePathString);
1078+
absolutePathString = sanitizePathString(absolutePathString);
10791079

10801080
Path path = Paths.get(absolutePathString);
10811081

java/kotlin-extractor/src/main/kotlin/KotlinExtractorExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ private abstract class TrapFileWriter(val logger: FileLogger, trapName: String,
400400

401401
fun getTempWriter(): BufferedWriter {
402402
if (this::tempFile.isInitialized) {
403-
logger.error("Temp writer reinitiailised for $realFile")
403+
logger.error("Temp writer reinitialized for $realFile")
404404
}
405405
tempFile = File.createTempFile(realFile.getName() + ".", ".trap.tmp" + extension, parentDir)
406406
return getWriter(tempFile)

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ open class KotlinUsesExtractor(
944944

945945

946946
private val jvmWildcardAnnotation = FqName("kotlin.jvm.JvmWildcard")
947-
private val jvmWildcardSuppressionAnnotaton = FqName("kotlin.jvm.JvmSuppressWildcards")
947+
private val jvmWildcardSuppressionAnnotation = FqName("kotlin.jvm.JvmSuppressWildcards")
948948

949949
private fun arrayExtendsAdditionAllowed(t: IrSimpleType): Boolean =
950950
// Note the array special case includes Array<*>, which does permit adding `? extends ...` (making `? extends Object[]` in that case)
@@ -977,7 +977,7 @@ open class KotlinUsesExtractor(
977977
when {
978978
t.hasAnnotation(jvmWildcardAnnotation) -> true
979979
!addByDefault -> false
980-
t.hasAnnotation(jvmWildcardSuppressionAnnotaton) -> false
980+
t.hasAnnotation(jvmWildcardSuppressionAnnotation) -> false
981981
v == Variance.IN_VARIANCE -> !(t.isNullableAny() || t.isAny())
982982
v == Variance.OUT_VARIANCE -> extendsAdditionAllowed(t)
983983
else -> false
@@ -1225,9 +1225,9 @@ open class KotlinUsesExtractor(
12251225
}
12261226

12271227
fun hasWildcardSuppressionAnnotation(d: IrDeclaration) =
1228-
d.hasAnnotation(jvmWildcardSuppressionAnnotaton) ||
1228+
d.hasAnnotation(jvmWildcardSuppressionAnnotation) ||
12291229
// Note not using `parentsWithSelf` as that only works if `d` is an IrDeclarationParent
1230-
d.parents.any { (it as? IrAnnotationContainer)?.hasAnnotation(jvmWildcardSuppressionAnnotaton) == true }
1230+
d.parents.any { (it as? IrAnnotationContainer)?.hasAnnotation(jvmWildcardSuppressionAnnotation) == true }
12311231

12321232
/**
12331233
* Class to hold labels for generated classes around local functions, lambdas, function references, and property references.

0 commit comments

Comments
 (0)