aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.report/src
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2012-04-14 10:54:23 +0000
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2012-04-14 10:54:23 +0000
commit780c7e330e1143ed99590041d2b5e5441c39c664 (patch)
tree7bfacb1b5264be6a20df19ec1a286e7df29b7eff /org.jacoco.report/src
parent5b5a483fe5e102b2591ce9eda737c7941d012023 (diff)
downloadjacoco-780c7e330e1143ed99590041d2b5e5441c39c664.tar.gz
Fix compiler warnings.
Diffstat (limited to 'org.jacoco.report/src')
-rw-r--r--org.jacoco.report/src/org/jacoco/report/internal/html/page/ReportPage.java23
-rw-r--r--org.jacoco.report/src/org/jacoco/report/internal/html/page/SourceFilePage.java4
-rw-r--r--org.jacoco.report/src/org/jacoco/report/internal/html/page/TablePage.java4
-rw-r--r--org.jacoco.report/src/org/jacoco/report/internal/html/table/SortIndex.java2
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