java - IntelliJ IDE disable 'is never used' inspection -


i extends messagecracker class , override methods(handlers)

public void onmessage(executionreport execrep, sessionid sessionid) ... public void onmessage(businessmessagereject message, sessionid sessionid) ... public void onmessage(quote quote, sessionid sessionid) 

each method catch messages extend message - executionreport, businessmessagereject, quote etc.

all work fine intellijide on methods - method 'onmessage(quickfix.fix44.quote, quickfix.sessionid)' never used

how can fix it?

intellij telling public method on class unused. it's not error, it's information message.

you think of gentle hint: writing public method have implied should use method intellij unable find usages of method warns in case either (a) method scope should reduced or (b) have forgotten write code intended invoke method.

you can switch behaviour on/off preferences > editor > inspections > unused declaration

enter image description here

you can disable inspection on specific method annotating method @suppresswarnings("unused").


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -