cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Conner <Kevin.Con...@jboss.com>
Subject Re: PMD Rule Change Howto?
Date Mon, 16 Oct 2006 13:56:39 GMT
Kevin Conner wrote:
> public abstract class A
> {
>    private OutputStream os ;
> 
>    A()
>    {
>       os = getOutputStream() ;
>    }
> 
>    protected abstract OutputStream getOutputStream() ;
> }
> 
> public class B
> {
>    private Socket socket = null ;
> 
>    protected OutputStream getOutputStream()
>    {
>       socket = .... ;
>       return socket.getOutputStream() ;
>    }
> }

Of course that should be 'public class B extends A' :-)

	Kev



Mime
View raw message