Build: Fix some deprecation warnings all over
Java CI / build (push) Waiting to run
Java CI / javadoc-latest (push) Waiting to run
Java CI / build-java7 (push) Waiting to run
Dockerhub / docker (push) Waiting to run

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
@@ -162,6 +162,7 @@ public class Dispatcher implements RequestHandler, NotificationHandler {
/**
* @deprecated
*/
@Deprecated
public JSONRPC2Response dispatch(final JSONRPC2Request request, final MessageContext requestCtx) {
return process(request, requestCtx);
@@ -209,6 +210,7 @@ public class Dispatcher implements RequestHandler, NotificationHandler {
/**
* @deprecated
*/
@Deprecated
public void dispatch(final JSONRPC2Notification notification, final MessageContext notificationCtx) {
process(notification, notificationCtx);
@@ -252,7 +252,7 @@ public class Snark
/**
* from main() via parseArguments() single torrent
*
* @deprecated unused
* unused
*/
/****
Snark(I2PSnarkUtil util, String torrent, String ip, int user_port,
@@ -264,7 +264,7 @@ public class Snark
/**
* single torrent - via router
*
* @deprecated unused
* unused
*/
/****
public Snark(I2PAppContext ctx, Properties opts, String torrent,
@@ -260,6 +260,7 @@ public class DataProcessor implements DataHolder {
* @return Ending timestamp in seconds
* @deprecated Uses {@link #getEndTime()} instead.
*/
@Deprecated
public long getEndingTimestamp() {
return tEnd;
}
+1 -1
View File
@@ -652,7 +652,7 @@ int getPosition(){
}
case 39: break;
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 6: