From 8934f9fd42e724ef87e682d66a8f57b812748f48 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sun, 24 May 2009 03:32:14 +0000 Subject: minor tweak git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@390 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/DataType.java | 8 ++++---- 1 file 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) { -- cgit v1.2.3