Fix a few error prone lines on VideoCapturerAndroid.

R=pbos@webrtc.org, perkj@webrtc.org

Review URL: https://codereview.webrtc.org/2076513002 .

Cr-Original-Commit-Position: refs/heads/master@{#13164}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 5a9e7e0ba0a0b68b51885f9e441f308399d15c6a
diff --git a/api/java/android/org/webrtc/VideoCapturerAndroid.java b/api/java/android/org/webrtc/VideoCapturerAndroid.java
index f40f7e6..0690a4c 100644
--- a/api/java/android/org/webrtc/VideoCapturerAndroid.java
+++ b/api/java/android/org/webrtc/VideoCapturerAndroid.java
@@ -178,6 +178,7 @@
   // It does not matter if width and height are flipped. I.E, |width| = 640, |height| = 480 produce
   // the same result as |width| = 480, |height| = 640.
   // TODO(magjed/perkj): Document what this function does. Change name?
+  @Override
   public void onOutputFormatRequest(final int width, final int height, final int framerate) {
     maybePostOnCameraThread(new Runnable() {
       @Override public void run() {
@@ -188,6 +189,7 @@
 
   // Reconfigure the camera to capture in a new format. This should only be called while the camera
   // is running.
+  @Override
   public void changeCaptureFormat(final int width, final int height, final int framerate) {
     maybePostOnCameraThread(new Runnable() {
       @Override public void run() {
@@ -219,7 +221,7 @@
     if (android.hardware.Camera.getNumberOfCameras() == 0) {
       throw new RuntimeException("No cameras available");
     }
-    if (cameraName == null || cameraName == "") {
+    if (cameraName == null || cameraName.equals("")) {
       this.id = 0;
     } else {
       this.id = CameraEnumerationAndroid.getCameraIndex(cameraName);