Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
618ff639
Commit
618ff639
authored
Aug 12, 2024
by
Riegel
Browse files
Converted for each loop to explicit implementation. Ref
#69
parent
5ebd7188
Changes
2
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/parameter/ArgumentParser.java
View file @
618ff639
...
...
@@ -52,9 +52,7 @@ public class ArgumentParser {
HashMap
<
String
,
List
<
String
>>
params
=
new
HashMap
<>();
List
<
String
>
options
=
null
;
for
(
int
i
=
0
;
i
<
args
.
length
;
i
++)
{
final
String
a
=
args
[
i
];
for
(
final
String
a
:
args
)
{
if
(
a
.
charAt
(
0
)
==
'-'
)
{
if
(
a
.
length
()
<
2
)
{
ErrorHandler
.
printHelpAndTerminate
(
"Error while parsing argument "
+
a
);
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/Table.java
View file @
618ff639
...
...
@@ -30,13 +30,13 @@ public class Table {
private
static
final
String
TABLE_HEADER_COLOR
=
"#58ACFA"
;
private
Element
tableBlock
;
private
final
Element
tableBlock
;
private
Element
tableHeader
;
private
Element
tableBody
;
private
Element
tableElement
;
private
final
Element
tableHeader
;
private
final
Element
tableBody
;
private
final
Element
tableElement
;
private
int
columns
;
private
final
int
columns
;
public
Table
(
int
columns
)
{
this
.
columns
=
columns
;
...
...
@@ -101,10 +101,10 @@ public class Table {
private
Element
createTableRow
(
String
...
content
)
{
Element
tableRow
=
new
Element
(
"table-row"
,
PdfReport
.
FO_NS
);
for
(
int
i
=
0
;
i
<
content
.
length
;
i
++
)
{
for
(
String
s
:
content
)
{
Element
tableCell
=
new
Element
(
"table-cell"
,
PdfReport
.
FO_NS
);
tableRow
.
addContent
(
tableCell
);
tableCell
.
addContent
(
PdfReport
.
createTextElement
(
content
[
i
]
));
tableCell
.
addContent
(
PdfReport
.
createTextElement
(
s
));
tableCell
.
setAttribute
(
"padding"
,
"3pt 3pt 3pt 3pt"
);
PdfReport
.
applySolidBorder
(
tableCell
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment