aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-03-15 00:25:37 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-04-03 15:38:37 +0200
commit82f28cc18b9371c81f3e6fa147080371a00443f5 (patch)
tree9f6e9f65dbe1b930d90d01ba09ae438cac2a0bd2 /pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table
parent0f8777952974daf03099bf48c6db1d91bd431bb2 (diff)
downloadpdf-as-4-82f28cc18b9371c81f3e6fa147080371a00443f5.tar.gz
pdf-as-4-82f28cc18b9371c81f3e6fa147080371a00443f5.tar.bz2
pdf-as-4-82f28cc18b9371c81f3e6fa147080371a00443f5.zip
Don't use raw types! Also check casts where possible
Diffstat (limited to 'pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table')
-rw-r--r--pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java
index 72bdfc4d..c138ac22 100644
--- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java
+++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java
@@ -197,7 +197,7 @@ public class Table implements Serializable
ArrayList<ArrayList<Entry>> rows = new ArrayList<ArrayList<Entry>>();
for (int row_idx = 1; row_idx <= rows_.size(); row_idx++)
{
- ArrayList<Entry> row = (ArrayList<Entry>) rows_.get("" + row_idx);
+ ArrayList<Entry> row = rows_.get(String.valueOf(row_idx));
rows.add(row);
}
return rows;
@@ -237,7 +237,7 @@ public class Table implements Serializable
String row_prefix = "\n ++ ROW " + row_idx + " ++ ";
for (int entry_idx = 0; entry_idx < row.size(); entry_idx++)
{
- the_string += row_prefix + ((Entry) row.get(entry_idx)).toString();
+ the_string += row_prefix + row.get(entry_idx).toString();
}
}
the_string += "\n#### TABLE " + name_ + " END #####";