This full example reproduces the behaviour (the value parameter is 
unused-underlined):

public abstract class Test {

         protected abstract String getTestString();

         protected static Test createTest(int value) {
                 return new Test(value) {
                         protected String getTestString() {
                                 return null;
                         }
                 };
         }

         private final int value;

         protected Test(int value) {
                 this.value = value;
         }
}

Tom

At 14:06 11.02.02 +0300, you wrote:
>I could not reproduce this. Could you either send me the mentioned classes
>("QFile...") or provide a simplier example?
>
>Best regards,
>Valentin Kipiatkov
>-----------------------------------------------------------
>  IntelliJ Software, http://www.intellij.com/
>  "Develop with pleasure"
>-----------------------------------------------------------
>
>----- Original Message -----
>From: "Thomas Singer" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, February 11, 2002 8:38 AM
>Subject: [Eap-list] Wrong not-used detection
>
>
> > In the following piece of code, all parameters are marked as never used
> > (the code compiles).
> >
> > public static QFileChooserCustomizer
> > createFileOpenCustomizer(QFileChooserFilter chooserFilter,
> >
>QFileAcceptFilter
> > acceptFilter,
> >
>QFileNameExpander
> > filenameExpander) {
> >      return new QDefaultFileChooserCustomizer(chooserFilter, acceptFilter,
> > filenameExpander) {
> >          protected QFileChooserDialogPane getDialogPane() {
> >              return QFileChooserDialogPane.getFileOpenInstance();
> >          }
> >      };
> > }
> >
> > Tom
> >
> >
> > _______________________________________________
> > Eap-list mailing list
> > [EMAIL PROTECTED]
> > http://www.intellij.com/mailman/listinfo/eap-list
>
>
>_______________________________________________
>Eap-list mailing list
>[EMAIL PROTECTED]
>http://www.intellij.com/mailman/listinfo/eap-list


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to