In NB 12.1, I have the following code in a constructor of a class named
Challenge:

    @SuppressWarnings("LeakingThisInConstructor")
    public Challenge(R
resonance,Connection<?,?,S,C_I,C_G,C_N,I>connection,I identity,R_MES
messageResonance)throws Problem{

    //...

        this.messageResonance.getReferee().addRefereeSubscription(this);
        this.messageResonance.getIndex().addIndexSubscription(this);

        messageResonance.addChallenge((SU)this);
    }

When I remove the @SuppressWarnings annotation, I see two yellow light
bulbs next to the lines ending (this);, but none next to the line ending
(SU(this)); where SU is a parameterised type. Does this perhaps belie a
problem with the editor warnings?

Reply via email to