groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: trivial refactor: typos in comments
Date Sun, 17 Sep 2017 02:45:46 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 7ba35700e -> 43cf16c5d


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/43cf16c5
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/43cf16c5
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/43cf16c5

Branch: refs/heads/GROOVY_2_6_X
Commit: 43cf16c5d49a0d97c0fd27ad2860d1e202fb214c
Parents: 7ba3570
Author: paulk <paulk@asert.com.au>
Authored: Sun Sep 17 11:18:41 2017 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Sun Sep 17 12:45:28 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/43cf16c5/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 28c6368..52c0ad4 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();
                 }


Mime
View raw message