summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:39:00 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:23 +0200
commit70f56bc22fe952c75ec714e05e1bb5296491a36a (patch)
treeaf4b3cf94e84cc2f5bf57c002f264eb44c3558af /odk
parent2b3a801014b4891cd24ee4b61206652ff1cc6e73 (diff)
java: reduce scope, make member classes private
found by UCDetector Change-Id: Ief32d078090102b14b60b35fc36542f8d4fb252b
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java2
-rw-r--r--odk/examples/DevelopersGuide/Config/ConfigExamples.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java2
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java2
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java2
-rw-r--r--odk/examples/java/Inspector/InspectorAddon.java4
-rw-r--r--odk/examples/java/Inspector/ProtocolHandlerAddon.java2
-rw-r--r--odk/examples/java/Inspector/SourceCodeGenerator.java8
-rw-r--r--odk/examples/java/MinimalComponent/MinimalComponent.java2
-rw-r--r--odk/examples/java/Spreadsheet/CalcAddins.java2
-rw-r--r--odk/examples/java/ToDo/ToDo.java2
13 files changed, 17 insertions, 17 deletions
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index 67c2d26bac9b..c320cc3455b4 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -65,7 +65,7 @@ import com.sun.star.test.XTestDialogHandler;
// ComponentBase, see implementation of TestComponentA.
public class DialogComponent {
- public static class _DialogComponent
+ private static class _DialogComponent
implements XTypeProvider, XServiceInfo, XTestDialogHandler, XDialogEventHandler {
private static final String __serviceName= "com.sun.star.test.TestDialogHandler";
diff --git a/odk/examples/DevelopersGuide/Config/ConfigExamples.java b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
index ba1e7034af24..6c070476e00b 100644
--- a/odk/examples/DevelopersGuide/Config/ConfigExamples.java
+++ b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
@@ -355,7 +355,7 @@ public class ConfigExamples
// READ example
/// class to hold information about grid settings
- public static class GridOptions
+ private static class GridOptions
{
private boolean visible;
private int resolution_x;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index c06dcce3bde3..68524136d84a 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -172,7 +172,7 @@ public class CustomizeView extends JPanel
* But such update doesn't force (hopefully) an action event. Otherwhise
* we can produce a never ending recursion!
*/
- class ClickListener implements ActionListener,
+ private class ClickListener implements ActionListener,
com.sun.star.lang.XEventListener
{
/// URL, to toogle the requested UI item
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
index bfbf3d1a7c39..c09e7ce8057d 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
@@ -67,7 +67,7 @@ import com.sun.star.document.XFilter;
public class AsciiReplaceFilter
{
- public static class _AsciiReplaceFilter extends WeakBase
+ private static class _AsciiReplaceFilter extends WeakBase
implements XInitialization ,
XServiceInfo ,
XNamed ,
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
index 63b13da77fa2..c7099bb19ef4 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
@@ -333,7 +333,7 @@ public class LinguisticExamples
/** simple sample implementation of a clients XLinguServiceEventListener
* interface implementation
*/
- public class Client
+ private class Client
implements XLinguServiceEventListener
{
public void disposing ( EventObject aEventObj )
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
index cd0c7c767960..109335f3cbea 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
@@ -108,7 +108,7 @@ class ExampleAddInThread extends Thread
public class ExampleAddIn
{
- static public class _ExampleAddIn extends com.sun.star.lib.uno.helper.WeakBase
+ static private class _ExampleAddIn extends com.sun.star.lib.uno.helper.WeakBase
implements org.openoffice.sheet.addin.XExampleAddIn,
com.sun.star.sheet.XAddIn,
com.sun.star.lang.XServiceName,
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
index bb4655056cd7..41b0929b5403 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
@@ -752,7 +752,7 @@ public class ExampleDataPilotSource
{
// implementation of com.sun.star.sheet.DataPilotSource
- static public class _ExampleDataPilotSource implements
+ static private class _ExampleDataPilotSource implements
com.sun.star.sheet.XDimensionsSupplier,
com.sun.star.sheet.XDataPilotResults,
com.sun.star.util.XRefreshable,
diff --git a/odk/examples/java/Inspector/InspectorAddon.java b/odk/examples/java/Inspector/InspectorAddon.java
index ace1b69ded53..3846085d2521 100644
--- a/odk/examples/java/Inspector/InspectorAddon.java
+++ b/odk/examples/java/Inspector/InspectorAddon.java
@@ -53,7 +53,7 @@ public class InspectorAddon {
/** This class implements the component. At least the interfaces XServiceInfo,
* XTypeProvider, and XInitialization should be provided by the service.
*/
- public static class InspectorAddonImpl extends WeakBase implements XDispatchProvider, XInitialization, XServiceInfo {
+ private static class InspectorAddonImpl extends WeakBase implements XDispatchProvider, XInitialization, XServiceInfo {
private org.openoffice.XInstanceInspector xInstInspector = null;
// Dispatcher oDispatcher = null;
private XFrame m_xFrame = null;
@@ -96,7 +96,7 @@ public class InspectorAddon {
}
}
- public class Dispatcher implements XDispatch{
+ private class Dispatcher implements XDispatch{
private XFrame m_xFrame = null;
private XModel xModel = null;
diff --git a/odk/examples/java/Inspector/ProtocolHandlerAddon.java b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
index 58dd04ff35bf..37dfc1411c39 100644
--- a/odk/examples/java/Inspector/ProtocolHandlerAddon.java
+++ b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
@@ -57,7 +57,7 @@ public class ProtocolHandlerAddon {
/** This class implements the component. At least the interfaces XServiceInfo,
* XTypeProvider, and XInitialization should be provided by the service.
*/
- public static class ProtocolHandlerAddonImpl extends WeakBase implements
+ private static class ProtocolHandlerAddonImpl extends WeakBase implements
XDispatchProvider,
XDispatch,
XInitialization,
diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java b/odk/examples/java/Inspector/SourceCodeGenerator.java
index ca8bb688486d..2ba84790ac95 100644
--- a/odk/examples/java/Inspector/SourceCodeGenerator.java
+++ b/odk/examples/java/Inspector/SourceCodeGenerator.java
@@ -543,7 +543,7 @@ public class SourceCodeGenerator {
}
-class UnoObjectDefinition{
+private class UnoObjectDefinition{
private Object m_oUnoObject = null;
Type aType = null;
private String sVariableStemName = "";
@@ -838,7 +838,7 @@ class UnoObjectDefinition{
}
- public class JavaCodeGenerator implements XLanguageSourceCodeGenerator{
+ private class JavaCodeGenerator implements XLanguageSourceCodeGenerator{
String sStatementsCode = "";
private boolean bAddAnyConverter = false;
private boolean bIsPropertyUnoObjectDefined = false;
@@ -1185,7 +1185,7 @@ class UnoObjectDefinition{
}
- public class BasicCodeGenerator implements XLanguageSourceCodeGenerator{
+ private class BasicCodeGenerator implements XLanguageSourceCodeGenerator{
String sStatementsCode = "";
public BasicCodeGenerator(){
@@ -1389,7 +1389,7 @@ class UnoObjectDefinition{
}
- public class CPlusPlusCodeGenerator implements XLanguageSourceCodeGenerator{
+ private class CPlusPlusCodeGenerator implements XLanguageSourceCodeGenerator{
String sStatementsCode = "";
private boolean bIncludeStringHeader = false;
private boolean bIncludeAny = false;
diff --git a/odk/examples/java/MinimalComponent/MinimalComponent.java b/odk/examples/java/MinimalComponent/MinimalComponent.java
index 21ff7060b16f..c96eb816999b 100644
--- a/odk/examples/java/MinimalComponent/MinimalComponent.java
+++ b/odk/examples/java/MinimalComponent/MinimalComponent.java
@@ -49,7 +49,7 @@ public class MinimalComponent {
/** This class implements the component. At least the interfaces XServiceInfo,
* XTypeProvider, and XInitialization should be provided by the service.
*/
- public static class _MinimalComponent extends WeakBase
+ private static class _MinimalComponent extends WeakBase
implements XInitialization, XServiceInfo {
/** The service name, that must be used to get an instance of this service.
*/
diff --git a/odk/examples/java/Spreadsheet/CalcAddins.java b/odk/examples/java/Spreadsheet/CalcAddins.java
index 5353bcd11c11..b044eac50e2a 100644
--- a/odk/examples/java/Spreadsheet/CalcAddins.java
+++ b/odk/examples/java/Spreadsheet/CalcAddins.java
@@ -60,7 +60,7 @@ public class CalcAddins {
* of the service description. It implements the needed interfaces.
* @implements XCalcAddins, XAddIn, XServiceName, XServiceInfo, XTypeProvider
*/
- static public class _CalcAddins extends WeakBase implements
+ static private class _CalcAddins extends WeakBase implements
XCalcAddins,
XAddIn,
XServiceName,
diff --git a/odk/examples/java/ToDo/ToDo.java b/odk/examples/java/ToDo/ToDo.java
index d40acabff95e..2da2ded22f84 100644
--- a/odk/examples/java/ToDo/ToDo.java
+++ b/odk/examples/java/ToDo/ToDo.java
@@ -75,7 +75,7 @@ public class ToDo {
* XInterface, XTypeProvider, and XWeak implemented by the helper class
* WeakBase and XServiceInfo should be provided by the service.
*/
- public static class ToDoImpl extends WeakBase implements XServiceInfo, XToDo {
+ private static class ToDoImpl extends WeakBase implements XServiceInfo, XToDo {
/** The service name, that must be used to get an instance of this service.
*/