harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r437523 - in /incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server: LogStream.java Operation.java RemoteCall.java RemoteRef.java RemoteStub.java
Date Mon, 28 Aug 2006 04:19:59 GMT
Author: mloenko
Date: Sun Aug 27 21:19:56 2006
New Revision: 437523

URL: http://svn.apache.org/viewvc?rev=437523&view=rev
Log:
applied patches for HARMONY-1283
[classlib][rmi] missing @deprecated tags

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/LogStream.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/Operation.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteCall.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteRef.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteStub.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/LogStream.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/LogStream.java?rev=437523&r1=437522&r2=437523&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/LogStream.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/LogStream.java
Sun Aug 27 21:19:56 2006
@@ -33,22 +33,27 @@
  *
  * @author  Mikhail A. Markov
  * @version $Revision: 1.3.4.2 $
+ * @deprecated No replacement. This class is deprecated since Java v1.2. 
  */
+@Deprecated
 public class LogStream extends PrintStream {
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static final int SILENT = 0;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static final int BRIEF = 10;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static final int VERBOSE = 20;
 
     // The default print stream.
@@ -78,6 +83,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public String toString() {
         return "LogStream[" + name + "]";
     }
@@ -85,6 +91,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public void write(byte[] b, int off, int len) {
         for (int i = 0; i < len; ++i) {
             write(b[off + i]);
@@ -94,6 +101,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public void write(int b) {
         synchronized (this) {
             if (b == '\n') {
@@ -112,6 +120,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public synchronized void setOutputStream(OutputStream out) {
         this.out = out;
     }
@@ -119,6 +128,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public synchronized OutputStream getOutputStream() {
         return out;
     }
@@ -126,6 +136,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static int parseLevel(String levelStr) {
         if (levelStr == null) {
             return -1;
@@ -150,6 +161,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static synchronized void setDefaultStream(PrintStream stream) {
         defaultStream = stream;
     }
@@ -157,6 +169,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static synchronized PrintStream getDefaultStream() {
         return defaultStream;
     }
@@ -164,6 +177,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public static LogStream log(String name) {
         synchronized (logStreams) {
             LogStream stream = (LogStream) logStreams.get(name);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/Operation.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/Operation.java?rev=437523&r1=437522&r2=437523&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/Operation.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/Operation.java
Sun Aug 27 21:19:56 2006
@@ -27,7 +27,10 @@
  *
  * @author  Mikhail A. Markov
  * @version $Revision: 1.4.4.2 $
+ * @deprecated This class was used by the previous versions of the RMI
+ *  framework. It is not required since Java v1.2.
  */
+@Deprecated
 public class Operation {
 
     private String op;
@@ -35,6 +38,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public Operation(String op) {
         this.op = op;
     }
@@ -42,6 +46,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public String toString() {
         return op;
     }
@@ -49,6 +54,7 @@
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public String getOperation() {
         return op;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteCall.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteCall.java?rev=437523&r1=437522&r2=437523&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteCall.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteCall.java
Sun Aug 27 21:19:56 2006
@@ -32,42 +32,53 @@
  *
  * @author  Mikhail A. Markov
  * @version $Revision: 1.3.4.1 $
+ * @deprecated This interface is no longer required by RMI framework since v1.2.
+ *  It is only used by the deprecated methods of
+ *  {@link java.rmi.server.RemoteRef} class.
  */
+@Deprecated
 public interface RemoteCall {
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public void done() throws IOException;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public void executeCall() throws Exception;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public ObjectOutput getResultStream(boolean success)
             throws IOException, StreamCorruptedException;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public void releaseInputStream() throws IOException;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public ObjectInput getInputStream() throws IOException;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public void releaseOutputStream() throws IOException;
 
     /**
      * @com.intel.drl.spec_ref
      */
+    @Deprecated
     public ObjectOutput getOutputStream() throws IOException;
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteRef.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteRef.java?rev=437523&r1=437522&r2=437523&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteRef.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteRef.java
Sun Aug 27 21:19:56 2006
@@ -53,7 +53,11 @@
 
     /**
      * @com.intel.drl.spec_ref
+     * @deprecated The newCall() -> invoke() -> done() method invocation
+     *  triplet is replaced by the single invocation of the 
+     *  invoke(Remote, Method, Object[], long) method in RMI v1.2.
      */
+    @Deprecated
     public RemoteCall newCall(RemoteObject obj,
                               Operation[] op,
                               int a1,
@@ -72,12 +76,20 @@
 
     /**
      * @com.intel.drl.spec_ref
+     * @deprecated The newCall() -> invoke() -> done() method invocation
+     *  triplet is replaced by the single invocation of the 
+     *  invoke(Remote, Method, Object[], long) method in RMI v1.2.
      */
+    @Deprecated
     public void invoke(RemoteCall call) throws Exception;
 
     /**
      * @com.intel.drl.spec_ref
+     * @deprecated The newCall() -> invoke() -> done() method invocation
+     *  triplet is replaced by the single invocation of the 
+     *  invoke(Remote, Method, Object[], long) method in RMI v1.2.
      */
+    @Deprecated
     public void done(RemoteCall call) throws RemoteException;
 
     /**

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteStub.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteStub.java?rev=437523&r1=437522&r2=437523&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteStub.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/server/RemoteStub.java
Sun Aug 27 21:19:56 2006
@@ -48,7 +48,10 @@
 
     /**
      * @com.intel.drl.spec_ref
+     * @deprecated This method is depreacted since Java v1.2. The constructor
+     *  {@link #RemoteStub(java.rmi.server.RemoteRef)} should be used instead.
      */
+    @Deprecated
     protected static void setRef(RemoteStub stub, RemoteRef ref) {
         stub.ref = ref;
     }



Mime
View raw message