1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-06-29 23:14:52 +02:00

Add missing break statements

This commit is contained in:
Florian Schmaus 2015-03-23 09:52:01 +01:00
parent 5e86db4f80
commit 451eb4c826
7 changed files with 8 additions and 0 deletions

View file

@ -1070,6 +1070,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
// desired behavior. // desired behavior.
return; return;
} }
break;
default: default:
break; break;
} }

View file

@ -580,6 +580,7 @@ public class PacketParserUtils {
} }
break; break;
} }
break;
case XmlPullParser.END_TAG: case XmlPullParser.END_TAG:
if (parser.getDepth() == initialDepth) { if (parser.getDepth() == initialDepth) {
break outerloop; break outerloop;

View file

@ -66,6 +66,7 @@ public class ForwardedProvider extends ExtensionElementProvider<Forwarded> {
default: default:
LOGGER.warning("Unsupported forwarded packet type: " + name); LOGGER.warning("Unsupported forwarded packet type: " + name);
} }
break;
case XmlPullParser.END_TAG: case XmlPullParser.END_TAG:
if (parser.getDepth() == initialDepth) { if (parser.getDepth() == initialDepth) {
break outerloop; break outerloop;

View file

@ -145,6 +145,7 @@ public class LastActivityManager extends Manager {
// We assume that only a switch to available and chat indicates user activity // We assume that only a switch to available and chat indicates user activity
// since other mode changes could be also a result of some sort of automatism // since other mode changes could be also a result of some sort of automatism
resetIdleTime(); resetIdleTime();
break;
default: default:
break; break;
} }

View file

@ -47,6 +47,7 @@ public class MUCParserUtils {
reason = parser.nextText(); reason = parser.nextText();
break; break;
} }
break;
case XmlPullParser.END_TAG: case XmlPullParser.END_TAG:
if (parser.getDepth() == initialDepth) { if (parser.getDepth() == initialDepth) {
break outerloop; break outerloop;

View file

@ -254,10 +254,12 @@ public class VCardProvider extends IQProvider<VCard> {
default: default:
break; break;
} }
break;
case XmlPullParser.END_TAG: case XmlPullParser.END_TAG:
if (parser.getDepth() == initialDepth) { if (parser.getDepth() == initialDepth) {
break outerloop; break outerloop;
} }
break;
default: default:
break; break;
} }

View file

@ -132,6 +132,7 @@ public class DataFormProvider extends ExtensionElementProvider<DataForm> {
} }
break; break;
} }
break;
case XmlPullParser.END_TAG: case XmlPullParser.END_TAG:
if (parser.getDepth() == initialDepth) { if (parser.getDepth() == initialDepth) {
break outerloop; break outerloop;