summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-10 15:36:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-11 06:09:03 +0000
commit7557f23b31dcfb4d86c122bb34d9675c0db9a694 (patch)
tree5feb7be2b0841d8ee60d935cf2e29e9a01a31a27 /unoxml
parent808fd5fbd8868dfd95c8a38676815798fa2b79c4 (diff)
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 <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/qa/complex/unoxml/DOMTest.java6
-rw-r--r--unoxml/qa/complex/unoxml/RDFRepositoryTest.java10
2 files changed, 8 insertions, 8 deletions
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<XNode[]>
+ private static class BindingComp implements java.util.Comparator<XNode[]>
{
public int compare(XNode[] left, XNode[] right)
{
@@ -604,7 +604,7 @@ public class RDFRepositoryTest
}
}
- static class StmtComp implements java.util.Comparator<Statement>
+ private static class StmtComp implements java.util.Comparator<Statement>
{
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; }