01: /*
02: * Copyright 2001-2005 Stephen Colebourne
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.joda.time;
17:
18: import org.joda.time.base.AbstractDateTime;
19: import org.joda.time.base.AbstractInstant;
20:
21: /**
22: * This class displays what the ClassLoader is up to.
23: * Run using JVM -verbose:class.
24: *
25: * @author Stephen Colebourne
26: */
27: public class ClassLoadTest {
28:
29: // run using JVM -verbose:class
30: public static void main(String[] args) {
31: System.out
32: .println("-----------------------------------------------");
33: System.out
34: .println("-----------AbstractInstant---------------------");
35: Class cls = AbstractInstant.class;
36: System.out
37: .println("-----------ReadableDateTime--------------------");
38: cls = ReadableDateTime.class;
39: System.out
40: .println("-----------AbstractDateTime--------------------");
41: cls = AbstractDateTime.class;
42: System.out
43: .println("-----------DateTime----------------------------");
44: cls = DateTime.class;
45: System.out
46: .println("-----------DateTimeZone------------------------");
47: cls = DateTimeZone.class;
48: System.out
49: .println("-----------new DateTime()----------------------");
50: DateTime dt = new DateTime();
51: System.out
52: .println("-----------new DateTime(ReadableInstant)-------");
53: dt = new DateTime(dt);
54: System.out
55: .println("-----------new DateTime(Long)------------------");
56: dt = new DateTime(new Long(0));
57: System.out
58: .println("-----------------------------------------------");
59: }
60:
61: }
|