Search in sources :

Example 1 with Category

use of com.android.tools.klint.detector.api.Category in project kotlin by JetBrains.

the class IssueRegistry method createCategoryList.

@NonNull
private List<Category> createCategoryList() {
    Set<Category> categorySet = Sets.newHashSetWithExpectedSize(20);
    for (Issue issue : getIssues()) {
        categorySet.add(issue.getCategory());
    }
    List<Category> sorted = new ArrayList<Category>(categorySet);
    Collections.sort(sorted);
    return sorted;
}
Also used : Category(com.android.tools.klint.detector.api.Category) Issue(com.android.tools.klint.detector.api.Issue) ArrayList(java.util.ArrayList) NonNull(com.android.annotations.NonNull)

Aggregations

NonNull (com.android.annotations.NonNull)1 Category (com.android.tools.klint.detector.api.Category)1 Issue (com.android.tools.klint.detector.api.Issue)1 ArrayList (java.util.ArrayList)1