528344 - [Generic Editor] Default highlighter patterns are broken

Fix warning in the test.

Change-Id: I39229664aa0298b759bae79144397456972a36bb
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HighlightTest.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HighlightTest.java
index 4d2c365..8026406 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HighlightTest.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HighlightTest.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2017 Red Hat Inc. and others.
+ * Copyright (c) 2017, 2018 Red Hat Inc. and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -126,8 +126,6 @@
 
 	private void waitForAnnotations(int count) {
 		new DisplayHelper() {
-			final IAnnotationModel annotationModel= getAnnotationModel();
-
 			@Override
 			protected boolean condition() {
 				return getAnnotationsFromAnnotationModel().size() == count;