Fix errorprone issues preventing Chromium Roll.

Some ErrorProne warnings have been enabled by [1], that broke the
Chromium Roll into WebRTC, this CL should have taken care of all the
problems.

[1] - https://chromium-review.googlesource.com/c/chromium/src/+/1935889

Bug: None
Change-Id: I2670e948c320984a122fdb774b891c98e05f582e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160862
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29933}
This commit is contained in:
Mirko Bonadei
2019-11-27 12:40:33 +01:00
committed by Commit Bot
parent 6565681128
commit 9f9e20a3dc
52 changed files with 7 additions and 95 deletions

View File

@ -11,7 +11,6 @@
package org.webrtc;
import android.content.Context;
import android.support.annotation.Nullable;
public class Camera1Capturer extends CameraCapturer {
private final boolean captureToTexture;

View File

@ -11,7 +11,6 @@
package org.webrtc;
import android.media.MediaRecorder;
import android.support.annotation.Nullable;
/**
* Base interface for camera1 and camera2 implementations. Extends VideoCapturer with a

View File

@ -13,7 +13,6 @@ package org.webrtc;
import android.support.annotation.Nullable;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
/**
* Helper class that combines HW and SW decoders.

View File

@ -13,7 +13,6 @@ package org.webrtc;
import android.support.annotation.Nullable;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;
/** Helper class that combines HW and SW encoders. */
public class DefaultVideoEncoderFactory implements VideoEncoderFactory {

View File

@ -21,7 +21,6 @@ import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/** Factory for android hardware video encoders. */
@SuppressWarnings("deprecation") // API 16 requires the use of deprecated methods.

View File

@ -10,7 +10,6 @@
package org.webrtc;
import android.graphics.SurfaceTexture;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecInfo.CodecCapabilities;

View File

@ -13,7 +13,6 @@ package org.webrtc;
import android.support.annotation.Nullable;
import java.lang.Double;
import java.lang.String;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.webrtc.MediaStreamTrack;

View File

@ -11,7 +11,6 @@
package org.webrtc;
import android.content.Context;
import java.util.List;
// Base interface for all VideoCapturers to implement.
public interface VideoCapturer {

View File

@ -11,8 +11,6 @@
package org.webrtc;
import android.support.annotation.Nullable;
import java.util.Collections;
import java.util.List;
import org.webrtc.EncodedImage;
/**

View File

@ -16,10 +16,7 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.LinkedBlockingQueue;
/**
* Can be used to save the video frames to file.

View File

@ -13,7 +13,6 @@ package org.webrtc;
import android.graphics.Matrix;
import android.opengl.GLES11Ext;
import android.opengl.GLES20;
import android.support.annotation.Nullable;
import java.nio.ByteBuffer;
/**

View File

@ -10,9 +10,7 @@
package org.webrtc;
import java.util.ArrayList;
import java.util.IdentityHashMap;
import java.util.List;
/** Java version of VideoTrackInterface. */
public class VideoTrack extends MediaStreamTrack {