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 2022/09/06 06:45:46 UTC

[groovy] branch master updated: typo corrections

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new d1997c9dbb typo corrections
d1997c9dbb is described below

commit d1997c9dbbbcf89917c92577efcd900f30f7532c
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Sep 6 13:34:50 2022 +1000

    typo corrections
---
 src/main/java/groovy/util/logging/Commons.java                      | 4 ++--
 src/main/java/groovy/util/logging/Log.java                          | 4 ++--
 src/main/java/groovy/util/logging/Log4j.java                        | 4 ++--
 src/main/java/groovy/util/logging/Log4j2.java                       | 4 ++--
 src/main/java/groovy/util/logging/PlatformLog.java                  | 2 +-
 src/main/java/groovy/util/logging/Slf4j.java                        | 4 ++--
 src/main/java/org/codehaus/groovy/ast/ClassNode.java                | 2 +-
 src/main/java/org/codehaus/groovy/classgen/DummyClassGenerator.java | 2 +-
 src/main/java/org/codehaus/groovy/classgen/asm/StatementWriter.java | 2 +-
 src/main/java/org/codehaus/groovy/syntax/Numbers.java               | 2 +-
 10 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/main/java/groovy/util/logging/Commons.java b/src/main/java/groovy/util/logging/Commons.java
