Commit 5b0e0c92 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Formatting.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@922 b35dd754-fafc-0310-a699-88a17e54d16e
parent 919511cd
......@@ -267,8 +267,7 @@ public class XPPPacketReader {
int type = -1;
type = pp.nextToken();
switch (type) {
case XmlPullParser.PROCESSING_INSTRUCTION:
{
case XmlPullParser.PROCESSING_INSTRUCTION: {
String text = pp.getText();
int loc = text.indexOf(" ");
if (loc >= 0) {
......@@ -278,16 +277,14 @@ public class XPPPacketReader {
document.addProcessingInstruction(text, "");
break;
}
case XmlPullParser.COMMENT:
{
case XmlPullParser.COMMENT: {
if (parent != null)
parent.addComment(pp.getText());
else
document.addComment(pp.getText());
break;
}
case XmlPullParser.CDSECT:
{
case XmlPullParser.CDSECT: {
String text = pp.getText();
if (parent != null) {
parent.addCDATA(text);
......@@ -300,8 +297,7 @@ public class XPPPacketReader {
break;
}
case XmlPullParser.ENTITY_REF:
{
case XmlPullParser.ENTITY_REF: {
String text = pp.getText();
if (parent != null) {
parent.addText(text);
......@@ -313,13 +309,10 @@ public class XPPPacketReader {
}
break;
}
case XmlPullParser.END_DOCUMENT:
{
case XmlPullParser.END_DOCUMENT: {
return document;
}
case XmlPullParser.START_TAG:
{
case XmlPullParser.START_TAG: {
QName qname = (pp.getPrefix() == null) ? df.createQName(pp.getName(), pp.getNamespace()) : df.createQName(pp.getName(), pp.getPrefix(), pp.getNamespace());
Element newElement = null;
if ("jabber:client".equals(qname.getNamespaceURI())) {
......@@ -348,8 +341,7 @@ public class XPPPacketReader {
count++;
break;
}
case XmlPullParser.END_TAG:
{
case XmlPullParser.END_TAG: {
if (parent != null) {
parent = parent.getParent();
}
......@@ -359,8 +351,7 @@ public class XPPPacketReader {
}
break;
}
case XmlPullParser.TEXT:
{
case XmlPullParser.TEXT: {
String text = pp.getText();
if (parent != null) {
parent.addText(text);
......@@ -399,7 +390,6 @@ public class XPPPacketReader {
}
}
/*
* Redistribution and use of this software and associated documentation
* ("Software"), with or without modification, are permitted provided
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment