Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Mozzhuhin2017-08-08 18:57:31 +0000
committerAndrey Mozzhuhin2017-08-08 18:57:31 +0000
commit48fba1b7975d96270c59d30366c8f0e6f7a14d83 (patch)
treea12bad47ad3d76cee29e72e8cf75c4382c79cbf6 /bundles/org.eclipse.swt/Eclipse SWT
parentb69831d4025b9c00cf4f5f43b3a78aafa674e76d (diff)
downloadeclipse.platform.swt-48fba1b7975d96270c59d30366c8f0e6f7a14d83.tar.gz
eclipse.platform.swt-48fba1b7975d96270c59d30366c8f0e6f7a14d83.tar.xz
eclipse.platform.swt-48fba1b7975d96270c59d30366c8f0e6f7a14d83.zip
Bug 61190 - Restrict visibility of the Display keys group methods
The findLatinKeyGroup() method must have the private visibility as an internal function of the Display class. The getLatinKeyGroup() method must have the package-private visibility as an internal function of the SWT. Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index f307ec885a..ab74e30c8e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -1110,7 +1110,7 @@ void createDisplay (DeviceData data) {
*
* @return the most Latin keyboard layout group
*/
-protected int findLatinKeyGroup () {
+private int findLatinKeyGroup () {
int result = 0;
Map<Integer, Integer> groupKeysCount = new HashMap<> ();
long /*int*/ keymap = OS.gdk_keymap_get_default ();
@@ -1154,10 +1154,8 @@ protected int findLatinKeyGroup () {
/**
* Return the most Latin keyboard layout group.
- *
- * @noreference This method is not intended to be referenced by clients.
*/
-public int getLatinKeyGroup () {
+int getLatinKeyGroup () {
return latinKeyGroup;
}

Back to the top