equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.mj.impl.rt.test; |
|
19 |
|
20 import com.nokia.mj.impl.rt.support.*; |
|
21 |
|
22 public final class Test6 |
|
23 { |
|
24 private Finalizer mFinalizer = new Finalizer() |
|
25 { |
|
26 public void finalizeImpl() |
|
27 { |
|
28 doFinalize(); |
|
29 } |
|
30 }; |
|
31 |
|
32 public Test6() |
|
33 { |
|
34 FinalizerStatistics.debugFinalizeCreated(getClass().getName()); |
|
35 } |
|
36 |
|
37 public void finalize() |
|
38 { |
|
39 doFinalize(); |
|
40 } |
|
41 void doFinalize() |
|
42 { |
|
43 if (mFinalizer != null) |
|
44 { |
|
45 mFinalizer = null; |
|
46 FinalizerStatistics.debugFinalize(getClass().getName()); |
|
47 } |
|
48 } |
|
49 } |
|
50 |
|