mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Lint fixes: Remove dead code, etc.
- make method static when possible - remove never thrown Exception declarations - other fixes
This commit is contained in:
parent
83b84c5bd3
commit
c6594aec2f
18 changed files with 48 additions and 65 deletions
|
@ -898,7 +898,7 @@ public class Base64
|
|||
if( bytes != null && bytes.length >= 4 )
|
||||
{
|
||||
|
||||
int head = ((int)bytes[0] & 0xff) | ((bytes[1] << 8) & 0xff00);
|
||||
int head = (bytes[0] & 0xff) | ((bytes[1] << 8) & 0xff00);
|
||||
if( java.util.zip.GZIPInputStream.GZIP_MAGIC == head )
|
||||
{
|
||||
java.io.ByteArrayInputStream bais = null;
|
||||
|
@ -969,12 +969,10 @@ public class Base64
|
|||
catch( java.io.IOException e )
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, "Error reading object", e);
|
||||
obj = null;
|
||||
} // end catch
|
||||
catch( java.lang.ClassNotFoundException e )
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, "Class not found for encoded object", e);
|
||||
obj = null;
|
||||
} // end catch
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue