Closed Bug 736125 Opened 14 years ago Closed 14 years ago

More Java (1.7) related warnings causing errors on build

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 14

People

(Reporter: aaronmt, Assigned: kats)

Details

Attachments

(1 file)

/home/aaronmt/Mozilla/Mozilla-Central/mobile/android/base/GeckoApp.java:1324: warning: [static] static variable should be qualified by type name, Tab, instead of by an expression if (tab.getState() != tab.STATE_LOADING) { ^ error: warnings found and -Werror specified /home/aaronmt/Mozilla/Mozilla-Central/mobile/android/base/gfx/LayerController.java:145: warning: [static] static method should be qualified by type name, Tabs, instead of by an expression Tabs.getInstance().registerOnTabsChangedListener(this); ^ /home/aaronmt/Mozilla/Mozilla-Central/mobile/android/base/gfx/LayerController.java:148: warning: [static] static method should be qualified by type name, ViewConfiguration, instead of by an expression mTimeout = vc.getLongPressTimeout(); ^ /home/aaronmt/Mozilla/Mozilla-Central/mobile/android/base/gfx/LayerController.java:152: warning: [static] static method should be qualified by type name, Tabs, instead of by an expression Tabs.getInstance().unregisterOnTabsChangedListener(this); ^ /home/aaronmt/Mozilla/Mozilla-Central/mobile/android/base/TabsTray.java:91: warning: [static] static method should be qualified by type name, Tabs, instead of by an expression tabs.registerOnTabsChangedListener(this); ^ /home/aaronmt/Mozilla/Mozilla-Central/mobile/android/base/TabsTray.java:117: warning: [static] static method should be qualified by type name, Tabs, instead of by an expression Tabs.getInstance().unregisterOnTabsChangedListener(this); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error 6 warnings make[6]: *** [classes.dex] Error 1
Assignee: nobody → bugmail.mozilla
Attached patch PatchSplinter Review
Attachment #606262 - Flags: review?(sriram)
Comment on attachment 606262 [details] [diff] [review] Patch Review of attachment 606262 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. I'll make sure to use "static" method properly, going forward.
Attachment #606262 - Flags: review?(sriram) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: