boot/src/test/java/org/netbeans/html/boot/impl/KeepAliveTest.java
changeset 1041 36165f49f598
parent 906 e1291f7b7626
     1.1 --- a/boot/src/test/java/org/netbeans/html/boot/impl/KeepAliveTest.java	Tue Dec 16 21:49:45 2014 +0100
     1.2 +++ b/boot/src/test/java/org/netbeans/html/boot/impl/KeepAliveTest.java	Fri Jan 15 11:40:28 2016 +0100
     1.3 @@ -48,8 +48,6 @@
     1.4  import java.util.Collection;
     1.5  import org.netbeans.html.boot.spi.Fn;
     1.6  import static org.testng.Assert.assertEquals;
     1.7 -import static org.testng.Assert.assertFalse;
     1.8 -import static org.testng.Assert.assertTrue;
     1.9  import org.testng.annotations.BeforeMethod;
    1.10  import org.testng.annotations.Test;
    1.11  
    1.12 @@ -57,7 +55,7 @@
    1.13      private Class<?> jsMethods;
    1.14      @Test public void keepAliveIsSetToFalse() throws Exception {
    1.15          Closeable c = Fn.activate(this);
    1.16 -        Number ret = (Number)jsMethods.getMethod("checkAllowGC", Object.class).invoke(null, this);
    1.17 +        Number ret = (Number)jsMethods.getMethod("checkAllowGC", java.lang.Object.class).invoke(null, this);
    1.18          c.close();
    1.19          assertEquals(ret.intValue(), 0, "keepAlive is set to false");
    1.20      }    
    1.21 @@ -79,7 +77,7 @@
    1.22      public Fn defineFn(String code, String[] names, final boolean[] keepAlive) {
    1.23          return new Fn(this) {
    1.24              @Override
    1.25 -            public Object invoke(Object thiz, Object... args) throws Exception {
    1.26 +            public java.lang.Object invoke(java.lang.Object thiz, java.lang.Object... args) throws Exception {
    1.27                  boolean res = true;
    1.28                  if (keepAlive != null) {
    1.29                      for (int i = 0; i < keepAlive.length; i++) {