Closed
Bug 1098082
Opened 11 years ago
Closed 11 years ago
Merge identical catch blocks
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 36
People
(Reporter: ckitching, Assigned: ckitching)
Details
Attachments
(1 file)
|
53.88 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
Multi-catch FTW...
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8521884 -
Flags: review?(rnewman)
Comment 2•11 years ago
|
||
Comment on attachment 8521884 [details] [diff] [review]
Merge identical catch branches
Review of attachment 8521884 [details] [diff] [review]:
-----------------------------------------------------------------
Hooray!
Don't forget to upstream necessary changes.
::: mobile/android/base/GeckoAppShell.java
@@ +1850,5 @@
> private static final String PLUGIN_SYSTEM_LIB = "/system/lib/plugins/";
>
> private static final String PLUGIN_TYPE = "type";
> private static final String TYPE_NATIVE = "native";
> + static public final ArrayList<PackageInfo> mPackageInfoCache = new ArrayList<>();
If you're breaking blame like this, also fix the order -- public static final.
@@ +2126,5 @@
> public static android.hardware.Camera sCamera;
>
> static native void cameraCallbackBridge(byte[] data);
>
> + static final int kPreferedFps = 25;
Fix to kPreferredFPS while you're here.
@@ +2196,5 @@
> } else if (cameraView instanceof TextureView) {
> sCamera.setPreviewTexture(((TextureView)cameraView).getSurfaceTexture());
> }
> }
> + } catch(IOException | RuntimeException e) {
Space before (.
::: mobile/android/base/sync/repositories/android/PasswordsRepositorySession.java
@@ +277,3 @@
> }
>
> + long lastLocalRetrieval = 0; // lastSyncTimestamp?
Fix indenting, remove duplicate space before =.
::: mobile/android/base/widget/ActivityChooserModel.java
@@ +1187,5 @@
>
> if (DEBUG) {
> Log.i(LOG_TAG, "Wrote " + recordCount + " historical records.");
> }
> + } catch (IllegalArgumentException | IOException | IllegalStateException iae) {
Rename the var, too.
Attachment #8521884 -
Flags: review?(rnewman) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2)
> ::: mobile/android/base/GeckoAppShell.java
> @@ +1850,5 @@
> > private static final String PLUGIN_SYSTEM_LIB = "/system/lib/plugins/";
> >
> > private static final String PLUGIN_TYPE = "type";
> > private static final String TYPE_NATIVE = "native";
> > + static public final ArrayList<PackageInfo> mPackageInfoCache = new ArrayList<>();
>
> If you're breaking blame like this, also fix the order -- public static
> final.
Hnh, some finalisations got applied as well. Oh well, might as well keep them...
See also: Bug 1081594
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Comment 5•11 years ago
|
||
Backed out in https://hg.mozilla.org/integration/fx-team/rev/e4712f6c8a33 for build bustage:
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=1179985&repo=fx-team
Flags: needinfo?(chriskitching)
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
(Chris introduced some errors between review and landing. This commit built on my machine.)
Status: NEW → ASSIGNED
Flags: needinfo?(chriskitching)
| Assignee | ||
Comment 9•11 years ago
|
||
:(
Thanks for the save, rnewman.
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Comment 11•11 years ago
|
||
Chris: no more pull requests without you having run `mvn clean test`. You broke the build with source that didn't even compile.
Comment 12•11 years ago
|
||
| Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #11)
> Chris: no more pull requests without you having run `mvn clean test`. You
> broke the build with source that didn't even compile.
ACK.
Comment 14•11 years ago
|
||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•