Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java
index 6871ab164..f006b40ca 100644
--- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java
+++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2016 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation 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
@@ -69,15 +69,15 @@ public class CategoryParser extends DefaultHandler {
private boolean DESCRIPTION_SITE_ALREADY_SEEN = false;
// Current object stack (used to hold the current object we are
// populating in this plugin descriptor
- Stack<Object> objectStack = new Stack<Object>();
+ Stack<Object> objectStack = new Stack<>();
private SAXParser parser;
// Current State Information
- Stack<Integer> stateStack = new Stack<Integer>();
+ Stack<Integer> stateStack = new Stack<>();
// List of string keys for translated strings
- private final List<String> messageKeys = new ArrayList<String>(4);
+ private final List<String> messageKeys = new ArrayList<>(4);
private MultiStatus status;
@@ -105,8 +105,8 @@ public class CategoryParser extends DefaultHandler {
*/
public CategoryParser(URI siteLocation) {
super();
- stateStack = new Stack<Integer>();
- objectStack = new Stack<Object>();
+ stateStack = new Stack<>();
+ objectStack = new Stack<>();
status = null;
DESCRIPTION_SITE_ALREADY_SEEN = false;
try {
@@ -134,6 +134,7 @@ public class CategoryParser extends DefaultHandler {
* @see DefaultHandler#characters(char[], int, int)
* @since 2.0
*/
+ @Override
public void characters(char[] ch, int start, int length) {
String text = new String(ch, start, length);
//only push if description
@@ -164,6 +165,7 @@ public class CategoryParser extends DefaultHandler {
* @see DefaultHandler#endElement(String, String, String)
* @since 2.0
*/
+ @Override
public void endElement(String uri, String localName, String qName) {
String text = null;
@@ -342,6 +344,7 @@ public class CategoryParser extends DefaultHandler {
* @see DefaultHandler#error(SAXParseException)
* @since 2.0
*/
+ @Override
public void error(SAXParseException ex) {
logStatus(ex);
}
@@ -352,6 +355,7 @@ public class CategoryParser extends DefaultHandler {
* @exception SAXException
* @since 2.0
*/
+ @Override
public void fatalError(SAXParseException ex) throws SAXException {
logStatus(ex);
throw ex;
@@ -889,6 +893,7 @@ public class CategoryParser extends DefaultHandler {
* @see DefaultHandler#startElement(String, String, String, Attributes)
* @since 2.0
*/
+ @Override
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
if (Tracing.DEBUG_GENERATOR_PARSING) {

Back to the top