From c86f0de79f459a1c1515dd6a524cca97148e7a68 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 12 Feb 2013 18:02:44 +0400 Subject: [PATCH] Typos fixed --- .../jet/lang/resolve/java/JavaTypeTransformer.java | 2 +- .../jetbrains/jet/lang/resolve/lazy/ResolveSession.java | 2 +- .../jet/lang/resolve/lazy/storage/StorageManager.java | 2 +- .../org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaTypeTransformer.java b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaTypeTransformer.java index ab0598e5777..9f840b63ed2 100644 --- a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaTypeTransformer.java +++ b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaTypeTransformer.java @@ -253,7 +253,7 @@ public class JavaTypeTransformer { } private static boolean isRaw(@NotNull PsiClassType classType, boolean argumentsExpected) { - // The second option is needed because sometimes we get weird versions of JDK classes in teh class path, + // The second option is needed because sometimes we get weird versions of JDK classes in the class path, // such as collections with no generics, so the Java types are not raw, formally, but they don't match with // their Kotlin analogs, so we treat them as raw to avoid exceptions return classType.isRaw() || argumentsExpected && classType.getParameterCount() == 0; diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java index eb072a490c8..0ec54a738d0 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/ResolveSession.java @@ -182,7 +182,7 @@ public class ResolveSession implements KotlinCodeAnalyzer { // Why not use the result here. Because it may be that there is a redeclaration: // class A {} class A { fun foo(): A} - // and if we find teh class by name only, we may b-not get the right one. + // and if we find the class by name only, we may b-not get the right one. // This call is only needed to make sure the classes are written to trace resolutionScope.getClassifier(name); DeclarationDescriptor declaration = getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, classOrObject); diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/storage/StorageManager.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/storage/StorageManager.java index e5f651a3874..45b1367f85e 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/storage/StorageManager.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/lazy/storage/StorageManager.java @@ -26,7 +26,7 @@ public interface StorageManager { /** * Given a function compute: K -> V create a memoized version of it that computes a value only once for each key * @param compute the function to be memoized - * @param valuesReferenceKind how to store teh memoized values + * @param valuesReferenceKind how to store the memoized values * * NOTE: if compute() has side-effects the WEAK reference kind is dangerous: the side-effects will be repeated if * the value gets collected and then re-computed diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java index 843f7820b15..5e4c4e4b927 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java @@ -134,7 +134,7 @@ public class KotlinBuiltIns { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - private final KotlinCodeAnalyzer anazlyer; + private final KotlinCodeAnalyzer analyzer; private final ModuleDescriptor builtInsModule; private volatile ImmutableSet nonPhysicalClasses; @@ -171,7 +171,7 @@ public class KotlinBuiltIns { private KotlinBuiltIns(@NotNull Project project) { try { this.builtInsModule = new ModuleDescriptor(Name.special("")); - this.anazlyer = createLazyResolveSession(project); + this.analyzer = createLazyResolveSession(project); this.functionClassesSet = computeIndexedClasses("Function", getFunctionTraitCount()); this.extensionFunctionClassesSet = computeIndexedClasses("ExtensionFunction", getFunctionTraitCount()); @@ -214,9 +214,9 @@ public class KotlinBuiltIns { nonPhysicalClasses = computeNonPhysicalClasses(); - anazlyer.forceResolveAll(); + analyzer.forceResolveAll(); - AnalyzingUtils.throwExceptionOnErrors(anazlyer.getBindingContext()); + AnalyzingUtils.throwExceptionOnErrors(analyzer.getBindingContext()); } @NotNull