Skip to content

Commit

Permalink
chore: Add Serializable to FFmpegError
Browse files Browse the repository at this point in the history
  • Loading branch information
Euklios committed Aug 9, 2024
1 parent 6f2e85c commit 1df2543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/bramp/ffmpeg/FFmpegException.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class FFmpegException extends IOException {

private static final long serialVersionUID = 3048288225568984942L;
private FFmpegError error;
private final FFmpegError error;

public FFmpegException(String message, FFmpegError error) {
super(message);
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/net/bramp/ffmpeg/probe/FFmpegError.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import java.io.Serializable;

@SuppressFBWarnings(
value = {"UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD"},
justification = "POJO objects where the fields are populated by gson")
public class FFmpegError {
public class FFmpegError implements Serializable {
private static final long serialVersionUID = 1L;

public int code;
public String string;

Expand Down

0 comments on commit 1df2543

Please sign in to comment.