Skip to content

Commit

Permalink
Add private constructors for converter classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jensstein committed Jun 26, 2019
1 parent 1863784 commit d81e664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/dk/jens/backup/schedules/db/Schedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ public Schedule build() {
}

static class ModeConverter {
private ModeConverter() {}
@TypeConverter
public static String toString(Mode mode) {
return mode.name();
Expand All @@ -339,6 +340,7 @@ public static Mode toMode(String name) {
}

static class SubmodeConverter {
private SubmodeConverter() {}
@TypeConverter
public static String toString(Submode submode) {
return submode.name();
Expand Down

0 comments on commit d81e664

Please sign in to comment.