Merge pull request #223 from Parabot/bugfix/issue-222

[BUGFIX] Solving currentThread null return
This commit is contained in:
Jeroen Ketelaar
2017-09-11 23:17:42 +02:00
committed by GitHub
3 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
language: java language: java
dist: trusty
jdk: jdk:
- oraclejdk7 - openjdk7
- oraclejdk8 - oraclejdk8
before_install: before_install:
@@ -65,4 +67,4 @@ deploy:
repo: Parabot/Parabot repo: Parabot/Parabot
branch: branch:
- master - master
jdk: 'oraclejdk7' jdk: 'openjdk7'
@@ -24,7 +24,7 @@ public class ThreadRedirect {
} }
public static Thread currentThread(){ public static Thread currentThread(){
return null; return new Thread();
} }
public static void join(Thread t) throws InterruptedException{ public static void join(Thread t) throws InterruptedException{
@@ -40,11 +40,11 @@ public class ToolkitRedirect {
} }
public static Image createImage(Toolkit t,byte[] b){ public static Image createImage(Toolkit t,byte[] b){
return null; return t.createImage(b);
} }
public static Image createImage(Toolkit t, String s){ public static Image createImage(Toolkit t, String s){
return null; return t.createImage(s);
} }
public static Image getImage(Toolkit t,URL u){ public static Image getImage(Toolkit t,URL u){