diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-05-12 19:15:09 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2021-05-12 19:15:09 +0300 |
commit | c07b7717430c7afdf3bed8f2ad288d9921f6df7d (patch) | |
tree | d27f7ea9a670481ce29430403c623f2d767dae3d /app/src/main/java/it/niedermann/owncloud/notes/shared | |
parent | 3bf57cd2850962045ec5cd8ff8575850770bf029 (diff) |
Add unit test for NotesRepository#getInstance()
Diffstat (limited to 'app/src/main/java/it/niedermann/owncloud/notes/shared')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/shared/model/ApiVersion.java | 4 | ||||
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/shared/model/CategorySortingMethod.java | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/shared/model/ApiVersion.java b/app/src/main/java/it/niedermann/owncloud/notes/shared/model/ApiVersion.java index 0f8b7c1c..0a42012b 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/shared/model/ApiVersion.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/shared/model/ApiVersion.java @@ -41,10 +41,6 @@ public class ApiVersion implements Comparable<ApiVersion> { return minor; } - public String getOriginalVersion() { - return originalVersion; - } - public static ApiVersion of(String versionString) { int major = 0, minor = 0; if (versionString != null) { diff --git a/app/src/main/java/it/niedermann/owncloud/notes/shared/model/CategorySortingMethod.java b/app/src/main/java/it/niedermann/owncloud/notes/shared/model/CategorySortingMethod.java index 94bcda38..6a36ade1 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/shared/model/CategorySortingMethod.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/shared/model/CategorySortingMethod.java @@ -7,7 +7,7 @@ public enum CategorySortingMethod { private final int id; private final String title; // sorting method OrderBy for SQL - /*** + /** * Constructor * @param title given sorting method OrderBy */ @@ -16,7 +16,7 @@ public enum CategorySortingMethod { this.title = title; } - /*** + /** * Retrieve the sorting method id represented in database * @return the sorting method id for the enum item */ @@ -24,7 +24,7 @@ public enum CategorySortingMethod { return this.id; } - /*** + /** * Retrieve the sorting method order for SQL * @return the sorting method order for the enum item */ @@ -32,7 +32,7 @@ public enum CategorySortingMethod { return this.title; } - /*** + /** * Retrieve the corresponding enum value with given the index (ordinal) * @param id the id of the corresponding enum value stored in DB * @return the corresponding enum item with the index (ordinal) |