Build: Fix some deprecation warnings all over

This commit is contained in:
zzz
2024-11-28 17:17:11 -05:00
parent a1949bf612
commit 37cdade492
4 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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,

View File

@ -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;
} }

View File

@ -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: