commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl DefaultMethodInvocationHandler.java
Date Sat, 09 Mar 2002 06:46:33 GMT
hammant     02/03/08 22:46:33

  Modified:    altrmi/src/java/org/apache/commons/altrmi/server/impl
                        DefaultMethodInvocationHandler.java
  Log:
  static scope for references - Vinay fixed
  
  Revision  Changes    Path
  1.4       +3 -3      jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/DefaultMethodInvocationHandler.java
  
  Index: DefaultMethodInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/server/impl/DefaultMethodInvocationHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultMethodInvocationHandler.java	6 Mar 2002 19:34:46 -0000	1.3
  +++ DefaultMethodInvocationHandler.java	9 Mar 2002 06:46:33 -0000	1.4
  @@ -38,14 +38,14 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class DefaultMethodInvocationHandler implements MethodInvocationHandler {
   
       private HashMap mRefBeans = new HashMap();
       private HashMap mBeanRefs = new HashMap();
       private HashMap mMethodMap;
  -    private int mNextReference = 1;
  +    private static int NEXT_REFERENCE = 1;
       private AltrmiPublisher mAltrmiPublisher;
       private String mPublishedThing;
   
  @@ -126,7 +126,7 @@
           if (ref == null) {
               //ref = new Long((long) ((long) mNextReference++ << 32)
               //               + (long) Math.round(Math.random()));
  -            ref = new Long(mNextReference++);
  +            ref = new Long(NEXT_REFERENCE++);
   
               //mBeanRefs.put(implBean, ref);
               //mRefBeans.put(ref, implBean);
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message