Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
breaking: Converts AxeImpact to enum (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
devchan4188 authored and cyono committed Nov 11, 2020
1 parent ff34a4b commit 01bee14
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/deque/axe/android/constants/AxeImpact.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
* Enums in Android are sketchy, so we have this simple Static class for accessing Impact constants.
*/
public enum AxeImpact {
MINOR(0), MODERATE(1), SERIOUS(2), CRITICAL(3), BLOCKER(4);
MINOR(0),
MODERATE(1),
SERIOUS(2),
CRITICAL(3),
BLOCKER(4);

private int impact;
private final int impact;

AxeImpact(int impact) {
this.impact = impact;
Expand Down

0 comments on commit 01bee14

Please sign in to comment.