projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
right-align the help menu
[jSite2.git]
/
src
/
net
/
pterodactylus
/
util
/
fcp
/
StartedCompression.java
diff --git
a/src/net/pterodactylus/util/fcp/StartedCompression.java
b/src/net/pterodactylus/util/fcp/StartedCompression.java
index
7032ee0
..
f56fc49
100644
(file)
--- a/
src/net/pterodactylus/util/fcp/StartedCompression.java
+++ b/
src/net/pterodactylus/util/fcp/StartedCompression.java
@@
-23,7
+23,7
@@
package net.pterodactylus.util.fcp;
* The “StartedCompression” message signals the client the compressing for a
* request has started.
*
* The “StartedCompression” message signals the client the compressing for a
* request has started.
*
- * @author David
Roden <droden@gmail.com
>
+ * @author David
‘Bombe’ Roden <bombe@freenetproject.org
>
* @version $Id$
*/
public class StartedCompression extends BaseMessage {
* @version $Id$
*/
public class StartedCompression extends BaseMessage {
@@
-35,7
+35,7
@@
public class StartedCompression extends BaseMessage {
* @param receivedMessage
* The received message
*/
* @param receivedMessage
* The received message
*/
-
public
StartedCompression(FcpMessage receivedMessage) {
+ StartedCompression(FcpMessage receivedMessage) {
super(receivedMessage);
}
super(receivedMessage);
}
@@
-55,11
+55,7
@@
public class StartedCompression extends BaseMessage {
* codec could not be parsed
*/
public int getCodec() {
* codec could not be parsed
*/
public int getCodec() {
- try {
- return Integer.valueOf(getField("Codec"));
- } catch (NumberFormatException nfe1) {
- return -1;
- }
+ return FcpUtils.safeParseInt(getField("Codec"));
}
}
}
}