Skip to content

Commit

Permalink
Change StorageParser to an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
yisiox committed Feb 12, 2024
1 parent 2a85901 commit 925224a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/earl/util/parsers/StorageParser.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package earl.util.parsers;

/**
* Class responsible for interpreting storage entries.
* Marker interface for parsers responsible for interpreting storage entries.
*/
public abstract class StorageParser<T> implements Parser<T> {
public interface StorageParser<T> extends Parser<T> {
}
2 changes: 1 addition & 1 deletion src/main/java/earl/util/parsers/TaskStorageParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class responsible for parsing stored entries of tasks.
*/
public class TaskStorageParser extends StorageParser<Task> {
public class TaskStorageParser implements StorageParser<Task> {

/**
* Returns a {@code Task} object based on the stored string.
Expand Down

0 comments on commit 925224a

Please sign in to comment.