Skip to content

Commit

Permalink
Update shaded package name
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Nov 2, 2021
1 parent 898b4ab commit 5341112
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/projectnessie/cel/parser/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
import org.agrona.collections.LongArrayList;
import org.projectnessie.cel.common.Location;
import org.projectnessie.cel.common.Source;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.ParserRuleContext;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.Token;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.ParserRuleContext;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.Token;

final class Helper {
private final Source source;
Expand Down
44 changes: 22 additions & 22 deletions core/src/main/java/org/projectnessie/cel/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@
import org.projectnessie.cel.parser.gen.CELParser.StringContext;
import org.projectnessie.cel.parser.gen.CELParser.UintContext;
import org.projectnessie.cel.parser.gen.CELParser.UnaryContext;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.ANTLRErrorListener;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.CommonTokenStream;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.DefaultErrorStrategy;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.IntStream;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.ParserRuleContext;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.RecognitionException;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.Recognizer;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.RuleContext;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.Token;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.atn.ATNConfigSet;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.dfa.DFA;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.tree.ErrorNode;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.tree.ParseTree;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.tree.ParseTreeListener;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.tree.TerminalNode;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.ANTLRErrorListener;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.CommonTokenStream;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.DefaultErrorStrategy;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.IntStream;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.ParserRuleContext;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.RecognitionException;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.Recognizer;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.RuleContext;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.Token;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.atn.ATNConfigSet;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.dfa.DFA;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.tree.ErrorNode;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.tree.ParseTree;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.tree.ParseTreeListener;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.tree.TerminalNode;

public final class Parser {

Expand Down Expand Up @@ -259,20 +259,20 @@ private RecoveryLimitErrorStrategy(int maxAttempts) {

@Override
public void recover(
org.projectnessie.cel.parser.gen.antlr.v4.runtime.Parser recognizer,
org.projectnessie.cel.shaded.org.antlr.v4.runtime.Parser recognizer,
RecognitionException e) {
checkAttempts(recognizer);
super.recover(recognizer, e);
}

@Override
public Token recoverInline(org.projectnessie.cel.parser.gen.antlr.v4.runtime.Parser recognizer)
public Token recoverInline(org.projectnessie.cel.shaded.org.antlr.v4.runtime.Parser recognizer)
throws RecognitionException {
checkAttempts(recognizer);
return super.recoverInline(recognizer);
}

void checkAttempts(org.projectnessie.cel.parser.gen.antlr.v4.runtime.Parser recognizer)
void checkAttempts(org.projectnessie.cel.shaded.org.antlr.v4.runtime.Parser recognizer)
throws RecognitionException {
if (attempts >= maxAttempts) {
attempts++;
Expand Down Expand Up @@ -307,7 +307,7 @@ public void syntaxError(

@Override
public void reportAmbiguity(
org.projectnessie.cel.parser.gen.antlr.v4.runtime.Parser recognizer,
org.projectnessie.cel.shaded.org.antlr.v4.runtime.Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
Expand All @@ -319,7 +319,7 @@ public void reportAmbiguity(

@Override
public void reportAttemptingFullContext(
org.projectnessie.cel.parser.gen.antlr.v4.runtime.Parser recognizer,
org.projectnessie.cel.shaded.org.antlr.v4.runtime.Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
Expand All @@ -330,7 +330,7 @@ public void reportAttemptingFullContext(

@Override
public void reportContextSensitivity(
org.projectnessie.cel.parser.gen.antlr.v4.runtime.Parser recognizer,
org.projectnessie.cel.shaded.org.antlr.v4.runtime.Parser recognizer,
DFA dfa,
int startIndex,
int stopIndex,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package org.projectnessie.cel.parser;

import org.projectnessie.cel.parser.gen.antlr.v4.runtime.CharStream;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.IntStream;
import org.projectnessie.cel.parser.gen.antlr.v4.runtime.misc.Interval;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.CharStream;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.IntStream;
import org.projectnessie.cel.shaded.org.antlr.v4.runtime.misc.Interval;

public final class StringCharStream implements CharStream {

Expand Down
2 changes: 1 addition & 1 deletion generated-antlr/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tasks.named<ShadowJar>("shadowJar") {
dependencies {
include(dependency("org.antlr:antlr4-runtime"))
}
relocate("org.antlr.v4.runtime", "org.projectnessie.cel.parser.gen.antlr.v4.runtime")
relocate("org.antlr.v4.runtime", "org.projectnessie.cel.shaded.org.antlr.v4.runtime")
archiveClassifier.set("")
}

Expand Down

0 comments on commit 5341112

Please sign in to comment.