Skip to content

Commit

Permalink
Revert "switch to jakarta namespace (knowm#4735)"
Browse files Browse the repository at this point in the history
This reverts commit e63562d
  • Loading branch information
bigscoop committed Aug 14, 2023
1 parent 37f15e5 commit 6687f80
Show file tree
Hide file tree
Showing 234 changed files with 1,421 additions and 1,420 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<version.assertj>3.24.2</version.assertj>
<version.commons.lang3>3.12.0</version.commons.lang3>
<version.fasterxml>2.14.1</version.fasterxml>
<version.github.mmazi>3.0</version.github.mmazi>
<version.github.mmazi>2.1.0</version.github.mmazi>
<version.resilience4j>1.7.0</version.resilience4j>
<version.junit>5.9.3</version.junit>
<version.lombok>1.18.26</version.lombok>
Expand Down Expand Up @@ -583,4 +583,5 @@
</plugins>
</build>

</project>
</project>

Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import java.io.IOException;
import java.util.List;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.ascendex.dto.AscendexResponse;
import org.knowm.xchange.ascendex.dto.marketdata.AscendexAssetDto;
import org.knowm.xchange.ascendex.dto.marketdata.AscendexBarHistDto;
Expand Down Expand Up @@ -45,4 +45,4 @@ AscendexResponse<List<AscendexBarHistDto>> getHistoricalBarData(
@QueryParam("from") Long from,
@QueryParam("n") Integer noOfBars)
throws IOException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import java.io.IOException;
import java.util.List;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.DELETE;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.ascendex.dto.AscendexResponse;
import org.knowm.xchange.ascendex.dto.account.AscendexCashAccountBalanceDto;
import org.knowm.xchange.ascendex.dto.trade.AscendexOpenOrdersResponse;
Expand Down Expand Up @@ -95,4 +95,4 @@ AscendexResponse<List<AscendexOpenOrdersResponse>> getOrdersHistory(
@QueryParam("symbol") String symbol,
@QueryParam("executedOnly") boolean executedOnly)
throws IOException;
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.knowm.xchange.bankera;

import java.io.IOException;
import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.bankera.dto.BankeraException;
import org.knowm.xchange.bankera.dto.BankeraToken;
import org.knowm.xchange.bankera.dto.marketdata.BankeraMarketInfo;
Expand Down Expand Up @@ -45,4 +45,4 @@ BankeraTradesResponse getRecentTrades(@PathParam("market") String market)
@GET
@Path("/general/info")
BankeraMarketInfo getMarketInfo() throws BankeraException, IOException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import java.io.IOException;
import java.util.List;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.bankera.dto.BankeraException;
import org.knowm.xchange.bankera.dto.BaseBankeraRequest;
import org.knowm.xchange.bankera.dto.CreateOrderRequest;
Expand Down Expand Up @@ -68,4 +68,4 @@ BankeraUserTrades getUserTrades(
BankeraOrder getUserOrder(
@HeaderParam("Authorization") String authorization, @QueryParam("orderId") String orderId)
throws BankeraException, IOException;
}
}
16 changes: 8 additions & 8 deletions xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import java.io.IOException;
import java.util.List;
import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.bibox.dto.BiboxMultipleResponses;
import org.knowm.xchange.bibox.dto.BiboxResponse;
import org.knowm.xchange.bibox.dto.marketdata.BiboxMarket;
Expand Down Expand Up @@ -88,4 +88,4 @@ BiboxResponse<List<BiboxMarket>> marketAll(@QueryParam("cmd") String cmd)
@POST
@Path("mdata")
BiboxMultipleResponses<BiboxOrderBook> orderBooks(@FormParam(FORM_CMDS) String cmds);
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.knowm.xchange.bibox;

import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.bibox.dto.BiboxMultipleResponses;
import org.knowm.xchange.bibox.dto.BiboxPagedResponses;
import org.knowm.xchange.bibox.dto.BiboxSingleResponse;
Expand Down Expand Up @@ -128,4 +128,4 @@ BiboxMultipleResponses<String> cancelTrades(
@FormParam(FORM_CMDS) String cmds,
@FormParam(FORM_APIKEY) String apiKey,
@FormParam(FORM_SIGNATURE) ParamsDigest signature);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.knowm.xchange.bibox.service;

