From 7557f23b31dcfb4d86c122bb34d9675c0db9a694 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 10 Dec 2014 15:36:24 +0200 Subject: java: reduce visibility of fields and methods found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot Reviewed-by: Noel Grandin --- .../report/pentaho/output/OfficeDocumentReportTarget.java | 6 +++--- .../org/libreoffice/report/pentaho/output/text/PageContext.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'reportbuilder') diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java index 903726c1da6c..9caf5ec8bb3a 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java @@ -200,7 +200,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget } } - protected static class GroupContext + public static class GroupContext { private final GroupContext parent; @@ -222,7 +222,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget return iterationCount; } - public void setIterationCount(final int iterationCount) + private void setIterationCount(final int iterationCount) { this.iterationCount = iterationCount; } @@ -232,7 +232,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget return groupWithRepeatingSection; } - public void setGroupWithRepeatingSection(final boolean groupWithRepeatingSection) + private void setGroupWithRepeatingSection(final boolean groupWithRepeatingSection) { this.groupWithRepeatingSection = groupWithRepeatingSection; } diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/PageContext.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/PageContext.java index 1baa24080774..180635bc6dd8 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/PageContext.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/PageContext.java @@ -96,12 +96,12 @@ public class PageContext return footer; } - public CSSNumericValue getHeaderHeight() + private CSSNumericValue getHeaderHeight() { return headerHeight; } - public CSSNumericValue getFooterHeight() + private CSSNumericValue getFooterHeight() { return footerHeight; } -- cgit