diff options
author | Tor Norbye <tnorbye@google.com> | 2022-07-19 10:47:27 -0700 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-07-19 19:50:22 +0000 |
commit | 1c4e55dc193652410b56e38a0142eee32972f291 (patch) | |
tree | b1b749c3a7f20c758ec4a7149515899b299f901a /designer | |
parent | 8ce8ca66b1c0a4c34f94a6313a9ab814b498b8df (diff) | |
download | idea-1c4e55dc193652410b56e38a0142eee32972f291.tar.gz |
239554951: Update lint severity ordering
Lint changed the ordering of the enum values in Severity such that
they're in increasing severity order; this required updating
comparison code on the IDE side.
Test: IssueDataTest
Fixes: 239554951
Change-Id: I48559f63c70def3ed68babc2db170b77b9d21731
Diffstat (limited to 'designer')
-rw-r--r-- | designer/src/com/android/tools/idea/common/lint/LintAnnotationsModel.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/designer/src/com/android/tools/idea/common/lint/LintAnnotationsModel.java b/designer/src/com/android/tools/idea/common/lint/LintAnnotationsModel.java index 99fa1cb91cf..c74a249b9e0 100644 --- a/designer/src/com/android/tools/idea/common/lint/LintAnnotationsModel.java +++ b/designer/src/com/android/tools/idea/common/lint/LintAnnotationsModel.java @@ -167,8 +167,8 @@ public class LintAnnotationsModel { * Compare the issue by comparing the following properties, sorted by Highest priority first * <ul> * <li> {@link HighlightDisplayLevel#getSeverity()} - * <li> {@link Issue#priority} - * <li> {@link Issue#severity} + * <li> {@link Issue#getPriority()} + * <li> {@link Issue#getDefaultSeverity()} * </ul> */ @Override @@ -176,7 +176,7 @@ public class LintAnnotationsModel { return ComparisonChain.start() .compare(this.level.getSeverity(), o.level.getSeverity()) .compare(this.issue.getPriority(), o.issue.getPriority()) - .compare(o.issue.getDefaultSeverity(), this.issue.getDefaultSeverity()) // Inverted on purpose + .compare(this.issue.getDefaultSeverity(), o.issue.getDefaultSeverity()) .result(); } } |