From 70f3a94b36c3fc63924dd0748513023fd8372faa Mon Sep 17 00:00:00 2001 From: "Kevin W. Sutter" Date: Wed, 30 Jan 2008 20:01:09 +0000 Subject: [PATCH] OPENJPA-505. Resolving some formatting issues with the r616658 commit. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616878 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/jdbc/sql/DBDictionary.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java index 1f069a85a..971060a9d 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java @@ -1659,14 +1659,13 @@ public class DBDictionary * size clause will be inserted appropriately. */ protected String insertSize(String typeName, String size) { - if(StringUtils.isEmpty(size)) { - - int idx = typeName.indexOf("{0}"); - if (idx != -1) { - return typeName.substring(0,idx); - } - return typeName; - } + if (StringUtils.isEmpty(size)) { + int idx = typeName.indexOf("{0}"); + if (idx != -1) { + return typeName.substring(0, idx); + } + return typeName; + } int idx = typeName.indexOf("{0}"); if (idx != -1) {