From 70f56bc22fe952c75ec714e05e1bb5296491a36a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Aug 2014 11:39:00 +0200 Subject: java: reduce scope, make member classes private found by UCDetector Change-Id: Ief32d078090102b14b60b35fc36542f8d4fb252b --- .../DevelopersGuide/Components/dialogcomponent/DialogComponent.java | 2 +- odk/examples/DevelopersGuide/Config/ConfigExamples.java | 2 +- .../DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java | 2 +- .../OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java | 2 +- .../DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java | 2 +- odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java | 2 +- odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'odk/examples/DevelopersGuide') 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, -- cgit