forked from I2P_Developers/i2p.i2p
Build: Fix some deprecation warnings all over
This commit is contained in:
@ -162,6 +162,7 @@ public class Dispatcher implements RequestHandler, NotificationHandler {
|
|||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public JSONRPC2Response dispatch(final JSONRPC2Request request, final MessageContext requestCtx) {
|
public JSONRPC2Response dispatch(final JSONRPC2Request request, final MessageContext requestCtx) {
|
||||||
|
|
||||||
return process(request, requestCtx);
|
return process(request, requestCtx);
|
||||||
@ -209,6 +210,7 @@ public class Dispatcher implements RequestHandler, NotificationHandler {
|
|||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void dispatch(final JSONRPC2Notification notification, final MessageContext notificationCtx) {
|
public void dispatch(final JSONRPC2Notification notification, final MessageContext notificationCtx) {
|
||||||
|
|
||||||
process(notification, notificationCtx);
|
process(notification, notificationCtx);
|
||||||
|
@ -252,7 +252,7 @@ public class Snark
|
|||||||
/**
|
/**
|
||||||
* from main() via parseArguments() single torrent
|
* from main() via parseArguments() single torrent
|
||||||
*
|
*
|
||||||
* @deprecated unused
|
* unused
|
||||||
*/
|
*/
|
||||||
/****
|
/****
|
||||||
Snark(I2PSnarkUtil util, String torrent, String ip, int user_port,
|
Snark(I2PSnarkUtil util, String torrent, String ip, int user_port,
|
||||||
@ -264,7 +264,7 @@ public class Snark
|
|||||||
/**
|
/**
|
||||||
* single torrent - via router
|
* single torrent - via router
|
||||||
*
|
*
|
||||||
* @deprecated unused
|
* unused
|
||||||
*/
|
*/
|
||||||
/****
|
/****
|
||||||
public Snark(I2PAppContext ctx, Properties opts, String torrent,
|
public Snark(I2PAppContext ctx, Properties opts, String torrent,
|
||||||
|
@ -260,6 +260,7 @@ public class DataProcessor implements DataHolder {
|
|||||||
* @return Ending timestamp in seconds
|
* @return Ending timestamp in seconds
|
||||||
* @deprecated Uses {@link #getEndTime()} instead.
|
* @deprecated Uses {@link #getEndTime()} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public long getEndingTimestamp() {
|
public long getEndingTimestamp() {
|
||||||
return tEnd;
|
return tEnd;
|
||||||
}
|
}
|
||||||
|
@ -652,7 +652,7 @@ int getPosition(){
|
|||||||
}
|
}
|
||||||
case 39: break;
|
case 39: break;
|
||||||
case 1:
|
case 1:
|
||||||
{ throw new DeserializationException(yychar, DeserializationException.Problems.UNEXPECTED_CHARACTER, new Character(yycharat(0)));
|
{ throw new DeserializationException(yychar, DeserializationException.Problems.UNEXPECTED_CHARACTER, Character.valueOf(yycharat(0)));
|
||||||
}
|
}
|
||||||
case 40: break;
|
case 40: break;
|
||||||
case 6:
|
case 6:
|
||||||
|
Reference in New Issue
Block a user