You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2017/09/17 01:18:51 UTC
groovy git commit: trivial refactor: typos in comments
Repository: groovy
Updated Branches:
refs/heads/master e6db31177 -> 01c3539b3
trivial refactor: typos in comments
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/01c3539b
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/01c3539b
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/01c3539b
Branch: refs/heads/master
Commit: 01c3539b32fd3a3c0c3afc9699304373fb3ed306
Parents: e6db311
Author: paulk <pa...@asert.com.au>
Authored: Sun Sep 17 11:18:41 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Sun Sep 17 11:18:41 2017 +1000
----------------------------------------------------------------------
.../groovy/transform/stc/StaticTypeCheckingVisitor.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/01c3539b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
index b8be25d..12ea2b5 100644
--- a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
+++ b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
@@ -1140,7 +1140,7 @@ public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
/**
* A helper method which determines which receiver class should be used in error messages when a field or attribute
- * is not found. The returned type class depends on whether we have temporary type information availble (due to
+ * is not found. The returned type class depends on whether we have temporary type information available (due to
* instanceof checks) and whether there is a single candidate in that case.
*
* @param expr the expression for which an unknown field has been found
@@ -2073,8 +2073,8 @@ public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
protected void saveVariableExpressionMetadata(final Set<VariableExpression> closureSharedExpressions, final Map<VariableExpression, ListHashMap> typesBeforeVisit) {
for (VariableExpression ve : closureSharedExpressions) {
- // GROOVY-6921: We must force a call to getType in order to update closure shared variable which types are
- // inferred thanks to closure parameter type inference
+ // GROOVY-6921: We must force a call to getType in order to update closure shared variable whose
+ // types are inferred thanks to closure parameter type inference
getType(ve);
ListHashMap<StaticTypesMarker, Object> metadata = new ListHashMap<StaticTypesMarker, Object>();
for (StaticTypesMarker marker : StaticTypesMarker.values()) {
@@ -2135,7 +2135,7 @@ public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
// for example, in a mixed mode where only some methods are statically checked
// we must not visit a method which used dynamic dispatch.
// We do not check for an annotation because some other AST transformations
- // may use this visitor without the annotation being explicitely set
+ // may use this visitor without the annotation being explicitly set
if (!typeCheckingContext.methodsToBeVisited.isEmpty() && !typeCheckingContext.methodsToBeVisited.contains(node)) return;
// alreadyVisitedMethods prevents from visiting the same method multiple times
@@ -3477,7 +3477,7 @@ public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
if (!typeCheckingContext.temporaryIfBranchTypeInformation.empty()) {
List<ClassNode> temporaryTypesForExpression = getTemporaryTypesForExpression(exp);
if (temporaryTypesForExpression != null && !temporaryTypesForExpression.isEmpty()) {
- // a type inference has been made on a variable which type was defined in an instanceof block
+ // a type inference has been made on a variable whose type was defined in an instanceof block
// we erase available information with the new type
temporaryTypesForExpression.clear();
}