harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r477153 - in /harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang: Class.java Compiler.java Package.java Runtime.java reflect/Array.java reflect/Constructor.java reflect/Field.java reflect/Method.java
Date Mon, 20 Nov 2006 11:48:44 GMT
Author: pyang
Date: Mon Nov 20 03:48:42 2006
New Revision: 477153

URL: http://svn.apache.org/viewvc?view=rev&rev=477153
Log:
fix API signature according to JavaDoc and JAPI reverse report on Harmony and RI

Modified:
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Class.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Compiler.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Package.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Runtime.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Array.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Constructor.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Field.java
    harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Method.java

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Class.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Class.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Class.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Class.java
Mon Nov 20 03:48:42 2006
@@ -78,6 +78,10 @@
 public final class Class<T> implements Serializable, AnnotatedElement, GenericDeclaration,
Type {
 
     private static final long serialVersionUID = 3206093459760846163L;
+    
+    private Class(){
+        //prevent this class to be instantiated, instance should be created by JVM only
+    }
 
     /**
      * This must be provided by the VM vendor, as it is used by other provided

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Compiler.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Compiler.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Compiler.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Compiler.java
Mon Nov 20 03:48:42 2006
@@ -27,6 +27,13 @@
 public final class Compiler {
 
     /**
+     * Prevent this class from being instantiated.
+     */
+    private Compiler(){
+        //do nothing
+    }
+
+    /**
      * Low level interface to the JIT compiler. Can return any object, or null
      * if no JIT compiler is available.
      * 

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Package.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Package.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Package.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Package.java
Mon Nov 20 03:48:42 2006
@@ -38,6 +38,13 @@
 public class Package implements AnnotatedElement {
 
     /**
+     * Prevent this class from being instantiated
+     */
+    private Package(){
+        //do nothing
+    }
+    
+    /**
      * Gets the annotation associated with the given annotation type and this
      * package.
      * 

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Runtime.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Runtime.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Runtime.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Runtime.java
Mon Nov 20 03:48:42 2006
@@ -28,6 +28,14 @@
  * The Runtime interface.
  */
 public class Runtime {
+    
+    /**
+     * Prevent this class from being instantiated
+     */
+    private Runtime(){
+        //do nothing
+    }
+    
     /**
      * Execute progAray[0] in a separate platform process The new process
      * inherits the environment of the caller.

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Array.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Array.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Array.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Array.java
Mon Nov 20 03:48:42 2006
@@ -22,6 +22,14 @@
  * to dynamically create and access arrays.
  */
 public final class Array {
+    
+    /**
+     * Prevent this class from being instantiated
+     */
+    private Array(){
+        //do nothing
+    }
+    
     /**
      * <p>TODO Document this method. Is it actually used?</p>
      * @param componentType

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Constructor.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Constructor.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Constructor.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Constructor.java
Mon Nov 20 03:48:42 2006
@@ -27,6 +27,12 @@
  */
 public final class Constructor<T> extends AccessibleObject implements GenericDeclaration,
         Member {
+    /**
+     * Prevent this class from being instantiated
+     */
+    private Constructor(){
+        //do nothing
+    }
 
     public TypeVariable<Constructor<T>>[] getTypeParameters() {
         return null;

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Field.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Field.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Field.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Field.java
Mon Nov 20 03:48:42 2006
@@ -24,6 +24,13 @@
  * 
  */
 public final class Field extends AccessibleObject implements Member {
+    
+    /**
+     * Prevent this class from being instantiated
+     */
+    private Field(){
+        //do nothing
+    }
 
     /**
      * <p>TODO Document this method. Is it used?</p>

Modified: harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Method.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Method.java?view=diff&rev=477153&r1=477152&r2=477153
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Method.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/reflect/Method.java
Mon Nov 20 03:48:42 2006
@@ -27,6 +27,13 @@
  */
 public final class Method extends AccessibleObject implements GenericDeclaration, Member
{
     
+    /**
+     * Prevent this class from being instantiated
+     */
+    private Method(){
+        //do nothing
+    }
+    
     public TypeVariable<Method>[] getTypeParameters() {
         return null;
     }



Mime
View raw message