import java.io.UnsupportedEncodingException;
import jakarta.ws.rs.FormParam;
import javax.ws.rs.FormParam;
import org.knowm.xchange.bibox.BiboxAuthenticated;
import org.knowm.xchange.service.BaseParamsDigest;
import org.knowm.xchange.utils.DigestUtils;
Expand Down Expand Up @@ -37,4 +37,4 @@ public String digestParams(RestInvocation restInvocation) {
throw new RuntimeException(e1.getMessage());
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import java.io.IOException;
import java.util.List;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.binance.dto.BinanceException;
import org.knowm.xchange.binance.dto.marketdata.BinanceAggTrades;
import org.knowm.xchange.binance.dto.marketdata.BinanceOrderbook;
Expand Down Expand Up @@ -181,4 +181,4 @@ BinancePrice tickerPrice(@QueryParam("symbol") String symbol)
@GET
@Path("api/v3/ticker/bookTicker")
List<BinancePriceQuantity> tickerAllBookTickers() throws IOException, BinanceException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import jakarta.ws.rs.DELETE;
import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.DELETE;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.binance.dto.BinanceException;
import org.knowm.xchange.binance.dto.account.*;
import org.knowm.xchange.binance.dto.trade.BinanceCancelledOrder;
Expand Down Expand Up @@ -549,4 +549,4 @@ BinanceListenKey startUserDataStream(@HeaderParam(X_MBX_APIKEY) String apiKey)
Map<?, ?> closeUserDataStream(
@HeaderParam(X_MBX_APIKEY) String apiKey, @PathParam("listenKey") String listenKey)
throws IOException, BinanceException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import org.knowm.xchange.binance.dto.meta.BinanceSystemStatus;
import org.knowm.xchange.binance.dto.meta.exchangeinfo.BinanceExchangeInfo;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import java.io.IOException;
import java.util.List;

Expand Down Expand Up @@ -115,4 +115,4 @@ List<BinanceFundingRate> fundingRates()
BinanceFundingRate fundingRate(
@QueryParam("symbol") String symbol)
throws IOException, BinanceException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import si.mazi.rescu.ParamsDigest;
import si.mazi.rescu.SynchronizedValueFactory;

import jakarta.ws.rs.*;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;
Expand Down Expand Up @@ -208,4 +208,4 @@ List<BinanceCancelledOrder> cancelAllFutureOpenOrders(
@QueryParam(SIGNATURE) ParamsDigest signature)
throws IOException, BinanceException;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import java.nio.charset.StandardCharsets;
import javax.crypto.Mac;
import jakarta.ws.rs.QueryParam;
import javax.ws.rs.QueryParam;
import org.knowm.xchange.binance.BinanceAuthenticated;
import org.knowm.xchange.service.BaseParamsDigest;
import org.slf4j.Logger;
Expand Down Expand Up @@ -59,4 +59,4 @@ public String digestParams(RestInvocation restInvocation) {
String printBase64Binary = bytesToHex(mac.doFinal());
return printBase64Binary;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.knowm.xchange.bitbay;

import java.io.IOException;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.bitbay.dto.marketdata.BitbayOrderBook;
import org.knowm.xchange.bitbay.dto.marketdata.BitbayTicker;
import org.knowm.xchange.bitbay.dto.marketdata.BitbayTrade;
Expand Down Expand Up @@ -37,4 +37,4 @@ BitbayTrade[] getBitbayTrades(
@QueryParam("sort") String sort,
@QueryParam("limit") int limit)
throws IOException;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.bitbay.dto.BitbayBaseResponse;
import org.knowm.xchange.bitbay.dto.acount.BitbayAccountInfoResponse;
import org.knowm.xchange.bitbay.dto.trade.BitbayCancelResponse;
Expand Down Expand Up @@ -117,4 +117,4 @@ List<Map> transactions(
@HeaderParam("API-Hash") ParamsDigest sign,
@FormParam("moment") SynchronizedValueFactory<Long> timestamp,
@FormParam("market") String market);
}
}
Loading

0 comments on commit 6687f80

Please sign in to comment.