mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-22 22:28:10 +01:00
Merge pull request #3283 from andersonvom/3273-renable-linting
Re-enable deprecation and serial linting
This commit is contained in:
commit
9ffd9a9848
@ -776,6 +776,7 @@ public abstract class NanoHTTPD {
|
||||
}
|
||||
|
||||
public static final class ResponseException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final Response.Status status;
|
||||
|
||||
|
@ -19,7 +19,7 @@ allprojects {
|
||||
|
||||
gradle.projectsEvaluated {
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial"
|
||||
options.compilerArgs << "-Xlint"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package de.danoeh.antennapod.core.gpoddernet;
|
||||
|
||||
public class GpodnetServiceAuthenticationException extends GpodnetServiceException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public GpodnetServiceAuthenticationException() {
|
||||
super();
|
||||
@ -17,5 +18,4 @@ public class GpodnetServiceAuthenticationException extends GpodnetServiceExcepti
|
||||
public GpodnetServiceAuthenticationException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
package de.danoeh.antennapod.core.gpoddernet;
|
||||
|
||||
class GpodnetServiceBadStatusCodeException extends GpodnetServiceException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final int statusCode;
|
||||
|
||||
public GpodnetServiceBadStatusCodeException(String message, int statusCode) {
|
||||
super(message);
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package de.danoeh.antennapod.core.gpoddernet;
|
||||
|
||||
public class GpodnetServiceException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
GpodnetServiceException() {
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package de.danoeh.antennapod.core.menuhandler;
|
||||
|
||||
import android.support.v4.view.MenuItemCompat;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
||||
@ -25,7 +24,7 @@ public class MenuItemUtils {
|
||||
// expand actionview if feeds are being downloaded, collapse otherwise
|
||||
if (checker.isRefreshing()) {
|
||||
MenuItem refreshItem = menu.findItem(resId);
|
||||
MenuItemCompat.setActionView(refreshItem, R.layout.refresh_action_view);
|
||||
refreshItem.setActionView(R.layout.refresh_action_view);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
@ -5,21 +5,21 @@ package de.danoeh.antennapod.core.storage;
|
||||
* or something went wrong while processing the request.
|
||||
*/
|
||||
public class DownloadRequestException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public DownloadRequestException() {
|
||||
super();
|
||||
}
|
||||
public DownloadRequestException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public DownloadRequestException(String detailMessage, Throwable throwable) {
|
||||
super(detailMessage, throwable);
|
||||
}
|
||||
public DownloadRequestException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public DownloadRequestException(String detailMessage) {
|
||||
super(detailMessage);
|
||||
}
|
||||
|
||||
public DownloadRequestException(Throwable throwable) {
|
||||
super(throwable);
|
||||
}
|
||||
public DownloadRequestException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public DownloadRequestException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
||||
|
@ -3,44 +3,42 @@ package de.danoeh.antennapod.core.syndication.handler;
|
||||
import de.danoeh.antennapod.core.syndication.handler.TypeGetter.Type;
|
||||
|
||||
public class UnsupportedFeedtypeException extends Exception {
|
||||
private static final long serialVersionUID = 9105878964928170669L;
|
||||
private final TypeGetter.Type type;
|
||||
private String rootElement;
|
||||
private String message = null;
|
||||
|
||||
public UnsupportedFeedtypeException(Type type) {
|
||||
super();
|
||||
this.type = type;
|
||||
}
|
||||
private static final long serialVersionUID = 9105878964928170669L;
|
||||
private final TypeGetter.Type type;
|
||||
private String rootElement;
|
||||
private String message = null;
|
||||
|
||||
public UnsupportedFeedtypeException(Type type) {
|
||||
super();
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public UnsupportedFeedtypeException(Type type, String rootElement) {
|
||||
this.type = type;
|
||||
this.rootElement = rootElement;
|
||||
}
|
||||
|
||||
public UnsupportedFeedtypeException(String message) {
|
||||
this.message = message;
|
||||
type = Type.INVALID;
|
||||
}
|
||||
public UnsupportedFeedtypeException(String message) {
|
||||
this.message = message;
|
||||
type = Type.INVALID;
|
||||
}
|
||||
|
||||
public TypeGetter.Type getType() {
|
||||
return type;
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getRootElement() {
|
||||
return rootElement;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
if (message != null) {
|
||||
return message;
|
||||
} else if (type == TypeGetter.Type.INVALID) {
|
||||
return "Invalid type";
|
||||
} else {
|
||||
return "Type " + type + " not supported";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String getMessage() {
|
||||
if (message != null) {
|
||||
return message;
|
||||
} else if (type == TypeGetter.Type.INVALID) {
|
||||
return "Invalid type";
|
||||
} else {
|
||||
return "Type " + type + " not supported";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,21 +1,23 @@
|
||||
package de.danoeh.antennapod.core.util;
|
||||
|
||||
/** Thrown if a feed has invalid attribute values. */
|
||||
/**
|
||||
* Thrown if a feed has invalid attribute values.
|
||||
*/
|
||||
public class InvalidFeedException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public InvalidFeedException() {
|
||||
}
|
||||
public InvalidFeedException() {
|
||||
}
|
||||
|
||||
public InvalidFeedException(String detailMessage) {
|
||||
super(detailMessage);
|
||||
}
|
||||
public InvalidFeedException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public InvalidFeedException(Throwable throwable) {
|
||||
super(throwable);
|
||||
}
|
||||
|
||||
public InvalidFeedException(String detailMessage, Throwable throwable) {
|
||||
super(detailMessage, throwable);
|
||||
}
|
||||
public InvalidFeedException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public InvalidFeedException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
|
@ -3,16 +3,16 @@ package de.danoeh.antennapod.core.util.exception;
|
||||
import de.danoeh.antennapod.core.feed.FeedMedia;
|
||||
|
||||
public class MediaFileNotFoundException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final FeedMedia media;
|
||||
private final FeedMedia media;
|
||||
|
||||
public MediaFileNotFoundException(String msg, FeedMedia media) {
|
||||
super(msg);
|
||||
this.media = media;
|
||||
}
|
||||
public MediaFileNotFoundException(String msg, FeedMedia media) {
|
||||
super(msg);
|
||||
this.media = media;
|
||||
}
|
||||
|
||||
public FeedMedia getMedia() {
|
||||
return media;
|
||||
}
|
||||
public FeedMedia getMedia() {
|
||||
return media;
|
||||
}
|
||||
}
|
||||
|
@ -1,20 +1,20 @@
|
||||
package de.danoeh.antennapod.core.util.id3reader;
|
||||
|
||||
public class ID3ReaderException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ID3ReaderException() {
|
||||
}
|
||||
public ID3ReaderException() {
|
||||
}
|
||||
|
||||
public ID3ReaderException(String arg0) {
|
||||
super(arg0);
|
||||
}
|
||||
public ID3ReaderException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public ID3ReaderException(Throwable arg0) {
|
||||
super(arg0);
|
||||
}
|
||||
|
||||
public ID3ReaderException(String arg0, Throwable arg1) {
|
||||
super(arg0, arg1);
|
||||
}
|
||||
public ID3ReaderException(Throwable message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public ID3ReaderException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ public class HtmlToPlainText {
|
||||
*/
|
||||
public String getPlainText(Element element) {
|
||||
FormattingVisitor formatter = new FormattingVisitor();
|
||||
NodeTraversor traversor = new NodeTraversor(formatter);
|
||||
traversor.traverse(element); // walk the DOM, and call .head() and .tail() for each node
|
||||
// walk the DOM, and call .head() and .tail() for each node
|
||||
NodeTraversor.traverse(formatter, element);
|
||||
|
||||
return formatter.toString();
|
||||
}
|
||||
|
@ -1,24 +1,21 @@
|
||||
package de.danoeh.antennapod.core.util.vorbiscommentreader;
|
||||
|
||||
public class VorbisCommentReaderException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public VorbisCommentReaderException() {
|
||||
super();
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
public VorbisCommentReaderException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public VorbisCommentReaderException(String arg0, Throwable arg1) {
|
||||
super(arg0, arg1);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
public VorbisCommentReaderException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public VorbisCommentReaderException(String arg0) {
|
||||
super(arg0);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public VorbisCommentReaderException(Throwable arg0) {
|
||||
super(arg0);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
public VorbisCommentReaderException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public VorbisCommentReaderException(Throwable message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user