projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove same machine setting (can be detected automatically)
[jSite2.git]
/
src
/
net
/
pterodactylus
/
util
/
fcp
/
PeerNote.java
diff --git
a/src/net/pterodactylus/util/fcp/PeerNote.java
b/src/net/pterodactylus/util/fcp/PeerNote.java
index
bac39bd
..
4efbc4f
100644
(file)
--- a/
src/net/pterodactylus/util/fcp/PeerNote.java
+++ b/
src/net/pterodactylus/util/fcp/PeerNote.java
@@
-21,7
+21,7
@@
public class PeerNote extends BaseMessage {
* @param receivedMessage
* The received message
*/
* @param receivedMessage
* The received message
*/
-
public
PeerNote(FcpMessage receivedMessage) {
+ PeerNote(FcpMessage receivedMessage) {
super(receivedMessage);
}
super(receivedMessage);
}
@@
-37,12
+37,11
@@
public class PeerNote extends BaseMessage {
/**
* Returns the type of the peer note.
*
/**
* 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"));
}
}
}
}