projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add PersistentGet
[jSite2.git]
/
src
/
net
/
pterodactylus
/
util
/
fcp
/
ProtocolError.java
diff --git
a/src/net/pterodactylus/util/fcp/ProtocolError.java
b/src/net/pterodactylus/util/fcp/ProtocolError.java
index
c812d42
..
c29e399
100644
(file)
--- a/
src/net/pterodactylus/util/fcp/ProtocolError.java
+++ b/
src/net/pterodactylus/util/fcp/ProtocolError.java
@@
-38,11
+38,7
@@
public class ProtocolError extends BaseMessage {
* be parsed
*/
public int getCode() {
- try {
- return Integer.valueOf(getField("Code"));
- } catch (NumberFormatException nfe1) {
- return -1;
- }
+ return FcpUtils.safeParseInt(getField("Code"));
}
/**