diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2012-04-14 10:54:23 +0000 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2012-04-14 10:54:23 +0000 |
commit | 780c7e330e1143ed99590041d2b5e5441c39c664 (patch) | |
tree | 7bfacb1b5264be6a20df19ec1a286e7df29b7eff /org.jacoco.report/src | |
parent | 5b5a483fe5e102b2591ce9eda737c7941d012023 (diff) | |
download | jacoco-780c7e330e1143ed99590041d2b5e5441c39c664.tar.gz |
Fix compiler warnings.
Diffstat (limited to 'org.jacoco.report/src')
4 files changed, 14 insertions, 19 deletions
diff --git a/org.jacoco.report/src/org/jacoco/report/internal/html/page/ReportPage.java b/org.jacoco.report/src/org/jacoco/report/internal/html/page/ReportPage.java index ebbe3c1c..dfb58e21 100644 --- a/org.jacoco.report/src/org/jacoco/report/internal/html/page/ReportPage.java +++ b/org.jacoco.report/src/org/jacoco/report/internal/html/page/ReportPage.java @@ -77,7 +77,15 @@ public abstract class ReportPage implements ILinkable { doc.close();
}
- private void head(final HTMLElement head) throws IOException {
+ /**
+ * Creates the elements within the head element.
+ *
+ * @param head
+ * head tag of the page
+ * @throws IOException
+ * in case of IO problems with the report writer
+ */
+ protected void head(final HTMLElement head) throws IOException {
head.meta("Content-Type", "text/html;charset=UTF-8");
head.link("stylesheet",
context.getResources().getLink(folder, Resources.STYLESHEET),
@@ -86,7 +94,6 @@ public abstract class ReportPage implements ILinkable { context.getResources().getLink(folder, "report.gif"),
"image/gif");
head.title().text(getLinkLabel());
- headExtra(head);
}
private void body(final HTMLElement body) throws IOException {
@@ -101,18 +108,6 @@ public abstract class ReportPage implements ILinkable { }
/**
- * Hook to add extra content into the head tag.
- *
- * @param head
- * enclosing head element
- * @throws IOException
- * in case of IO problems with the report writer
- */
- protected void headExtra(final HTMLElement head) throws IOException {
- // nothing to do
- }
-
- /**
* Returns the onload handler for this page.
*
* @return handler or <code>null</code>
diff --git a/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java b/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java index 0d7b7ff3..b378e472 100644 --- a/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java +++ b/org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java @@ -59,8 +59,8 @@ public class SourceFilePage extends NodePage<ISourceFileCoverage> { }
@Override
- protected void headExtra(final HTMLElement head) throws IOException {
- super.headExtra(head);
+ protected void head(final HTMLElement head) throws IOException {
+ super.head(head);
head.link(
"stylesheet",
context.getResources().getLink(folder,
diff --git a/org.jacoco.report/src/org/jacoco/report/internal/html/page/TablePage.java b/org.jacoco.report/src/org/jacoco/report/internal/html/page/TablePage.java index fc8986ec..956f2ba4 100644 --- a/org.jacoco.report/src/org/jacoco/report/internal/html/page/TablePage.java +++ b/org.jacoco.report/src/org/jacoco/report/internal/html/page/TablePage.java @@ -61,8 +61,8 @@ public abstract class TablePage<NodeType extends ICoverageNode> extends }
@Override
- protected void headExtra(final HTMLElement head) throws IOException {
- super.headExtra(head);
+ protected void head(final HTMLElement head) throws IOException {
+ super.head(head);
head.script("text/javascript",
context.getResources().getLink(folder, Resources.SORT_SCRIPT));
}
diff --git a/org.jacoco.report/src/org/jacoco/report/internal/html/table/SortIndex.java b/org.jacoco.report/src/org/jacoco/report/internal/html/table/SortIndex.java index f0de55cb..69fa03c2 100644 --- a/org.jacoco.report/src/org/jacoco/report/internal/html/table/SortIndex.java +++ b/org.jacoco.report/src/org/jacoco/report/internal/html/table/SortIndex.java @@ -83,7 +83,7 @@ final class SortIndex<T> { /** * Returns the sorted position of the element with the given index in the - * items list provided to the {@link #init(List)} method. + * items list provided to the init() method. * * @param idx * index of a element of the list |