Closed Bug 1510647 Opened 6 years ago Closed 2 years ago

Lint Warning: Missing @IntDef in Switch

Categories

(GeckoView :: General, defect, P5)

Unspecified
Android
defect

Tracking

(firefox102 wontfix, firefox103 wontfix, firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox102 --- wontfix
firefox103 --- wontfix
firefox104 --- fixed

People

(Reporter: fluffyemily, Assigned: pranshukumar1999, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=java])

Attachments

(1 file)

This check warns if a switch statement does not explicitly include all the values declared by the typedef @IntDef declaration.

Affected classes:

GeckoMediaDrmBridgeV21
SessionTextInput
Util
Keywords: good-first-bug
OS: Unspecified → Android
Priority: -- → P5
Product: Firefox for Android → GeckoView
Mentor: m_kato
Whiteboard: [lang=java]

I want to contribute to this bug. Please assign it to me.

OK, I assign this to you. Current warning is the following.

Missing @IntDef in Switch
mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java:419: Switch statement on an int with known associated constant missing case MediaDrm.EVENT_SESSION_RECLAIMED
Assignee: nobody → pranshukumar1999
Summary: Lint Warning: Missing @IntDef in Switc → Lint Warning: Missing @IntDef in Switch

I pushed a commit for this issue. https://phabricator.services.mozilla.com/D151653

Sir, I pushed a commit for the issue. But then I realized that it had that same linting, so I followed the steps you had told me in the previous bug and pushed the commit at that time only. So I don't think it have that same linting warning as of now.

Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/1b8d623937fc
Lint Warning: Missing @IntDef in Switch. r=m_kato,geckoview-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: