[SNMP4J] create localEngineID example in doc seems strange to me

Frank Fock fock at agentpp.com
Wed Jan 31 00:31:35 CET 2007


Hi Matthieu,

Yes, using the static method is better. The method
has been made static after the documentation had been
written. OK, that's no excuse ;-)

Best regards,
Frank

Matthieu Casanova wrote:
> Hi, in the doc of snmp4j, I see that to create the localEngineID
> the code is like that
> 
> byte[] localEngineID = ((MPv3) snmp.getMessageProcessingModel(
> MessageProcessingModel.MPv3)).createLocalEngineID();
> 
> But since createLocalEngineID() is static method of MPv3, why not using
> 
> byte[] localEngineID = MPv3.createLocalEngineID();
> 
> 
> thanks
> 
> Matthieu
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list