[java-atk-wrapper/wip] Wrapper: Use checked operations
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper/wip] Wrapper: Use checked operations
- Date: Wed, 24 Jun 2015 17:07:24 +0000 (UTC)
commit 510067ef4470d19000ae7c5935b11482dc451569
Author: Magdalen Berns <m berns thismagpie com>
Date: Wed Jun 24 17:31:54 2015 +0100
Wrapper: Use checked operations
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739503
wrapper/org/GNOME/Accessibility/AtkKeyEvent.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkKeyEvent.java
b/wrapper/org/GNOME/Accessibility/AtkKeyEvent.java
index 2db5911..1ebe627 100644
--- a/wrapper/org/GNOME/Accessibility/AtkKeyEvent.java
+++ b/wrapper/org/GNOME/Accessibility/AtkKeyEvent.java
@@ -25,7 +25,7 @@ import java.util.HashMap;
public class AtkKeyEvent {
- private static HashMap nonAlphaNumericMap = null;
+ private static HashMap<String,String>nonAlphaNumericMap = null;
public static final int ATK_KEY_EVENT_PRESSED = 0;
public static final int ATK_KEY_EVENT_RELEASED = 1;
@@ -42,7 +42,7 @@ public class AtkKeyEvent {
static {
// Non-alphanumeric symbols that need to be mapped to X11 keysym names
- nonAlphaNumericMap = new HashMap( 40 );
+ nonAlphaNumericMap = new HashMap<>( 40 );
nonAlphaNumericMap.put("!", "exclam");
nonAlphaNumericMap.put("@", "at");
nonAlphaNumericMap.put("#", "numbersign");
@@ -144,7 +144,7 @@ public class AtkKeyEvent {
class GNOMEKeyMapping {
- private static HashMap keyMap = null;
+ private static HashMap<Integer,Object>keyMap = null;
public static final class GNOMEKeyInfo {
private int gdkKeyCode;
@@ -193,7 +193,7 @@ class GNOMEKeyMapping {
}
private static void initializeMap() {
- keyMap = new HashMap( 146 ); // Currently only 110, so allocate 110 / 0.75
+ keyMap = new HashMap<>( 146 ); // Currently only 110, so allocate 110 / 0.75
keyMap.put( new Integer(KeyEvent.VK_COLON), new GNOMEKeyInfo( 0x20a1, "ColonSign" ) ); //
GDK_ColonSign
keyMap.put( new Integer(KeyEvent.VK_EURO_SIGN), new GNOMEKeyInfo( 0x20ac, "EuroSign" ) ); //
GDK_EuroSign
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]