* @param receivedMessage
* The received message
*/
- public PeerNote(FcpMessage receivedMessage) {
+ PeerNote(FcpMessage receivedMessage) {
super(receivedMessage);
}
/**
* Returns the type of the peer note.
*
- * @return The type of the peer note
- * @throws NumberFormatException
- * if the field can not be parsed
+ * @return The type of the peer note, or <code>-1</code> if the type can
+ * not be parsed
*/
- public int getPeerNoteType() throws NumberFormatException {
- return Integer.valueOf(getField("PeerNoteType"));
+ public int getPeerNoteType() {
+ return FcpUtils.safeParseInt(getField("PeerNoteType"));
}
}