projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add temp input stream
[jFCPlib.git]
/
src
/
net
/
pterodactylus
/
fcp
/
PersistentPut.java
diff --git
a/src/net/pterodactylus/fcp/PersistentPut.java
b/src/net/pterodactylus/fcp/PersistentPut.java
index
8a1aae5
..
1457146
100644
(file)
--- a/
src/net/pterodactylus/fcp/PersistentPut.java
+++ b/
src/net/pterodactylus/fcp/PersistentPut.java
@@
-112,11
+112,7
@@
public class PersistentPut extends BaseMessage {
* priority could not be parsed
*/
public Priority getPriority() {
* priority could not be parsed
*/
public Priority getPriority() {
- try {
- return Priority.values()[Integer.valueOf(getField("PriorityClass"))];
- } catch (NumberFormatException nfe1) {
- return Priority.unknown;
- }
+ return Priority.values()[FcpUtils.safeParseInt(getField("PriorityClass"), Priority.unknown.ordinal())];
}
/**
}
/**