diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:39:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:23 +0200 |
commit | 70f56bc22fe952c75ec714e05e1bb5296491a36a (patch) | |
tree | af4b3cf94e84cc2f5bf57c002f264eb44c3558af /odk/examples/DevelopersGuide | |
parent | 2b3a801014b4891cd24ee4b61206652ff1cc6e73 (diff) |
java: reduce scope, make member classes private
found by UCDetector
Change-Id: Ief32d078090102b14b60b35fc36542f8d4fb252b
Diffstat (limited to 'odk/examples/DevelopersGuide')
7 files changed, 7 insertions, 7 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, |