diff --git a/error_templates/java/arithmetic_exception.go b/error_templates/java/arithmetic_exception.go index fb7358e..3d7a419 100644 --- a/error_templates/java/arithmetic_exception.go +++ b/error_templates/java/arithmetic_exception.go @@ -30,7 +30,7 @@ var ArithmeticException = lib.ErrorTemplate{ query = "(_) \"/\" ((decimal_integer_literal) @literal (#eq? @literal \"0\"))" case "Non-terminating decimal expansion; no exact representable decimal result.": ctx.kind = nonTerminatingDecimal - query = "(method_invocation) @methodCall (#eq? @methodCall \".divide\")" + query = "((method_invocation) @methodCall (#eq? @methodCall \".divide\"))" default: ctx.kind = unknown }