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 --- unoxml/qa/complex/unoxml/DOMTest.java | 6 +++--- unoxml/qa/complex/unoxml/RDFRepositoryTest.java | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'unoxml') diff --git a/unoxml/qa/complex/unoxml/DOMTest.java b/unoxml/qa/complex/unoxml/DOMTest.java index 47671659326a..e6048efb0093 100644 --- a/unoxml/qa/complex/unoxml/DOMTest.java +++ b/unoxml/qa/complex/unoxml/DOMTest.java @@ -2728,7 +2728,7 @@ public class DOMTest serializable.serialize(xHandler, new StringPair[0]); } - class DummyDocumentHandler implements XDocumentHandler + private class DummyDocumentHandler implements XDocumentHandler { public void startDocument() throws SAXException {} public void endDocument() throws SAXException {} @@ -2741,7 +2741,7 @@ public class DOMTest } // just for importNode... - abstract class MockNode implements XNode + private abstract class MockNode implements XNode { MockDoc m_document; MockNode m_parent; @@ -3010,7 +3010,7 @@ public class DOMTest } class MockAttr extends MockNode implements XAttr { - String m_value; + private String m_value; MockAttr(String name, String value) { m_localname = name; m_value = value; diff --git a/unoxml/qa/complex/unoxml/RDFRepositoryTest.java b/unoxml/qa/complex/unoxml/RDFRepositoryTest.java index e47d5d3b6e80..754c21b6e388 100644 --- a/unoxml/qa/complex/unoxml/RDFRepositoryTest.java +++ b/unoxml/qa/complex/unoxml/RDFRepositoryTest.java @@ -587,7 +587,7 @@ public class RDFRepositoryTest return c.toArray(new XNode[c.size()][]); } - static class BindingComp implements java.util.Comparator + private static class BindingComp implements java.util.Comparator { public int compare(XNode[] left, XNode[] right) { @@ -604,7 +604,7 @@ public class RDFRepositoryTest } } - static class StmtComp implements java.util.Comparator + private static class StmtComp implements java.util.Comparator { public int compare(Statement left, Statement right) { @@ -628,7 +628,7 @@ public class RDFRepositoryTest return 0; } - public int cmp(XNode i_Left, XNode i_Right) + private int cmp(XNode i_Left, XNode i_Right) { if (isBlank(i_Left)) { return isBlank(i_Right) ? 0 : 1; @@ -791,9 +791,9 @@ public class RDFRepositoryTest } } - class TestRange implements XTextRange, XMetadatable, XServiceInfo + private class TestRange implements XTextRange, XMetadatable, XServiceInfo { - String m_Stream; + private String m_Stream; String m_XmlId; String m_Text; TestRange(String i_Str) { m_Text = i_Str; } -- cgit