logo       

Re: False warnings by FindBugs: msg#00000

java.findbugs.general

Subject: Re: False warnings by FindBugs



Hi,

I wonder that it compiles, due to soem ommissions.
I didn't try this by myself, but ...

Hence the two methods whrere defined in (say)

class CheckEmOut
{
...
public static string method1() {
// int a =
// method2 doesen't return anything
CheckEmOut.method2();
// ^^^^^ it is static, call it in a static way though

// return sth
return "foo";
}

private static void method1() {
// ^^^ forgott returntype?
; // statement with no effect
}
}

Does that change the things you expect?
Cheers,
Jan.
> -----Ursprüngliche Nachricht-----
> Von: "Prashant Deva" <prashant.deva@xxxxxxxxx>
> Gesendet: 28.09.06 15:12:30
> An: "daniel.schneller@xxxxxx" <daniel.schneller@xxxxxx>
> CC: findbugs-discuss@xxxxxxxxxxxxxxxxxx
> Betreff: Re: [FB-Discuss] False warnings by FindBugs


> > Eg -
> >
> > public static String method1()
> > {
> > int a = method2();
> > }
> >
> >
> > private static method2() //warnign here saying that 'the method is
> > never called'.
>
> > {
> > }
> >
> Findbugs-discuss mailing list
> Findbugs-discuss@xxxxxxxxxxxxxxxxxx
> http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>
>
>
> --
> Prashant Deva
> Creator, ANTLR Studio
> Founder, Placid Systems, www.placidsystems.com
>
> -----------------------------------------------------------------
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@xxxxxxxxxxxxxxxxxx
> http://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise