Commit b0c8748f authored by Makoto Kato's avatar Makoto Kato
Browse files

Bug 1510667 - Performance Warning: Should use valueOf instead of new. r=geckoview-reviewers,calu

parent bda2b345
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -795,7 +795,7 @@ public class GeckoAppShell {
  @WrapForJNI(calledFrom = "gecko")
  private static synchronized float getDensity() {
    if (sDensity == null) {
      sDensity = new Float(getApplicationContext().getResources().getDisplayMetrics().density);
      sDensity = Float.valueOf(getApplicationContext().getResources().getDisplayMetrics().density);
    }

    return sDensity;