upgrade JPL
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1936 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
19
LGPL/JPL/java/jpl/test/Garbo.java
Normal file
19
LGPL/JPL/java/jpl/test/Garbo.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package jpl.test;
|
||||
|
||||
public class Garbo {
|
||||
public static int created = 0;
|
||||
public static int destroyed = 0;
|
||||
//
|
||||
public final int i;
|
||||
public Garbo( ) {
|
||||
this.i = created++;
|
||||
}
|
||||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
destroyed++;
|
||||
// System.out.println("gced["+i+"]");
|
||||
} finally {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user