Format NSMedia.java

This commit is contained in:
Cj Malone 2016-07-25 09:44:17 +01:00
parent 8e281890dd
commit d4d696d83a

View File

@ -31,7 +31,7 @@ public class NSMedia extends Namespace {
String url = attributes.getValue(DOWNLOAD_URL);
String type = attributes.getValue(MIME_TYPE);
boolean validType;
if(SyndTypeUtils.enclosureTypeValid(type)) {
if (SyndTypeUtils.enclosureTypeValid(type)) {
validType = true;
} else {
type = SyndTypeUtils.getValidMimeTypeFromUrl(url);
@ -58,7 +58,7 @@ public class NSMedia extends Namespace {
}
}
FeedMedia media = new FeedMedia(state.getCurrentItem(), url, size, type);
if(durationMs > 0) {
if (durationMs > 0) {
media.setDuration(durationMs);
}
state.getCurrentItem().setMedia(media);
@ -71,5 +71,4 @@ public class NSMedia extends Namespace {
public void handleElementEnd(String localName, HandlerState state) {
}
}