View Javadoc

1   /*
2    *  Copyright 2001-2005 Stephen Colebourne
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
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.println("-----------------------------------------------");
32          System.out.println("-----------AbstractInstant---------------------");
33          Class cls = AbstractInstant.class;
34          System.out.println("-----------ReadableDateTime--------------------");
35          cls = ReadableDateTime.class;
36          System.out.println("-----------AbstractDateTime--------------------");
37          cls = AbstractDateTime.class;
38          System.out.println("-----------DateTime----------------------------");
39          cls = DateTime.class;
40          System.out.println("-----------DateTimeZone------------------------");
41          cls = DateTimeZone.class;
42          System.out.println("-----------new DateTime()----------------------");
43          DateTime dt = new DateTime();
44          System.out.println("-----------new DateTime(ReadableInstant)-------");
45          dt = new DateTime(dt);
46          System.out.println("-----------new DateTime(Long)------------------");
47          dt = new DateTime(new Long(0));
48          System.out.println("-----------------------------------------------");
49      }
50      
51  }