diff --git a/runtime/Java/src/org/antlr/v4/runtime/DefaultErrorStrategy.java b/runtime/Java/src/org/antlr/v4/runtime/DefaultErrorStrategy.java index b382ffc10..fe47fc69a 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/DefaultErrorStrategy.java +++ b/runtime/Java/src/org/antlr/v4/runtime/DefaultErrorStrategy.java @@ -56,7 +56,7 @@ public class DefaultErrorStrategy implements ANTLRErrorStrategy { /** The index into the input stream where the last error occurred. * This is used to prevent infinite loops where an error is found * but no token is consumed during recovery...another error is found, - * ad naseum. This is a failsafe mechanism to guarantee that at least + * ad nauseum. This is a failsafe mechanism to guarantee that at least * one token/tree node is consumed for two errors. */ protected int lastErrorIndex = -1; diff --git a/runtime/Java/src/org/antlr/v4/runtime/UnbufferedCharStream.java b/runtime/Java/src/org/antlr/v4/runtime/UnbufferedCharStream.java index 0ac49c3df..f98359bb4 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/UnbufferedCharStream.java +++ b/runtime/Java/src/org/antlr/v4/runtime/UnbufferedCharStream.java @@ -73,12 +73,12 @@ public class UnbufferedCharStream implements CharStream { /** What is name or source of this char stream? */ public String name; - /** Useful for sublasses that pull char from other than this.input. */ + /** Useful for subclasses that pull char from other than this.input. */ public UnbufferedCharStream() { this(256); } - /** Useful for sublasses that pull char from other than this.input. */ + /** Useful for subclasses that pull char from other than this.input. */ public UnbufferedCharStream(int bufferSize) { n = 0; data = new char[bufferSize]; diff --git a/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleGetterDecl.java b/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleGetterDecl.java index e748dd9ad..1a61239d0 100644 --- a/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleGetterDecl.java +++ b/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleGetterDecl.java @@ -31,7 +31,7 @@ package org.antlr.v4.codegen.model.decl; import org.antlr.v4.codegen.OutputModelFactory; -/** public XContext X() { } */ +/** {@code public XContext X() { }} */ public class ContextRuleGetterDecl extends ContextGetterDecl { public String ctxName; public ContextRuleGetterDecl(OutputModelFactory factory, String name, String ctxName) { diff --git a/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleListGetterDecl.java b/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleListGetterDecl.java index 4ddc6d132..040a1ecbb 100644 --- a/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleListGetterDecl.java +++ b/tool/src/org/antlr/v4/codegen/model/decl/ContextRuleListGetterDecl.java @@ -31,8 +31,8 @@ package org.antlr.v4.codegen.model.decl; import org.antlr.v4.codegen.OutputModelFactory; -/** public List X() { } - * public XContext X(int i) { } +/** {@code public List X() { } + * public XContext X(int i) { }} */ public class ContextRuleListGetterDecl extends ContextGetterDecl { public String ctxName; diff --git a/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenGetterDecl.java b/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenGetterDecl.java index 8d88ec609..085d298a8 100644 --- a/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenGetterDecl.java +++ b/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenGetterDecl.java @@ -31,7 +31,7 @@ package org.antlr.v4.codegen.model.decl; import org.antlr.v4.codegen.OutputModelFactory; -/** public Token X() { } */ +/** {@code public Token X() { }} */ public class ContextTokenGetterDecl extends ContextGetterDecl { public ContextTokenGetterDecl(OutputModelFactory factory, String name) { super(factory, name); diff --git a/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenListGetterDecl.java b/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenListGetterDecl.java index 89991c9fb..070fadf4c 100644 --- a/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenListGetterDecl.java +++ b/tool/src/org/antlr/v4/codegen/model/decl/ContextTokenListGetterDecl.java @@ -31,8 +31,8 @@ package org.antlr.v4.codegen.model.decl; import org.antlr.v4.codegen.OutputModelFactory; -/** public List X() { } - * public Token X(int i) { } +/** {@code public List X() { } + * public Token X(int i) { }} */ public class ContextTokenListGetterDecl extends ContextGetterDecl { public ContextTokenListGetterDecl(OutputModelFactory factory, String name) {