diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2009-05-24 03:32:14 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2009-05-24 03:32:14 +0000 |
commit | 8934f9fd42e724ef87e682d66a8f57b812748f48 (patch) | |
tree | 6caa0a95e613b07e7aaa7f5bfd74e36aa7d20647 /src/java/com/healthmarketscience | |
parent | 2cae3d155177e3e2b012ff2cc5053a837ebf93c1 (diff) | |
download | jackcess-8934f9fd42e724ef87e682d66a8f57b812748f48.tar.gz jackcess-8934f9fd42e724ef87e682d66a8f57b812748f48.zip |
minor tweak
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@390 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/DataType.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/DataType.java b/src/java/com/healthmarketscience/jackcess/DataType.java index bf32c09..b2e2178 100644 --- a/src/java/com/healthmarketscience/jackcess/DataType.java +++ b/src/java/com/healthmarketscience/jackcess/DataType.java @@ -353,7 +353,7 @@ public enum DataType { return isWithinRange(precision, getMinPrecision(), getMaxPrecision()); } - private boolean isWithinRange(int value, int minValue, int maxValue) { + private static boolean isWithinRange(int value, int minValue, int maxValue) { return((value >= minValue) && (value <= maxValue)); } @@ -369,7 +369,7 @@ public enum DataType { return toValidRange(precision, getMinPrecision(), getMaxPrecision()); } - private int toValidRange(int value, int minValue, int maxValue) { + private static int toValidRange(int value, int minValue, int maxValue) { return((value > maxValue) ? maxValue : ((value < minValue) ? minValue : value)); } @@ -383,13 +383,13 @@ public enum DataType { } public static DataType fromSQLType(int sqlType) - throws SQLException + throws SQLException { return fromSQLType(sqlType, 0); } public static DataType fromSQLType(int sqlType, int lengthInUnits) - throws SQLException + throws SQLException { DataType rtn = SQL_TYPES.get(sqlType); if(rtn == null) { |