fix "low hanging" compiler warnings

Change-Id: I5e3cb6b7300006ebf9c44a49a773856f79536edc
Signed-off-by: Florian Thienel <florian@thienel.org>
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/IncludeInlineBox.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/IncludeInlineBox.java
index 2fc7832..9c0b302 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/IncludeInlineBox.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/layout/IncludeInlineBox.java
@@ -19,7 +19,6 @@
 	private final INode node;
 	private InlineBox[] children;
 	private InlineBox firstContentChild = null;
-	private InlineBox lastContentChild = null;
 	private int baseline;
 
 	/**
@@ -94,11 +93,8 @@
 		this.children = children;
 		layout(context);
 		for (final InlineBox child : children) {
-			if (child.hasContent()) {
-				if (firstContentChild == null) {
-					firstContentChild = child;
-				}
-				lastContentChild = child;
+			if (child.hasContent() && firstContentChild == null) {
+				firstContentChild = child;
 			}
 		}
 	}
diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/ConfigLoaderJobTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/ConfigLoaderJobTest.java
index e06d50e..839ec99 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/ConfigLoaderJobTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/ConfigLoaderJobTest.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0

  * which accompanies this distribution, and is available at

  * http://www.eclipse.org/legal/epl-v10.html

- * 

+ *

  * Contributors:

  * 		Florian Thienel - initial API and implementation

  *******************************************************************************/

@@ -29,7 +29,6 @@
 /**

  * @author Florian Thienel

  */

-@SuppressWarnings("restriction")

 public class ConfigLoaderJobTest {

 

 	@Rule

diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PluginProjectTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PluginProjectTest.java
index 4371754..5cab74c 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PluginProjectTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PluginProjectTest.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0

  * which accompanies this distribution, and is available at

  * http://www.eclipse.org/legal/epl-v10.html

- * 

+ *

  * Contributors:

  * 		Florian Thienel - initial API and implementation

  *******************************************************************************/

@@ -24,7 +24,6 @@
 /**

  * @author Florian Thienel

  */

-@SuppressWarnings("restriction")

 public class PluginProjectTest {

 

 	public static IProject createVexPluginProject(final String name) throws CoreException {

@@ -54,7 +53,7 @@
 		final StringWriter result = new StringWriter();

 		final PrintWriter out = new PrintWriter(result);

 		out.println("<?xml version='1.0'?>"); //$NON-NLS-1$

-		// HINT: It is important to set the id attribute, because this is used as the unique identifier for the configuration. 

+		// HINT: It is important to set the id attribute, because this is used as the unique identifier for the configuration.

 		out.println("<plugin id=\"" + project.getName() + "\">"); //$NON-NLS-1$ //$NON-NLS-2$

 		out.println("<extension id=\"plugintest\" name=\"plugin test doctype\" point=\"org.eclipse.vex.ui.doctypes\">"); //$NON-NLS-1$

 		out.println("<doctype systemId=\"" + dtdFilename + "\" dtd=\"" + dtdFilename + "\" publicId=\"-//Vex//Plugin Test//EN\" />"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PreferencesTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PreferencesTest.java
index de9b323..a47679e 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PreferencesTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/PreferencesTest.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  * 		Carsten Hiesserich - initial API and implementation
  *******************************************************************************/
@@ -21,7 +21,6 @@
 import org.eclipse.vex.ui.internal.config.Style;
 import org.junit.Test;
 
-@SuppressWarnings("restriction")
 public class PreferencesTest {
 
 	@Test
diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/VexDocumentContentModelTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/VexDocumentContentModelTest.java
index 59dafed..60c468f 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/VexDocumentContentModelTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/config/tests/VexDocumentContentModelTest.java
@@ -23,7 +23,6 @@
 import org.junit.Before;
 import org.junit.Test;
 
-@SuppressWarnings("restriction")
 public class VexDocumentContentModelTest {
 
 	private VexDocumentContentModel model;
diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/editor/tests/HandlerUtilTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/editor/tests/HandlerUtilTest.java
index fe173c2..06e215d 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/editor/tests/HandlerUtilTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/editor/tests/HandlerUtilTest.java
@@ -30,7 +30,6 @@
 import org.junit.Before;

 import org.junit.Test;

 

-@SuppressWarnings("restriction")

 public class HandlerUtilTest {

 

 	private IVexWidget widget;

diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineFilterTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineFilterTest.java
index f265b47..123b3c5 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineFilterTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineFilterTest.java
@@ -27,7 +27,6 @@
 import org.junit.Before;
 import org.junit.Test;
 
-@SuppressWarnings("restriction")
 public class OutlineFilterTest {
 
 	private OutlineFilter filter;
diff --git a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineProviderTest.java b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineProviderTest.java
index 1423247..2925e73 100644
--- a/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineProviderTest.java
+++ b/org.eclipse.vex.ui.tests/src/org/eclipse/vex/ui/internal/outline/tests/OutlineProviderTest.java
@@ -31,7 +31,6 @@
 import org.junit.Before;
 import org.junit.Test;
 
-@SuppressWarnings("restriction")
 public class OutlineProviderTest {
 
 	private DefaultOutlineProvider outlineProvider;
diff --git a/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/config/DoctypeFactory.java b/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/config/DoctypeFactory.java
index 4cbed14..373f794 100644
--- a/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/config/DoctypeFactory.java
+++ b/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/config/DoctypeFactory.java
@@ -27,7 +27,6 @@
 	private static final String[] EXTS = new String[] { "dtd" }; //$NON-NLS-1$
 
 	private static final String ELT_DOCTYPE = "doctype"; //$NON-NLS-1$
-	private static final String ELT_SCHEMA = "schema"; //$NON-NLS-1$
 	private static final String ATTR_OUTLINE_PROVIDER = "outlineProvider"; //$NON-NLS-1$
 	private static final String ATTR_SYSTEM_ID = "systemId"; //$NON-NLS-1$
 	private static final String ATTR_PUBLIC_ID = "publicId"; //$NON-NLS-1$
diff --git a/org.eclipse.vex.xhtml/build.properties b/org.eclipse.vex.xhtml/build.properties
index 3213dce..8faf310 100644
--- a/org.eclipse.vex.xhtml/build.properties
+++ b/org.eclipse.vex.xhtml/build.properties
@@ -5,7 +5,4 @@
                styles/

 jars.compile.order = .

 source.. = src/

-src.includes = plugin.xml,\

-               plugin.properties,\

-               styles/,\

-               META-INF/

+src.includes = styles/