diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-07-22 01:34:14 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-07-22 01:34:14 +0000 |
commit | 050db7f0f79f0fa33220042814fcb61b538ba8dd (patch) | |
tree | f3c268f9b39b1beb47956db06c2a1f883f3192b1 /src/java/com/healthmarketscience/jackcess | |
parent | 7afa998954f52053f68d7bee96b674e43153e6af (diff) | |
download | jackcess-050db7f0f79f0fa33220042814fcb61b538ba8dd.tar.gz jackcess-050db7f0f79f0fa33220042814fcb61b538ba8dd.zip |
minor cleanups
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@363 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess')
4 files changed, 6 insertions, 6 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/scsu/Debug.java b/src/java/com/healthmarketscience/jackcess/scsu/Debug.java index 65e2dbc..10485ea 100644 --- a/src/java/com/healthmarketscience/jackcess/scsu/Debug.java +++ b/src/java/com/healthmarketscience/jackcess/scsu/Debug.java @@ -53,7 +53,7 @@ public class Debug public static void out(char [] chars, int iStart) { if (!LOG.isDebugEnabled()) return; - StringBuffer msg = new StringBuffer(); + StringBuilder msg = new StringBuilder(); for (int i = iStart; i < chars.length; i++) { @@ -80,7 +80,7 @@ public class Debug public static void out(byte [] bytes, int iStart) { if (!LOG.isDebugEnabled()) return; - StringBuffer msg = new StringBuffer(); + StringBuilder msg = new StringBuilder(); for (int i = iStart; i < bytes.length; i++) { diff --git a/src/java/com/healthmarketscience/jackcess/scsu/EndOfInputException.java b/src/java/com/healthmarketscience/jackcess/scsu/EndOfInputException.java index 6d2a16e..4ac8973 100644 --- a/src/java/com/healthmarketscience/jackcess/scsu/EndOfInputException.java +++ b/src/java/com/healthmarketscience/jackcess/scsu/EndOfInputException.java @@ -37,7 +37,7 @@ public class EndOfInputException extends java.lang.Exception { - private static final long serialVersionUID = 1; + private static final long serialVersionUID = 1L; public EndOfInputException(){ super("The input string or input byte array ended prematurely"); diff --git a/src/java/com/healthmarketscience/jackcess/scsu/Expand.java b/src/java/com/healthmarketscience/jackcess/scsu/Expand.java index 8f262f5..9605554 100644 --- a/src/java/com/healthmarketscience/jackcess/scsu/Expand.java +++ b/src/java/com/healthmarketscience/jackcess/scsu/Expand.java @@ -156,7 +156,7 @@ public class Expand extends SCSU @param sb string buffer to which to append expanded input @return the index for the lastc byte processed **/ - protected int expandUnicode(byte []in, int iCur, StringBuffer sb) + protected int expandUnicode(byte []in, int iCur, StringBuilder sb) throws IllegalInputException, EndOfInputException { for( ; iCur < in.length-1; iCur+=2 ) // step by 2: @@ -231,7 +231,7 @@ public class Expand extends SCSU output. Using in.length as an intial allocation length should avoid the need to reallocate in mid-stream. The exception to this rule are surrogates. */ - StringBuffer sb = new StringBuffer(in.length); + StringBuilder sb = new StringBuilder(in.length); iOut = 0; // Loop until all input is exhausted or an error occurred diff --git a/src/java/com/healthmarketscience/jackcess/scsu/IllegalInputException.java b/src/java/com/healthmarketscience/jackcess/scsu/IllegalInputException.java index e17ef98..1600d03 100644 --- a/src/java/com/healthmarketscience/jackcess/scsu/IllegalInputException.java +++ b/src/java/com/healthmarketscience/jackcess/scsu/IllegalInputException.java @@ -36,7 +36,7 @@ package com.healthmarketscience.jackcess.scsu; public class IllegalInputException extends java.lang.Exception { - private static final long serialVersionUID = 1; + private static final long serialVersionUID = 1L; public IllegalInputException(){ super("The input character array or input byte array contained illegal sequences of bytes or characters"); |