mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Code cleanup: Fix some warnings
This commit is contained in:
parent
9c772add93
commit
9c694a0a75
7 changed files with 10 additions and 21 deletions
|
@ -29,11 +29,6 @@ public class ProxyException extends IOException {
|
|||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ProxyException(ProxyInfo.ProxyType type, String ex, Throwable cause)
|
||||
{
|
||||
super("Proxy Exception " + type.toString() + " : "+ex+", "+cause);
|
||||
}
|
||||
|
||||
public ProxyException(ProxyInfo.ProxyType type, String ex)
|
||||
{
|
||||
super("Proxy Exception " + type.toString() + " : "+ex);
|
||||
|
|
|
@ -305,17 +305,12 @@ public class Socks5ProxySocketConnection implements ProxySocketConnection {
|
|||
catch(Exception eee)
|
||||
{
|
||||
}
|
||||
String message="ProxySOCKS5: "+e.toString();
|
||||
if(e instanceof Throwable)
|
||||
{
|
||||
throw new ProxyException(ProxyInfo.ProxyType.SOCKS5,message,
|
||||
(Throwable)e);
|
||||
}
|
||||
throw new IOException(message);
|
||||
// TODO convert to IOException(e) when minimum Android API level is 9 or higher
|
||||
throw new IOException(e.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private void fill(InputStream in, byte[] buf, int len)
|
||||
private static void fill(InputStream in, byte[] buf, int len)
|
||||
throws IOException
|
||||
{
|
||||
int s=0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue