Skip to content

Commit 86d45d7

Browse files
authored
misc: fix typos (#14990)
Thank you.
1 parent 9a7cd0a commit 86d45d7

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/TestsAndRandomizationPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ public void apply(Project project) {
483483

484484
// Disable automatic test class detection, rely on class names only. This is needed
485485
// for testing
486-
// against JDKs where the bytecode is unparseable by Gradle, for example.
486+
// against JDKs where the bytecode is unparsable by Gradle, for example.
487487
// We require all tests to start with Test*, this simplifies include patterns greatly.
488488
task.setScanForTestClasses(false);
489489
task.include("**/Test*.class");

build-tools/missing-doclet/src/java/org/apache/lucene/missingdoclet/MissingDoclet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ && level(element) >= METHOD) {
278278
* elements. UweSays: It should not happen but it happens!
279279
*/
280280
private boolean isSyntheticMethod(Element element) {
281-
// exclude all not explicitely declared methods
281+
// exclude all not explicitly declared methods
282282
if (elementUtils.getOrigin(element) != Origin.EXPLICIT) {
283283
return true;
284284
}

dev-docs/file-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ field.
7878
## Add codec headers and footers to all files
7979

8080
Use `CodecUtil` to add headers and footers to all files of the index. This
81-
helps make sure that we are opening the right file and differenciate Lucene
81+
helps make sure that we are opening the right file and differentiate Lucene
8282
bugs from file corruptions.
8383

8484
## Validate checksums of the metadata file when opening a segment

dev-tools/scripts/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ ignore = [
9494
"PLW0603", # using global statement to update variable is discouraged
9595
"PLW2901", # loop variable overwritten by assignment target
9696
"PTH104", # os.rename should be replaced by Path.rename
97-
"PTH107", # os.remove shoudl be replaced by Path.unlink
97+
"PTH107", # os.remove should be replaced by Path.unlink
9898
"PTH109", # os.getcwd should be replaced by Path.cwd
9999
"PTH110", # os.path.exists should be replaced by Path.exists
100100
"PTH111", # os.path.expanduser should be replaced by Path.expanduser
@@ -126,7 +126,7 @@ ignore = [
126126
"S506", # probable use of unsafe yaml loader, consider yaml.safe_load
127127
"S602", # subprocess call with shell=True identified, security issue
128128
"S603", # subprocess call: check for execution of untrusted input
129-
"S605", # starting a process wtih a shell, seems safe, but may be changed in future
129+
"S605", # starting a process with a shell, seems safe, but may be changed in future
130130
"S607", # starting a process with a partial executable path
131131
"S701", # consider using jinja autoescape=True to mitigate XSS
132132
"SIM102", # use single if statement instead of nested if statement

dev-tools/scripts/releaseWizard.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#
2626
# Templates may be included in any text by starting a line with this syntax:
2727
# (( template=my_template_name ))
28-
# Templates may contain other templates for easy re-use of snippets
28+
# Templates may contain other templates for easy reuse of snippets
2929
# And of course all Jinja2 syntax for inclusion of variables etc is supported.
3030
# See http://jinja.pocoo.org/docs/2.10/templates/ for details
3131
# To add new global variables or functions/filters, edit releaseWizard.py
@@ -143,12 +143,12 @@ templates:
143143
# description: Longer description that will appear in sub-menu
144144
# depends: ['group1_id', 'group2_id'] # Explicit dependencies for groups
145145
# is_in_rc_loop: Tells that a group is thrown away on RC re-psin (default=False)
146-
# todos: # Array of !Todo objects beloning to the group
146+
# todos: # Array of !Todo objects belonging to the group
147147
# !Todo
148148
# id: todo_id
149149
# title: Short title that will appear in menu and elsewhere
150150
# description: |
151-
# The main description being printed when selecing the todo item. Here
151+
# The main description being printed when selecting the todo item. Here
152152
# you should introduce the task in more detail. You can use {{ jinja_var }} to
153153
# reference variables. See `releaseWizard.py` for list of global vars supported.
154154
# You can reference state saved from earlier TODO items using syntax
@@ -202,7 +202,7 @@ groups:
202202
title: Prerequisites
203203
description: |
204204
Releasing software requires thorough understanding of the process and careful execution,
205-
as it is easy to make mistakes. It also requires an environtment and tools such as gpg
205+
as it is easy to make mistakes. It also requires an environment and tools such as gpg
206206
correctly setup. This section makes sure you're in good shape for the job!
207207
todos:
208208
- !Todo
@@ -1030,7 +1030,7 @@ groups:
10301030
Fortunately the only thing you need to change is a few variables in `pelicanconf.py`.
10311031
If you release a current latest release, change the `LUCENE_LATEST_RELEASE` and `LUCENE_LATEST_RELEASE_DATE`
10321032
variables.
1033-
If you relese a bugfix release for previous version, then change the `LUCENE_PREVIOUS_MAJOR_RELEASE` variable.
1033+
If you release a bugfix release for previous version, then change the `LUCENE_PREVIOUS_MAJOR_RELEASE` variable.
10341034
commands: !Commands
10351035
root_folder: '{{ git_website_folder }}'
10361036
commands_text: Edit pelicanconf.py to update version numbers
@@ -1256,7 +1256,7 @@ groups:
12561256
For feature releases, your announcement should describe the main features included
12571257
in the release. *Send the announce as Plain-text email, not HTML.*
12581258
1259-
This step will generate email templates based on the news files you edited earler for the website.
1259+
This step will generate email templates based on the news files you edited earlier for the website.
12601260
Do any last-minute necessary edits to the text as you copy it over to the email.
12611261
todos:
12621262
- !Todo
@@ -1527,7 +1527,7 @@ groups:
15271527
cmd: git commit -m "Add back-compat indices for {{ release_version }}" && git push
15281528
logfile: commit.log
15291529
post_description: |
1530-
When doing a major version release, eg. 8.0.0, you might also need to reenable some
1530+
When doing a major version release, eg. 8.0.0, you might also need to re-enable some
15311531
backward compatibility tests for corner cases. To find them, run grep -r assume
15321532
lucene/backward-codecs/, which should find tests that have been disabled on main
15331533
because there was no released Lucene version to test against.

help/regeneration.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Checksum validation errors
2020
--------------------------
2121

2222
LUCENE-9868 introduced a system of storing (and validating) checksums of
23-
generated files so that they are not accidentally modified. This checkums
23+
generated files so that they are not accidentally modified. This checksums
2424
system will fail the build with a message similar to this one:
2525

2626
Execution failed for task ':lucene:core:generateStandardTokenizerChecksumCheck'.

lucene/analysis/stempel/src/test/org/egothor/stemmer/TestStemmer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void testMultiTrie2() {
120120
String[] keys = {"a", "ba", "bb", "c"};
121121
/*
122122
* short vals won't work, see line 155 for example
123-
* the IOOBE is caught (wierd), but shouldnt affect patch cmds?
123+
* the IOOBE is caught (weird), but shouldn't affect patch cmds?
124124
*/
125125
String[] vals = {"1111", "2222", "2223", "4444"};
126126

@@ -137,7 +137,7 @@ public void testMultiTrie2Backwards() {
137137
String[] keys = {"a", "ba", "bb", "c"};
138138
/*
139139
* short vals won't work, see line 155 for example
140-
* the IOOBE is caught (wierd), but shouldnt affect patch cmds?
140+
* the IOOBE is caught (weird), but shouldn't affect patch cmds?
141141
*/
142142
String[] vals = {"1111", "2222", "2223", "4444"};
143143

0 commit comments

Comments
 (0)