diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 13:02:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-17 08:26:21 +0200 |
commit | 03c7c26cbe7d75f103515e62dc39103f11d4637f (patch) | |
tree | d2e3e75fd84ce6fcb58c3ccbb59d5a1a62990c47 /odk/examples/DevelopersGuide | |
parent | 12b01b920f42666db84c8be1c9b6fd89a86eea4e (diff) |
java: final fields that can be static
Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
Diffstat (limited to 'odk/examples/DevelopersGuide')
4 files changed, 7 insertions, 7 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/CalcHelper.java b/odk/examples/DevelopersGuide/Charts/CalcHelper.java index ca9ea94438d3..50364bdc0fbd 100644 --- a/odk/examples/DevelopersGuide/Charts/CalcHelper.java +++ b/odk/examples/DevelopersGuide/Charts/CalcHelper.java @@ -339,8 +339,8 @@ public class CalcHelper // __________ private members and methods __________ - private final String msDataSheetName = "Data"; - private final String msChartSheetName = "Chart"; + private static final String msDataSheetName = "Data"; + private static final String msChartSheetName = "Chart"; private XSpreadsheetDocument maSpreadSheetDoc; diff --git a/odk/examples/DevelopersGuide/Charts/ChartHelper.java b/odk/examples/DevelopersGuide/Charts/ChartHelper.java index 19d1ede85c45..043635fe169e 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartHelper.java +++ b/odk/examples/DevelopersGuide/Charts/ChartHelper.java @@ -235,7 +235,7 @@ public class ChartHelper // __________ private members and methods __________ - private final String msChartClassID = "12dcae26-281f-416f-a234-c3086127382e"; + private static final String msChartClassID = "12dcae26-281f-416f-a234-c3086127382e"; private XModel maContainerDocument; } diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java index f814deb16193..e184400d8fb9 100644 --- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java +++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java @@ -165,9 +165,9 @@ public class DialogComponent { "Event Object = " + aEventObject ); } - private final String aHandlerMethod1 = "doit1"; - private final String aHandlerMethod2 = "doit2"; - private final String aHandlerMethod3 = "doit3"; + private static final String aHandlerMethod1 = "doit1"; + private static final String aHandlerMethod2 = "doit2"; + private static final String aHandlerMethod3 = "doit3"; //XDialogEventHandler public boolean callHandlerMethod( /*IN*/XDialog xDialog, /*IN*/Object EventObject, /*IN*/String MethodName ) { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java index 8ce14f408a92..f919ff308996 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java @@ -81,5 +81,5 @@ public class TextTransferable implements XTransferable // members private final String text; - private final String UNICODE_CONTENT_TYPE = "text/plain;charset=utf-16"; + private static final String UNICODE_CONTENT_TYPE = "text/plain;charset=utf-16"; } |