diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:15:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:22 +0200 |
commit | 14d1a11ec4a7ed0deeac522403248536e8d23f57 (patch) | |
tree | 6a976bf53992c68a46472199e5fb494339899ae6 /reportbuilder | |
parent | cd0bbdaf379d646c94e6771f3358d7e3a8f206ad (diff) |
java: reduce scope, make constructors private
found by UCDetector
Change-Id: If05277fd2fe77ceabb4c7c87aeb8569e3406102d
Diffstat (limited to 'reportbuilder')
7 files changed, 8 insertions, 8 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/StorageRepository.java b/reportbuilder/java/org/libreoffice/report/StorageRepository.java index a06bfc717602..d242b42d3899 100644 --- a/reportbuilder/java/org/libreoffice/report/StorageRepository.java +++ b/reportbuilder/java/org/libreoffice/report/StorageRepository.java @@ -63,7 +63,7 @@ public class StorageRepository implements InputRepository, OutputRepository } - public StorageRepository(final XStorage storage, final boolean isOutput, final String rootURL) + private StorageRepository(final XStorage storage, final boolean isOutput, final String rootURL) { this.rootURL = rootURL; if (isOutput) diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/VariablesCollection.java b/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/VariablesCollection.java index 6cd025206eb9..4bb380eea236 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/VariablesCollection.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/VariablesCollection.java @@ -46,7 +46,7 @@ public class VariablesCollection this(namePrefix, null); } - public VariablesCollection(final String namePrefix, final VariablesCollection parent) + private VariablesCollection(final String namePrefix, final VariablesCollection parent) { if (namePrefix == null) { diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeStyles.java b/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeStyles.java index 59cedd951902..4fd9ebdf642b 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeStyles.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/model/OfficeStyles.java @@ -49,7 +49,7 @@ public class OfficeStyles extends Element private final String family; private final String name; - public StyleKey(final String family, final String name) + private StyleKey(final String family, final String name) { if (family == null) { diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java index 25c2bf49317f..c7c5a36e8954 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java @@ -76,7 +76,7 @@ public class ImageProducer private final CSSNumericValue height; private final String embeddableLink; - public OfficeImage(final String embeddableLink, final CSSNumericValue width, final CSSNumericValue height) + private OfficeImage(final String embeddableLink, final CSSNumericValue width, final CSSNumericValue height) { this.embeddableLink = embeddableLink; this.width = width; diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java index 3adb42dd35c2..98dfbf1b1ffd 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java @@ -152,7 +152,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget private final MemoryByteArrayOutputStream xmlBuffer; private final OfficeStylesCollection stylesCollection; - protected BufferState(final XmlWriter xmlWriter, + private BufferState(final XmlWriter xmlWriter, final MemoryByteArrayOutputStream xmlBuffer, final OfficeStylesCollection stylesCollection) { @@ -208,7 +208,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget private int iterationCount; private boolean groupWithRepeatingSection; - protected GroupContext(final GroupContext parent) + private GroupContext(final GroupContext parent) { this.parent = parent; } diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/MasterDetailReadHandler.java b/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/MasterDetailReadHandler.java index ba39e7ba0c01..498c45c0a03d 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/MasterDetailReadHandler.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/MasterDetailReadHandler.java @@ -40,7 +40,7 @@ public class MasterDetailReadHandler extends ElementReadHandler parseMasterDetail = false; } - public MasterDetailReadHandler(final ObjectOleElement element, final boolean parseMasterDetail) + private MasterDetailReadHandler(final ObjectOleElement element, final boolean parseMasterDetail) { this.element = element; this.parseMasterDetail = parseMasterDetail; diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/SubDocumentReadHandler.java b/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/SubDocumentReadHandler.java index 6698fc5962a9..d9a9ec929af9 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/SubDocumentReadHandler.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/parser/rpt/SubDocumentReadHandler.java @@ -42,7 +42,7 @@ public class SubDocumentReadHandler extends NoCDATATextContentReadHandler this.element = element; } - public SubDocumentReadHandler(final Section section, final ObjectOleElement element) + private SubDocumentReadHandler(final Section section, final ObjectOleElement element) { super(section); this.element = element; |