Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
b0aa279f
Commit
b0aa279f
authored
17 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
change: comply to coding style
SVN: 4723
parent
5f90e9e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java
+8
-8
8 additions, 8 deletions
.../java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java
with
8 additions
and
8 deletions
dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java
+
8
−
8
View file @
b0aa279f
...
@@ -147,18 +147,18 @@ public class DBScriptFormatter
...
@@ -147,18 +147,18 @@ public class DBScriptFormatter
private
static
void
printInitialComment
(
PrintWriter
out
,
String
sqlScript
)
private
static
void
printInitialComment
(
PrintWriter
out
,
String
sqlScript
)
{
{
for
(
String
scriptLine
:
StringUtils
.
split
(
sqlScript
,
'\n'
))
for
(
final
String
scriptLine
:
StringUtils
.
split
(
sqlScript
,
'\n'
))
{
{
s
criptLine
=
scriptLine
.
trim
();
final
String
trimmedS
criptLine
=
scriptLine
.
trim
();
if
(
s
criptLine
.
length
()
>
0
&&
s
criptLine
.
startsWith
(
COMMENT
)
==
false
)
if
(
trimmedS
criptLine
.
length
()
>
0
&&
trimmedS
criptLine
.
startsWith
(
COMMENT
)
==
false
)
{
{
break
;
break
;
}
}
if
(
s
criptLine
.
substring
(
COMMENT
.
length
()).
trim
().
toUpperCase
().
startsWith
(
"CREATING"
))
if
(
trimmedS
criptLine
.
substring
(
COMMENT
.
length
()).
trim
().
toUpperCase
().
startsWith
(
"CREATING"
))
{
{
continue
;
continue
;
}
}
out
.
println
(
s
criptLine
);
out
.
println
(
trimmedS
criptLine
);
}
}
}
}
...
@@ -189,13 +189,13 @@ public class DBScriptFormatter
...
@@ -189,13 +189,13 @@ public class DBScriptFormatter
private
static
Map
<
StatementClass
,
List
<
String
>>
createStatementMap
(
List
<
String
>
sqlStatements
)
private
static
Map
<
StatementClass
,
List
<
String
>>
createStatementMap
(
List
<
String
>
sqlStatements
)
{
{
final
Map
<
StatementClass
,
List
<
String
>>
map
=
new
HashMap
<
StatementClass
,
List
<
String
>>();
final
Map
<
StatementClass
,
List
<
String
>>
map
=
new
HashMap
<
StatementClass
,
List
<
String
>>();
for
(
String
sqlStatement
:
sqlStatements
)
for
(
final
String
sqlStatement
:
sqlStatements
)
{
{
s
qlStatement
=
sqlStatement
.
toUpperCase
();
final
String
upperCaseS
qlStatement
=
sqlStatement
.
toUpperCase
();
for
(
StatementClass
statementClass
:
StatementClass
.
values
())
for
(
StatementClass
statementClass
:
StatementClass
.
values
())
{
{
if
(
addIfAppropriate
(
s
qlStatement
,
statementClass
,
map
))
if
(
addIfAppropriate
(
upperCaseS
qlStatement
,
statementClass
,
map
))
{
{
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment