You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2002/01/18 02:53:11 UTC

cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral LateralCache.java

dlr         02/01/17 17:53:11

  Modified:    src/java/org/apache/stratum/jcs/auxiliary/lateral
                        LateralCache.java
  Log:
  Fixed compilation warning.
  
  Revision  Changes    Path
  1.4       +5 -10     jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCache.java
  
  Index: LateralCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCache.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- LateralCache.java	15 Jan 2002 21:33:30 -0000	1.3
  +++ LateralCache.java	18 Jan 2002 01:53:11 -0000	1.4
  @@ -210,6 +210,8 @@
   
   
       /**
  +     * Returns <code>null</code>.
  +     *
        *@param  key              Description of the Parameter
        *@param  container        Description of the Parameter
        *@return                  Description of the Return Value
  @@ -218,16 +220,7 @@
       public Serializable get( Serializable key, boolean container )
           throws IOException
       {
  -        try
  -        {
  -            return null;
  -        }
  -        catch ( Exception ex )
  -        {
  -            handleException( ex, "Failed to get " + key + " from " + cattr.getCacheName() );
  -            return null;
  -            // never executes; just keep the compiler happy.
  -        }
  +        return null;
       }
   
   
  @@ -291,6 +284,7 @@
           throws IOException
       {
           p( "disposing of lateral cache" );
  +        /* HELP: This section did nothing but generate compilation warnings.
           try
           {
               // Should remove cache from multicast group
  @@ -301,6 +295,7 @@
               handleException( ex, "Failed to dispose " + cattr.getCacheName() );
               //remote = null;
           }
  +        */
       }
   
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral LateralCache.java

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Aaron Smuts" <aa...@verizon.net> writes:

> What compiler are you using?  I should use the same so I get the same
> warnings.

build.compiler=jikes

> I need to look at that section.  Generally the handleException section
> are extremely important.

Cool, it wasn't doing anything at all in this case.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral LateralCache.java

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 1/17/02 6:29 PM, "Aaron Smuts" <aa...@verizon.net> wrote:

> What compiler are you using?  I should use the same so I get the same
> warnings.

Jikes

-jon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral LateralCache.java

Posted by Aaron Smuts <aa...@verizon.net>.
What compiler are you using?  I should use the same so I get the same
warnings.

I need to look at that section.  Generally the handleException section
are extremely important.

Aaron

> -----Original Message-----
> From: dlr@apache.org [mailto:dlr@apache.org]
> Sent: Thursday, January 17, 2002 8:53 PM
> To: jakarta-turbine-stratum-cvs@apache.org
> Subject: cvs commit: jakarta-turbine-
> stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral
> LateralCache.java
> 
> dlr         02/01/17 17:53:11
> 
>   Modified:    src/java/org/apache/stratum/jcs/auxiliary/lateral
>                         LateralCache.java
>   Log:
>   Fixed compilation warning.
> 
>   Revision  Changes    Path
>   1.4       +5 -10     jakarta-turbine-
>
stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCache.j
av
> a
> 
>   Index: LateralCache.java
>   ===================================================================
>   RCS file: /home/cvs/jakarta-turbine-
>
stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCache.j
av
> a,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -u -r1.3 -r1.4
>   --- LateralCache.java	15 Jan 2002 21:33:30 -0000	1.3
>   +++ LateralCache.java	18 Jan 2002 01:53:11 -0000	1.4
>   @@ -210,6 +210,8 @@
> 
> 
>        /**
>   +     * Returns <code>null</code>.
>   +     *
>         *@param  key              Description of the Parameter
>         *@param  container        Description of the Parameter
>         *@return                  Description of the Return Value
>   @@ -218,16 +220,7 @@
>        public Serializable get( Serializable key, boolean container )
>            throws IOException
>        {
>   -        try
>   -        {
>   -            return null;
>   -        }
>   -        catch ( Exception ex )
>   -        {
>   -            handleException( ex, "Failed to get " + key + " from "
+
> cattr.getCacheName() );
>   -            return null;
>   -            // never executes; just keep the compiler happy.
>   -        }
>   +        return null;
>        }
> 
> 
>   @@ -291,6 +284,7 @@
>            throws IOException
>        {
>            p( "disposing of lateral cache" );
>   +        /* HELP: This section did nothing but generate compilation
> warnings.
>            try
>            {
>                // Should remove cache from multicast group
>   @@ -301,6 +295,7 @@
>                handleException( ex, "Failed to dispose " +
> cattr.getCacheName() );
>                //remote = null;
>            }
>   +        */
>        }
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-dev-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>