diff options
author | Jiri Vanek <[email protected]> | 2013-12-13 09:54:16 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-12-13 09:54:16 +0100 |
commit | 6256aac59275df0edd0feb4950272aa33573be9f (patch) | |
tree | adba1e61360cf9e18597a8736b8c50b5022605a0 /tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java | |
parent | 26e9ef073e4ba4e625c8596113e9138ec85162e4 (diff) |
unittests warning cleanup: fixed typechecks, rawtypes, redundant casts...
ScreenFinder fixed to work partially also in headless mode.
After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :)
Diffstat (limited to 'tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java')
-rw-r--r-- | tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java b/tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java index 91e1ad5..4bf3c0b 100644 --- a/tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java +++ b/tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java @@ -42,7 +42,6 @@ import java.awt.Point; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; -import java.awt.event.InputEvent; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; @@ -239,18 +238,18 @@ public abstract class AWTHelper extends RulesFolowingClosingListener implements * * @return */ - public Rule getInitStrAsRule(){ + public Rule<String, String> getInitStrAsRule(){ if( initStr != null ){ return new ContainsRule(this.initStr); }else{ - return new Rule(){ + return new Rule<String, String>(){ @Override - public void setRule(Object rule) { + public void setRule(String rule) { } @Override - public boolean evaluate(Object upon) { + public boolean evaluate(String upon) { return true; } |