index a9662e79fb..04d7a68d3d 100644
--- a/src/main/java/groovy/util/logging/Commons.java
+++ b/src/main/java/groovy/util/logging/Commons.java
@@ -41,7 +41,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
 
 /**
  * This local transform adds a logging ability to your program using
- * Apache Commons logging. Every method call on a unbound variable named <i>log</i>
+ * Apache Commons logging. Every method call on an unbound variable named <i>log</i>
  * will be mapped to a call to the logger. For this a <i>log</i> field will be
  * inserted in the class. If the field already exists the usage of this transform
  * will cause a compilation error. The method name will be used to determine
@@ -53,7 +53,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
  * if (log.isNameEnabled() {
  *    log.name(exp)
  * }</pre>
- * Here name is a place holder for info, debug, warning, error, etc.
+ * Here name is a placeholder for info, debug, warning, error, etc.
  * If the expression exp is a constant or only a variable access the method call will
  * not be transformed. But this will still cause a call on the injected logger.
  *
diff --git a/src/main/java/groovy/util/logging/Log.java b/src/main/java/groovy/util/logging/Log.java
index 317939a9cf..b4f2db73aa 100644
--- a/src/main/java/groovy/util/logging/Log.java
+++ b/src/main/java/groovy/util/logging/Log.java
@@ -44,7 +44,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
 
 /**
  * This local transform adds a logging ability to your program using
- * java.util.logging. Every method call on a unbound variable named <i>log</i>
+ * java.util.logging. Every method call on an unbound variable named <i>log</i>
  * will be mapped to a call to the logger. For this a <i>log</i> field will be
  * inserted in the class. If the field already exists the usage of this transform
  * will cause a compilation error. The method name will be used to determine
@@ -56,7 +56,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
  * if (log.isLoggable(Level.NAME) {
  *    log.name(exp)
  * }</pre>
- * Here name is a place holder for info, fine, finer, finest, config, warning, severe.
+ * Here name is a placeholder for info, fine, finer, finest, config, warning, severe.
  * NAME is name transformed to upper case. if anything else is used it will result in
  * an exception at runtime. If the expression exp is a constant or only a variable access
  * the method call will not be transformed. But this will still cause a call on the injected
diff --git a/src/main/java/groovy/util/logging/Log4j.java b/src/main/java/groovy/util/logging/Log4j.java
index ad8084fabb..fc8c6841da 100644
--- a/src/main/java/groovy/util/logging/Log4j.java
+++ b/src/main/java/groovy/util/logging/Log4j.java
@@ -42,7 +42,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
 
 /**
  * This local transform adds a logging ability to your program using
- * Log4j logging. Every method call on a unbound variable named <i>log</i>
+ * Log4j logging. Every method call on an unbound variable named <i>log</i>
  * will be mapped to a call to the logger. For this a <i>log</i> field will be
  * inserted in the class. If the field already exists the usage of this transform
  * will cause a compilation error. The method name will be used to determine
@@ -54,7 +54,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
  * if (log.isNameEnabled() {
  *    log.name(exp)
  * }</pre>
- * Here name is a place holder for info, debug, warning, error, etc.
+ * Here name is a placeholder for info, debug, warning, error, etc.
  * If the expression exp is a constant or only a variable access the method call will
  * not be transformed. But this will still cause a call on the injected logger.
  *
diff --git a/src/main/java/groovy/util/logging/Log4j2.java b/src/main/java/groovy/util/logging/Log4j2.java
index 03c504e46d..73692f7af0 100644
--- a/src/main/java/groovy/util/logging/Log4j2.java
+++ b/src/main/java/groovy/util/logging/Log4j2.java
@@ -41,7 +41,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
 
 /**
  * This local transform adds a logging ability to your program using
- * Log4j2 logging. Every method call on a unbound variable named <i>log</i>
+ * Log4j2 logging. Every method call on an unbound variable named <i>log</i>
  * will be mapped to a call to the logger. For this a <i>log</i> field will be
  * inserted in the class. If the field already exists the usage of this transform
  * will cause a compilation error. The method name will be used to determine
@@ -53,7 +53,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
  * if (log.isNameEnabled() {
  *    log.name(exp)
  * }</pre>
- * Here name is a place holder for info, debug, warning, error, etc.
+ * Here name is a placeholder for info, debug, warning, error, etc.
  * If the expression exp is a constant or only a variable access the method call will
  * not be transformed. But this will still cause a call on the injected logger.
  *
diff --git a/src/main/java/groovy/util/logging/PlatformLog.java b/src/main/java/groovy/util/logging/PlatformLog.java
index b1e5ef6315..1c58b12cdc 100644
--- a/src/main/java/groovy/util/logging/PlatformLog.java
+++ b/src/main/java/groovy/util/logging/PlatformLog.java
@@ -40,7 +40,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.constX;
 
 /**
  * This local transform adds a logging ability to your program using
- * java.logging. Every method call on a unbound variable named <i>log</i>
+ * java.logging. Every method call on an unbound variable named <i>log</i>
  * will be mapped to a call to the logger. For this a <i>log</i> field will be
  * inserted in the class. If the field already exists the usage of this transform
  * will cause a compilation error. The method name will be used to determine
diff --git a/src/main/java/groovy/util/logging/Slf4j.java b/src/main/java/groovy/util/logging/Slf4j.java
index 40fe2ca524..06ee0cf7cc 100644
--- a/src/main/java/groovy/util/logging/Slf4j.java
+++ b/src/main/java/groovy/util/logging/Slf4j.java
@@ -41,7 +41,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
 
 /**
  * This local transform adds a logging ability to your program using
- * LogBack logging. Every method call on a unbound variable named <i>log</i>
+ * LogBack logging. Every method call on an unbound variable named <i>log</i>
  * will be mapped to a call to the logger. For this a <i>log</i> field will be
  * inserted in the class. If the field already exists the usage of this transform
  * will cause a compilation error. The method name will be used to determine
@@ -53,7 +53,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.ternaryX;
  * if (log.isNameLoggable() {
  *    log.name(exp)
  * }</pre>
- * Here name is a place holder for info, debug, warning, error, etc.
+ * Here name is a placeholder for info, debug, warning, error, etc.
  * If the expression exp is a constant or only a variable access the method call will
  * not be transformed. But this will still cause a call on the injected logger.
  *
diff --git a/src/main/java/org/codehaus/groovy/ast/ClassNode.java b/src/main/java/org/codehaus/groovy/ast/ClassNode.java
index bfee287ad2..b729d74681 100644
--- a/src/main/java/org/codehaus/groovy/ast/ClassNode.java
+++ b/src/main/java/org/codehaus/groovy/ast/ClassNode.java
@@ -100,7 +100,7 @@ import static org.objectweb.asm.Opcodes.ACC_SYNTHETIC;
  *  through a Class instance
  * <li> Labels:<br>
  * ClassNodes created through ClassHelper.makeWithoutCaching. They
- * are place holders, its redirect points to the real structure, which can
+ * are placeholders, its redirect points to the real structure, which can
  * be a label too, but following all redirects it should end with a ClassNode
  * from one of the other two categories. If ResolveVisitor finds such a
  * node, it tries to set the redirects. Any such label created after
diff --git a/src/main/java/org/codehaus/groovy/classgen/DummyClassGenerator.java b/src/main/java/org/codehaus/groovy/classgen/DummyClassGenerator.java
index ff0cfe7d9c..e4be6950f6 100644
--- a/src/main/java/org/codehaus/groovy/classgen/DummyClassGenerator.java
+++ b/src/main/java/org/codehaus/groovy/classgen/DummyClassGenerator.java
@@ -40,7 +40,7 @@ import static org.objectweb.asm.Opcodes.NEW;
 
 /**
  * To generate a class that has all the fields and methods, except that fields are not initialized
- * and methods are empty. It's intended for being used as a place holder during code generation
+ * and methods are empty. It's intended for being used as a placeholder during code generation
  * of reference to the "this" class itself.
  */
 public class DummyClassGenerator extends ClassGenerator {
diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/StatementWriter.java b/src/main/java/org/codehaus/groovy/classgen/asm/StatementWriter.java
index 7c83e3b183..f7974b6af1 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/StatementWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/StatementWriter.java
@@ -513,7 +513,7 @@ public class StatementWriter {
         mv.visitVarInsn(ALOAD, index);
         mv.visitInsn(MONITORENTER);
         mv.visitLabel(synchronizedStart);
-        // place holder for "empty" synchronized blocks, for example
+        // placeholder for "empty" synchronized blocks, for example
         // if there is only a break/continue.
         mv.visitInsn(NOP);
 
diff --git a/src/main/java/org/codehaus/groovy/syntax/Numbers.java b/src/main/java/org/codehaus/groovy/syntax/Numbers.java
index d033def0a0..c94259eb8b 100644
--- a/src/main/java/org/codehaus/groovy/syntax/Numbers.java
+++ b/src/main/java/org/codehaus/groovy/syntax/Numbers.java
@@ -106,7 +106,7 @@ public class Numbers {
      */
     public static Number parseInteger(String text) {
         String text1 = text;
-        // remove place holder underscore before starting
+        // remove placeholder underscore before starting
         text1 = text1.replace("_", "");
 
         char c = ' ';