Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-10-15 08:55:43 +0000
committerMarkus Tiede2014-10-15 08:55:43 +0000
commite2e156a937e63de80109fe434c43dbc6ba5dccd6 (patch)
tree19c773d6ee49d9d56d26fd370c4f62d661b28ef6 /org.eclipse.jubula.rc.swt
parent09c20f7395fa6405a2e8408cb5dd2c51d5c63370 (diff)
downloadorg.eclipse.jubula.core-e2e156a937e63de80109fe434c43dbc6ba5dccd6.tar.gz
org.eclipse.jubula.core-e2e156a937e63de80109fe434c43dbc6ba5dccd6.tar.xz
org.eclipse.jubula.core-e2e156a937e63de80109fe434c43dbc6ba5dccd6.zip
Non-sprint task - minor enhancement: generics added.
Diffstat (limited to 'org.eclipse.jubula.rc.swt')
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
index 75cbc4fd7..b858876a6 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
@@ -29,7 +29,6 @@ import org.eclipse.swt.SWT;
* @created 12.07.2007
*/
public class KeyboardHelper {
-
/** the logger */
private static AutServerLogger log = new AutServerLogger(
KeyboardHelper.class);
@@ -59,7 +58,8 @@ public class KeyboardHelper {
* Key = character
* Value = KeyStroke
*/
- private Map m_mapping = new HashMap();
+ private Map<Character, KeyStroke> m_mapping =
+ new HashMap<Character, KeyStroke>();
/**
* Constructor
@@ -133,7 +133,7 @@ public class KeyboardHelper {
if (isSingleKey(character)) {
return new KeyStroke(character);
}
- keyStroke = (KeyStroke)m_mapping.get(new Character(character));
+ keyStroke = m_mapping.get(new Character(character));
// if no KeyStroke was found, return a KeyStroke with the given
// character and log in debug.
@@ -171,7 +171,7 @@ public class KeyboardHelper {
private char m_char = '0';
/** The List of modifiers */
- private List m_modifiers = new ArrayList(3);
+ private List<Integer> m_modifiers = new ArrayList<Integer>(3);
/**
* Constructor.
@@ -205,8 +205,5 @@ public class KeyboardHelper {
public void addModifier(int modifier) {
m_modifiers.add(new Integer(modifier));
}
-
-
}
-
} \ No newline at end of file

Back to the top