Commit 1c682ed9 authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

removed deprecated annotations and fixed deprecated lexer syntax


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent 1e4b8dc0
......@@ -14,8 +14,6 @@ import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.CommonToken;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.Nullable;
public class TitanListener extends BaseErrorListener {
protected List<SyntacticErrorStorage> errorsStored = null;
......@@ -32,8 +30,8 @@ public class TitanListener extends BaseErrorListener {
}
@Override
public void syntaxError(@NotNull final Recognizer<?, ?> recognizer, @Nullable final Object offendingSymbol, final int line, final int charPositionInLine,
@NotNull final String msg, @Nullable final RecognitionException e) {
public void syntaxError(final Recognizer<?, ?> recognizer, final Object offendingSymbol, final int line, final int charPositionInLine,
final String msg, final RecognitionException e) {
SyntacticErrorStorage errorStorage;
if (offendingSymbol instanceof CommonToken) {
final CommonToken token = (CommonToken) offendingSymbol;
......
......@@ -112,7 +112,7 @@ NUMBER:
REALNUMBER:
(
NUMBER ([\.] [0-9]+)? ([eE][+\-]? NUMBER)?
NUMBER ([.] [0-9]+)? ([eE][+\-]? NUMBER)?
);
SINGLELINECOMMENT:
......@@ -158,7 +158,7 @@ CSTRING:
(
'"'
(
'\"\"'
'""'
| ~('"')
)*
'"'
......
......@@ -12,8 +12,6 @@ import java.text.MessageFormat;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.Nullable;
import org.eclipse.titan.runtime.core.TTCN_Logger;
public class CFGListener extends BaseErrorListener {
......@@ -34,8 +32,8 @@ public class CFGListener extends BaseErrorListener {
}
@Override
public void syntaxError(@NotNull final Recognizer<?, ?> recognizer, @Nullable final Object offendingSymbol, final int line, final int charPositionInLine,
@NotNull final String msg, @Nullable final RecognitionException e) {
public void syntaxError(final Recognizer<?, ?> recognizer, final Object offendingSymbol, final int line, final int charPositionInLine,
final String msg, final RecognitionException e) {
encounteredError = true;
TTCN_Logger.begin_event(TTCN_Logger.Severity.ERROR_UNQUALIFIED);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment