From 050db7f0f79f0fa33220042814fcb61b538ba8dd Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Tue, 22 Jul 2008 01:34:14 +0000 Subject: [PATCH] minor cleanups git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@363 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/scsu/Debug.java | 4 ++-- .../jackcess/scsu/EndOfInputException.java | 2 +- src/java/com/healthmarketscience/jackcess/scsu/Expand.java | 4 ++-- .../jackcess/scsu/IllegalInputException.java | 2 +- 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"); -- 2.39.5