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 --- sw/qa/complex/writer/LoadSaveTest.java | 6 +++--- sw/qa/complex/writer/TextPortionEnumerationTest.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sw/qa') diff --git a/sw/qa/complex/writer/LoadSaveTest.java b/sw/qa/complex/writer/LoadSaveTest.java index f617a93d8b42..e2ae7ab21b48 100644 --- a/sw/qa/complex/writer/LoadSaveTest.java +++ b/sw/qa/complex/writer/LoadSaveTest.java @@ -148,10 +148,10 @@ public class LoadSaveTest } } - class EventListener implements XDocumentEventListener + private class EventListener implements XDocumentEventListener { - boolean m_isLayoutFinished = false; - boolean IsLayoutFinished() { return m_isLayoutFinished; } + private boolean m_isLayoutFinished = false; + private boolean IsLayoutFinished() { return m_isLayoutFinished; } public void documentEventOccured(DocumentEvent Event) { if ("OnLayoutFinished".equals(Event.EventName)) diff --git a/sw/qa/complex/writer/TextPortionEnumerationTest.java b/sw/qa/complex/writer/TextPortionEnumerationTest.java index ed5885b0a51a..db99d695d35f 100644 --- a/sw/qa/complex/writer/TextPortionEnumerationTest.java +++ b/sw/qa/complex/writer/TextPortionEnumerationTest.java @@ -3365,7 +3365,7 @@ public class TextPortionEnumerationTest assertEquals("gotoEndOfWord(): wrong string", "Text", string); } - abstract class AttachHelper + private abstract class AttachHelper { abstract boolean isAttribute(); abstract TreeNode mkTreeNode(); -- cgit v1.2.3