Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2021-05-12 19:15:09 +0300
committerStefan Niedermann <info@niedermann.it>2021-05-12 19:15:09 +0300
commitc07b7717430c7afdf3bed8f2ad288d9921f6df7d (patch)
treed27f7ea9a670481ce29430403c623f2d767dae3d /app/src/main/java/it/niedermann/owncloud/notes/shared
parent3bf57cd2850962045ec5cd8ff8575850770bf029 (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.java4
-rw-r--r--app/src/main/java/it/niedermann/owncloud/notes/shared/model/CategorySortingMethod.java8
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)