Skip to content

Commit 6fe13dc

Browse files
author
duke
committedApr 14, 2022
Automatic merge of jdk:master into master
2 parents 9edc710 + 3084921 commit 6fe13dc

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed
 

‎src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void afterTypes(Runnable a) {
230230
*
231231
* @param annotations the list of JCAnnotations to attribute and enter
232232
* @param localEnv the enclosing env
233-
* @param s ths Symbol on which to enter the annotations
233+
* @param s the Symbol on which to enter the annotations
234234
* @param deferPos report errors here
235235
*/
236236
public void annotateLater(List<JCAnnotation> annotations, Env<AttrContext> localEnv,

‎src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3337,7 +3337,7 @@ public Name[] getTargetNames(TypeSymbol annoSym) {
33373337

33383338
boolean annotationApplicable(JCAnnotation a, Symbol s) {
33393339
Optional<Set<Name>> targets = getApplicableTargets(a, s);
3340-
/* the optional could be emtpy if the annotation is unknown in that case
3340+
/* the optional could be empty if the annotation is unknown in that case
33413341
* we return that it is applicable and if it is erroneous that should imply
33423342
* an error at the declaration site
33433343
*/

‎src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ void doIncorporation(InferenceContext inferenceContext, Warner warn) throws Infe
11211121
* t = java.util.ArrayList<java.lang.String>
11221122
* s = java.util.List<T>
11231123
*
1124-
* we get this ouput (singleton list):
1124+
* we get this output (singleton list):
11251125
*
11261126
* [Pair[java.util.List<java.lang.String>,java.util.List<T>]]
11271127
*/

‎src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class JavaTokenizer extends UnicodeReader {
6060
private static final boolean scannerDebug = false;
6161

6262
/**
63-
* Sentinal for non-value.
63+
* Sentinel for non-value.
6464
*/
6565
private int NOT_FOUND = -1;
6666

‎src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,14 @@ enum Tag {
319319

320320
Token[] split(Tokens tokens) {
321321
if (kind.name.length() < 2 || kind.tag != Tag.DEFAULT) {
322-
throw new AssertionError("Cant split" + kind);
322+
throw new AssertionError("Can't split" + kind);
323323
}
324324

325325
TokenKind t1 = tokens.lookupKind(kind.name.substring(0, 1));
326326
TokenKind t2 = tokens.lookupKind(kind.name.substring(1));
327327

328328
if (t1 == null || t2 == null) {
329-
throw new AssertionError("Cant split - bad subtokens");
329+
throw new AssertionError("Can't split - bad subtokens");
330330
}
331331
return new Token[] {
332332
new Token(t1, pos, pos + t1.name.length(), comments),

‎src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ protected boolean acceptOneOf(char ch1, char ch2, char ch3) {
436436
}
437437

438438
/**
439-
* Skip over all occurances of character.
439+
* Skip over all occurrences of character.
440440
*
441441
* @param ch character to accept.
442442
*/

‎src/jdk.compiler/share/classes/com/sun/tools/javac/util/Dependencies.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static EnumSet<DependenciesMode> getDependenciesModes(String[] modes) {
181181
public abstract static class Node extends GraphUtils.AbstractNode<ClassSymbol, Node>
182182
implements GraphUtils.DottableNode<ClassSymbol, Node> {
183183
/**
184-
* dependant nodes grouped by kind
184+
* dependent nodes grouped by kind
185185
*/
186186
EnumMap<CompletionCause, List<Node>> depsByKind;
187187

‎src/jdk.compiler/share/classes/com/sun/tools/javac/util/Iterators.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@
3939
*/
4040
public class Iterators {
4141

42-
public static <I, O> Iterator<O> createCompoundIterator(Iterable<I> inputs, Function<I, Iterator<O>> convertor) {
43-
return new CompoundIterator<>(inputs, convertor);
42+
public static <I, O> Iterator<O> createCompoundIterator(Iterable<I> inputs, Function<I, Iterator<O>> converter) {
43+
return new CompoundIterator<>(inputs, converter);
4444
}
4545

4646
private static class CompoundIterator<I, O> implements Iterator<O> {
4747

4848
private final Iterator<I> inputs;
49-
private final Function<I, Iterator<O>> convertor;
49+
private final Function<I, Iterator<O>> converter;
5050
@SuppressWarnings("unchecked")
5151
private Iterator<O> currentIterator = EMPTY;
5252

53-
public CompoundIterator(Iterable<I> inputs, Function<I, Iterator<O>> convertor) {
53+
public CompoundIterator(Iterable<I> inputs, Function<I, Iterator<O>> converter) {
5454
this.inputs = inputs.iterator();
55-
this.convertor = convertor;
55+
this.converter = converter;
5656
}
5757

5858
public boolean hasNext() {
@@ -75,7 +75,7 @@ public void remove() {
7575

7676
private void update() {
7777
while (inputs.hasNext()) {
78-
currentIterator = convertor.apply(inputs.next());
78+
currentIterator = converter.apply(inputs.next());
7979
if (currentIterator.hasNext()) return;
8080
}
8181
currentIterator = null;

‎src/jdk.compiler/share/classes/com/sun/tools/sjavac/JavacState.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ public void save() throws IOException {
270270
b.append("# S L link_only_source timestamp\n");
271271
b.append("# G C generated_source timestamp\n");
272272
b.append("# A artifact timestamp\n");
273-
b.append("# D S dependant -> source dependency\n");
274-
b.append("# D C dependant -> classpath dependency\n");
273+
b.append("# D S dependent -> source dependency\n");
274+
b.append("# D C dependent -> classpath dependency\n");
275275
b.append("# I pubapi\n");
276276
b.append("R ").append(theArgs).append("\n");
277277

‎src/jdk.jdeps/share/classes/com/sun/tools/classfile/TypeAnnotation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public int hashCode() {
338338
public TargetType type = TargetType.UNKNOWN;
339339

340340
// For generic/array types.
341-
// TODO: or should we use null? Noone will use this object.
341+
// TODO: or should we use null? No one will use this object.
342342
public List<TypePathEntry> location = new ArrayList<>(0);
343343

344344
// Tree position.

0 commit comments

Comments
 (0)
Please sign in to comment.