Fix Lint warnings

This commit is contained in:
Cameron Gutman 2017-09-09 14:01:48 -07:00
parent 8584bf1910
commit 6580eb8ea4
8 changed files with 10 additions and 21 deletions

View File

@ -1,11 +1,7 @@
package com.limelight.nvstream;
import java.net.InetAddress;
import javax.crypto.SecretKey;
import com.limelight.nvstream.av.video.VideoDecoderRenderer;
public class ConnectionContext {
public String serverAddress;
public StreamConfiguration streamConfig;

View File

@ -1,8 +1,6 @@
package com.limelight.nvstream;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;

View File

@ -1,6 +1,5 @@
package com.limelight.nvstream.http;
import java.net.InetAddress;
import java.util.UUID;

View File

@ -4,8 +4,8 @@ import java.security.cert.X509Certificate;
import java.security.interfaces.RSAPrivateKey;
public interface LimelightCryptoProvider {
public X509Certificate getClientCertificate();
public RSAPrivateKey getClientPrivateKey();
public byte[] getPemEncodedClientCertificate();
public String encodeBase64String(byte[] data);
X509Certificate getClientCertificate();
RSAPrivateKey getClientPrivateKey();
byte[] getPemEncodedClientCertificate();
String encodeBase64String(byte[] data);
}

View File

@ -6,8 +6,6 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URI;

View File

@ -13,7 +13,6 @@ import org.xmlpull.v1.XmlPullParserException;
import com.limelight.LimeLog;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.io.*;
import java.net.MalformedURLException;
import java.security.*;
@ -276,9 +275,9 @@ public class PairingManager {
return PairState.PAIRED;
}
private static interface PairingHashAlgorithm {
public int getHashLength();
public byte[] hashData(byte[] data);
private interface PairingHashAlgorithm {
int getHashLength();
byte[] hashData(byte[] data);
}
private static class Sha1PairingHash implements PairingHashAlgorithm {

View File

@ -1,7 +1,7 @@
package com.limelight.nvstream.mdns;
public interface MdnsDiscoveryListener {
public void notifyComputerAdded(MdnsComputer computer);
public void notifyComputerRemoved(MdnsComputer computer);
public void notifyDiscoveryFailure(Exception e);
void notifyComputerAdded(MdnsComputer computer);
void notifyComputerRemoved(MdnsComputer computer);
void notifyDiscoveryFailure(Exception e);
}

View File

@ -4,7 +4,6 @@ import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Scanner;
import com.limelight.LimeLog;