From 45e42d724318ae32626de31a0d87d7dcf7548bdf Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Wed, 18 Jul 2012 14:24:16 -0500 Subject: [PATCH] Parameter to equals can be null --- .../Java/src/org/antlr/v4/runtime/atn/SemanticContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/SemanticContext.java b/runtime/Java/src/org/antlr/v4/runtime/atn/SemanticContext.java index 85a9e997b..167d1878b 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/SemanticContext.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/SemanticContext.java @@ -125,7 +125,7 @@ public abstract class SemanticContext { } @Override - public boolean equals(@NotNull Object obj) { + public boolean equals(Object obj) { if ( this==obj ) return true; if ( !(obj instanceof AND) ) return false; AND other = (AND)obj; @@ -162,7 +162,7 @@ public abstract class SemanticContext { } @Override - public boolean equals(@NotNull Object obj) { + public boolean equals(Object obj) { if ( this==obj ) return true; if ( !(obj instanceof OR) ) return false; OR other = (OR)obj;