From be4c0c28fffc21a2b0ce7087784a7ab1fe3e1dd1 Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Tue, 6 Apr 2021 18:03:36 +0200 Subject: [PATCH] Remove unused import --- .../owncloud/notes/shared/model/CategorySortingMethod.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ecbd4eeb..94bcda38 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 @@ -1,7 +1,5 @@ package it.niedermann.owncloud.notes.shared.model; -import java.util.NoSuchElementException; - public enum CategorySortingMethod { SORT_MODIFIED_DESC(0, "MODIFIED DESC"), SORT_LEXICOGRAPHICAL_ASC(1, "TITLE COLLATE NOCASE ASC"); @@ -40,8 +38,8 @@ public enum CategorySortingMethod { * @return the corresponding enum item with the index (ordinal) */ public static CategorySortingMethod findById(int id) { - for(CategorySortingMethod csm : values()) { - if(csm.getId() == id) { + for (CategorySortingMethod csm : values()) { + if (csm.getId() == id) { return csm; } }