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 /odk | |
parent | cd0bbdaf379d646c94e6771f3358d7e3a8f206ad (diff) |
java: reduce scope, make constructors private
found by UCDetector
Change-Id: If05277fd2fe77ceabb4c7c87aeb8569e3406102d
Diffstat (limited to 'odk')
3 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java index 8972dd0ab99a..ff88ebe3ce08 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java @@ -188,7 +188,7 @@ public class CustomizeView extends JPanel * ctor * It initialize an instance of this clas only. */ - ClickListener( String sURL , + private ClickListener( String sURL , String sProp , com.sun.star.frame.XFrame xFrame ) { diff --git a/odk/examples/java/Inspector/InspectorAddon.java b/odk/examples/java/Inspector/InspectorAddon.java index c455ec265e49..3b28adcde282 100644 --- a/odk/examples/java/Inspector/InspectorAddon.java +++ b/odk/examples/java/Inspector/InspectorAddon.java @@ -100,7 +100,7 @@ public class InspectorAddon { private XFrame m_xFrame = null; private XModel xModel = null; - public Dispatcher(XFrame _xFrame){ + private Dispatcher(XFrame _xFrame){ m_xFrame = _xFrame; if (m_xFrame != null){ XController xController = m_xFrame.getController(); diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java b/odk/examples/java/Inspector/SourceCodeGenerator.java index 30e494e04af8..3b48b0fe93eb 100644 --- a/odk/examples/java/Inspector/SourceCodeGenerator.java +++ b/odk/examples/java/Inspector/SourceCodeGenerator.java @@ -554,7 +554,7 @@ class UnoObjectDefinition{ Object[] m_oParameterObjects = null; - public UnoObjectDefinition(Any _oUnoObject){ + private UnoObjectDefinition(Any _oUnoObject){ m_sTypeName = _oUnoObject.getType().getTypeName(); m_aTypeClass = _oUnoObject.getType().getTypeClass(); m_oUnoObject = _oUnoObject; @@ -562,7 +562,7 @@ class UnoObjectDefinition{ } - public UnoObjectDefinition(Object _oUnoObject, String _sTypeName, TypeClass _aTypeClass){ + private UnoObjectDefinition(Object _oUnoObject, String _sTypeName, TypeClass _aTypeClass){ m_oUnoObject = _oUnoObject; m_sTypeName = _sTypeName; m_aTypeClass = _aTypeClass; @@ -570,7 +570,7 @@ class UnoObjectDefinition{ } - public UnoObjectDefinition(Object _oUnoObject, String _sTypeName){ + private UnoObjectDefinition(Object _oUnoObject, String _sTypeName){ m_oUnoObject = _oUnoObject; m_sTypeName = _sTypeName; m_aTypeClass = AnyConverter.getType(_oUnoObject).getTypeClass(); |