diff options
author | Alex Clayton <alex.clayton@isode.com> | 2016-01-18 12:30:15 (GMT) |
---|---|---|
committer | Alex Clayton <alex.clayton@isode.com> | 2016-01-18 15:45:59 (GMT) |
commit | fa1633e3b4d75a8217459cdc5fe64e9ee5ace65a (patch) | |
tree | b07c9ba91604541db47620f599bced17fdeccc48 /src/com/isode/stroke/jingle/Jingle.java | |
parent | 72249383639858b1a7947b1afc6b9491ebd82bf8 (diff) | |
download | stroke-fa1633e3b4d75a8217459cdc5fe64e9ee5ace65a.zip stroke-fa1633e3b4d75a8217459cdc5fe64e9ee5ace65a.tar.bz2 |
Some Jingle Fixes
Some fixes to the Jingle classes for the previous patch.
Test-information:
By code inspection.
Ran Unit Tests there were no failures.
Change-Id: I61210dd1ec2c7e0dd11d67a45a0ced63952804c7
Diffstat (limited to 'src/com/isode/stroke/jingle/Jingle.java')
-rw-r--r-- | src/com/isode/stroke/jingle/Jingle.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/isode/stroke/jingle/Jingle.java b/src/com/isode/stroke/jingle/Jingle.java index 14dbb68..db041b8 100644 --- a/src/com/isode/stroke/jingle/Jingle.java +++ b/src/com/isode/stroke/jingle/Jingle.java @@ -18,9 +18,9 @@ import java.util.Vector; public class Jingle { public <T extends Payload> JingleContentPayload getContentWithDescription(final Vector<JingleContentPayload> contents, T payload) { - for (int i = 0; i < contents.size(); ++i) { - if (contents.get(i).getDescription(payload) != null) { - return contents.get(i); + for (JingleContentPayload jingleContentPayload : contents) { + if (jingleContentPayload.getDescription(payload) != null) { + return jingleContentPayload; } } return null; |