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 1b3fe51f57 used some plain apostrophes in source file comments
1b3fe51f57 is described below
commit 1b3fe51f5772ad5bdada72b511f9ca63f4acdbbe
Author: Paul King <[email protected]>
AuthorDate: Fri Apr 10 18:37:17 2026 +1000
used some plain apostrophes in source file comments
---
src/spec/test-resources/methodnotfound.groovy | 4 ++--
src/spec/test/gdk/WorkingWithIOSpecTest.groovy | 4 ++--
.../src/main/groovy/groovy/typecheckers/FormatStringChecker.groovy | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/spec/test-resources/methodnotfound.groovy
b/src/spec/test-resources/methodnotfound.groovy
index caaacbf01d..73924d14f5 100644
--- a/src/spec/test-resources/methodnotfound.groovy
+++ b/src/spec/test-resources/methodnotfound.groovy
@@ -22,7 +22,7 @@ methodNotFound { receiver, name, argList, argTypes, call ->
// name is the name of the called method
// argList is the list of arguments the method was called with
// argTypes is the array of inferred types for each argument
- // call is the method call for which we couldn’t find a target method
+ // call is the method call for which we couldn't find a target method
if (receiver==classNodeFor(String)
&& name=='longueur'
&& argList.size()==0) {
@@ -30,4 +30,4 @@ methodNotFound { receiver, name, argList, argTypes, call ->
return newMethod('longueur', classNodeFor(String))
}
}
-// end::event[]
\ No newline at end of file
+// end::event[]
diff --git a/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
b/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
index 0126c81c75..bd07622099 100644
--- a/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
+++ b/src/spec/test/gdk/WorkingWithIOSpecTest.groovy
@@ -130,7 +130,7 @@ Fin.''')
new File(baseDir,'haiku.txt').withWriter('utf-8') { writer ->
writer.writeLine 'Into the ancient pond'
writer.writeLine 'A frog jumps'
- writer.writeLine 'Water’s sound!'
+ writer.writeLine "Water's sound!"
}
// end::withwriter_example[]
}
@@ -143,7 +143,7 @@ Fin.''')
// tag::file_leftshift[]
new File(baseDir,'haiku.txt') << '''Into the ancient pond
A frog jumps
- Water’s sound!'''
+ Water's sound!'''
// end::file_leftshift[]
}
}
diff --git
a/subprojects/groovy-typecheckers/src/main/groovy/groovy/typecheckers/FormatStringChecker.groovy
b/subprojects/groovy-typecheckers/src/main/groovy/groovy/typecheckers/FormatStringChecker.groovy
index a93af52c30..6ab8f48c3c 100644
---
a/subprojects/groovy-typecheckers/src/main/groovy/groovy/typecheckers/FormatStringChecker.groovy
+++
b/subprojects/groovy-typecheckers/src/main/groovy/groovy/typecheckers/FormatStringChecker.groovy
@@ -42,9 +42,9 @@ import static org.codehaus.groovy.ast.ClassHelper.makeCached
/**
* Checks at compile-time for incorrect format strings in format methods such
as {@code printf} and {@code String.format}.
- * A format method’s specification requires that:
+ * A format method's specification requires that:
* <ul>
- • <li>The format string’s syntax is valid</li>
+ • <li>The format string's syntax is valid</li>
• <li>The correct number of arguments is passed</li>
• <li>Each argument has the appropriate type</li>
* </ul>