forked from upstream-mirrors/OpenTracks
Cleanup: qName.
This commit is contained in:
@@ -145,8 +145,8 @@ public class GPXTrackImporter extends DefaultHandler implements XMLImporter.Trac
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void startElement(String uri, String localName, String tag, Attributes attributes) {
|
public void startElement(String uri, String localName, String qName, Attributes attributes) {
|
||||||
switch (tag) {
|
switch (qName) {
|
||||||
case TAG_MARKER:
|
case TAG_MARKER:
|
||||||
onMarkerStart(attributes);
|
onMarkerStart(attributes);
|
||||||
break;
|
break;
|
||||||
@@ -168,8 +168,8 @@ public class GPXTrackImporter extends DefaultHandler implements XMLImporter.Trac
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void endElement(String uri, String localName, String tag) {
|
public void endElement(String uri, String localName, String qName) {
|
||||||
switch (tag) {
|
switch (qName) {
|
||||||
case TAG_GPX -> onFileEnd();
|
case TAG_GPX -> onFileEnd();
|
||||||
case TAG_MARKER -> onMarkerEnd();
|
case TAG_MARKER -> onMarkerEnd();
|
||||||
case TAG_TRACK -> {
|
case TAG_TRACK -> {
|
||||||
|
|||||||
@@ -146,8 +146,8 @@ public class KMLTrackImporter extends DefaultHandler implements XMLImporter.Trac
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void startElement(String uri, String localName, String tag, Attributes attributes) throws SAXException {
|
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
|
||||||
switch (tag) {
|
switch (qName) {
|
||||||
case TAG_PLACEMARK, TAG_PHOTO_OVERLAY ->
|
case TAG_PLACEMARK, TAG_PHOTO_OVERLAY ->
|
||||||
// Note that a track is contained in a Placemark, calling onMarkerStart will clear various track variables like name, typeLocalized, and description.
|
// Note that a track is contained in a Placemark, calling onMarkerStart will clear various track variables like name, typeLocalized, and description.
|
||||||
onMarkerStart();
|
onMarkerStart();
|
||||||
@@ -168,8 +168,8 @@ public class KMLTrackImporter extends DefaultHandler implements XMLImporter.Trac
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void endElement(String uri, String localName, String tag) throws SAXException {
|
public void endElement(String uri, String localName, String qName) throws SAXException {
|
||||||
switch (tag) {
|
switch (qName) {
|
||||||
case TAG_KML -> onFileEnd();
|
case TAG_KML -> onFileEnd();
|
||||||
case TAG_PLACEMARK, TAG_PHOTO_OVERLAY ->
|
case TAG_PLACEMARK, TAG_PHOTO_OVERLAY ->
|
||||||
// Note that a track is contained in a Placemark, calling onMarkerEnd is save since markerType is not set for a track.
|
// Note that a track is contained in a Placemark, calling onMarkerEnd is save since markerType is not set for a track.
|
||||||
|
|||||||
Reference in New Issue
Block a user