mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Fix minor codestyle issues
This commit is contained in:
parent
200f90ffdc
commit
cb18056613
422 changed files with 1404 additions and 1444 deletions
|
@ -214,7 +214,7 @@ public class XmppHostnameVerifier implements HostnameVerifier {
|
|||
}
|
||||
|
||||
boolean isBeginning = true;
|
||||
String beforeWildcard = "";
|
||||
String beforeWildcard;
|
||||
String afterWildcard = template;
|
||||
while (wildcardIndex != -1) {
|
||||
beforeWildcard = afterWildcard.substring(0, wildcardIndex);
|
||||
|
|
|
@ -298,7 +298,7 @@ public final class Base64
|
|||
* in which case one of them will be picked, though there is
|
||||
* no guarantee as to which one will be picked.
|
||||
*/
|
||||
private final static byte[] getAlphabet( int options )
|
||||
private static byte[] getAlphabet( int options )
|
||||
{
|
||||
if( (options & URL_SAFE) == URL_SAFE ) return _URL_SAFE_ALPHABET;
|
||||
else if( (options & ORDERED) == ORDERED ) return _ORDERED_ALPHABET;
|
||||
|
@ -314,7 +314,7 @@ public final class Base64
|
|||
* in which case one of them will be picked, though there is
|
||||
* no guarantee as to which one will be picked.
|
||||
*/
|
||||
private final static byte[] getDecodabet( int options )
|
||||
private static byte[] getDecodabet( int options )
|
||||
{
|
||||
if( (options & URL_SAFE) == URL_SAFE ) return _URL_SAFE_DECODABET;
|
||||
else if( (options & ORDERED) == ORDERED ) return _ORDERED_DECODABET;
|
||||
|
@ -359,7 +359,7 @@ public final class Base64
|
|||
* anywhere along their length by specifying
|
||||
* <var>srcOffset</var> and <var>destOffset</var>.
|
||||
* This method does not check to make sure your arrays
|
||||
* are large enough to accomodate <var>srcOffset</var> + 3 for
|
||||
* are large enough to accommodate <var>srcOffset</var> + 3 for
|
||||
* the <var>source</var> array or <var>destOffset</var> + 4 for
|
||||
* the <var>destination</var> array.
|
||||
* The actual number of significant bytes in your array is
|
||||
|
@ -710,7 +710,7 @@ public final class Base64
|
|||
* anywhere along their length by specifying
|
||||
* <var>srcOffset</var> and <var>destOffset</var>.
|
||||
* This method does not check to make sure your arrays
|
||||
* are large enough to accomodate <var>srcOffset</var> + 4 for
|
||||
* are large enough to accommodate <var>srcOffset</var> + 4 for
|
||||
* the <var>source</var> array or <var>destOffset</var> + 3 for
|
||||
* the <var>destination</var> array.
|
||||
* This method returns the actual number of bytes that
|
||||
|
|
|
@ -26,9 +26,9 @@ import org.jivesoftware.smack.util.StringUtils;
|
|||
*/
|
||||
public final class Java7Base64Encoder implements org.jivesoftware.smack.util.stringencoder.Base64.Encoder {
|
||||
|
||||
private static Java7Base64Encoder instance = new Java7Base64Encoder();
|
||||
private static final Java7Base64Encoder instance = new Java7Base64Encoder();
|
||||
|
||||
private static int BASE64_ENCODER_FLAGS = Base64.DONT_BREAK_LINES;
|
||||
private static final int BASE64_ENCODER_FLAGS = Base64.DONT_BREAK_LINES;
|
||||
|
||||
private Java7Base64Encoder() {
|
||||
// Use getInstance()
|
||||
|
|
|
@ -35,9 +35,9 @@ import org.jivesoftware.smack.util.stringencoder.StringEncoder;
|
|||
*/
|
||||
public final class Java7Base64UrlSafeEncoder implements StringEncoder {
|
||||
|
||||
private static Java7Base64UrlSafeEncoder instance = new Java7Base64UrlSafeEncoder();
|
||||
private static final Java7Base64UrlSafeEncoder instance = new Java7Base64UrlSafeEncoder();
|
||||
|
||||
private static int BASE64_ENCODER_FLAGS = Base64.URL_SAFE | Base64.DONT_BREAK_LINES;
|
||||
private static final int BASE64_ENCODER_FLAGS = Base64.URL_SAFE | Base64.DONT_BREAK_LINES;
|
||||
|
||||
private Java7Base64UrlSafeEncoder() {
|
||||
// Use getInstance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue