diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-07-06 13:48:38 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-07-06 13:48:38 +0200 |
commit | fb1fcb06005e925f6c1ebabeb1f31007bc86a48c (patch) | |
tree | cce2db2e3d59b35ed138fe7c22448cf657ee75c5 /src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java | |
parent | 60214f6306bfed6b870b8cc5c8ce0b08d4590cdd (diff) | |
download | AntennaPod-fb1fcb06005e925f6c1ebabeb1f31007bc86a48c.zip |
Increased use of library methods
Diffstat (limited to 'src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java')
-rw-r--r-- | src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java b/src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java index aa01b66e2..b002035c9 100644 --- a/src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java +++ b/src/de/danoeh/antennapod/gpoddernet/model/GpodnetPodcast.java @@ -1,5 +1,7 @@ package de.danoeh.antennapod.gpoddernet.model; +import org.apache.commons.lang3.Validate; + public class GpodnetPodcast { private String url; private String title; @@ -11,10 +13,9 @@ public class GpodnetPodcast { public GpodnetPodcast(String url, String title, String description, int subscribers, String logoUrl, String website, String mygpoLink) { - if (url == null || title == null || description == null) { - throw new IllegalArgumentException( - "URL, title and description must not be null"); - } + Validate.notNull(url); + Validate.notNull(title); + Validate.notNull(description); this.url = url; this.title = title; |