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 --- bean/qa/complex/bean/OOoBeanTest.java | 4 ++-- bean/qa/complex/bean/WriterFrame.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bean/qa/complex') diff --git a/bean/qa/complex/bean/OOoBeanTest.java b/bean/qa/complex/bean/OOoBeanTest.java index 141f63d0ddc9..22c5fb4d901d 100644 --- a/bean/qa/complex/bean/OOoBeanTest.java +++ b/bean/qa/complex/bean/OOoBeanTest.java @@ -651,9 +651,9 @@ public class OOoBeanTest } } - class BeanPanel extends Panel + private class BeanPanel extends Panel { - public BeanPanel(OOoBean b) + private BeanPanel(OOoBean b) { setLayout(new BorderLayout()); add(b, BorderLayout.CENTER); diff --git a/bean/qa/complex/bean/WriterFrame.java b/bean/qa/complex/bean/WriterFrame.java index 9c0eb7d6c98d..77f1959c98f0 100644 --- a/bean/qa/complex/bean/WriterFrame.java +++ b/bean/qa/complex/bean/WriterFrame.java @@ -146,7 +146,7 @@ class WriterFrame extends java.awt.Frame return rc; } - public Rectangle getUnoFramePosition() throws Exception + private Rectangle getUnoFramePosition() throws Exception { com.sun.star.awt.XWindow win = m_bean.getFrame().getContainerWindow(); com.sun.star.awt.Rectangle rect = win.getPosSize(); -- cgit