mirror of https://github.com/apache/openjpa.git
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
This commit is contained in:
parent
badc4b924f
commit
70f3a94b36
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue