From c1d4c41980a18ae11d37be752f0c09d7f4646330 Mon Sep 17 00:00:00 2001 From: Dmitri Karpovich Date: Tue, 15 Aug 2023 09:39:08 +0200 Subject: [PATCH] Revert "Revert "switch to jakarta namespace (#4735)"" This reverts commit 6687f80d10b8f8d567e8461057fa13bbb29dec9c. --- pom.xml | 5 ++-- .../org/knowm/xchange/ascendex/IAscendex.java | 12 +++++----- .../ascendex/IAscendexAuthenticated.java | 22 ++++++++--------- .../org/knowm/xchange/bankera/Bankera.java | 16 ++++++------- .../xchange/bankera/BankeraAuthenticated.java | 20 ++++++++-------- .../java/org/knowm/xchange/bibox/Bibox.java | 16 ++++++------- .../xchange/bibox/BiboxAuthenticated.java | 14 +++++------ .../xchange/bibox/service/BiboxDigest.java | 4 ++-- .../org/knowm/xchange/binance/Binance.java | 12 +++++----- .../xchange/binance/BinanceAuthenticated.java | 24 +++++++++---------- .../knowm/xchange/binance/BinanceFutures.java | 12 +++++----- .../binance/BinanceFuturesAuthenticated.java | 6 ++--- .../binance/service/BinanceHmacDigest.java | 4 ++-- .../java/org/knowm/xchange/bitbay/Bitbay.java | 14 +++++------ .../xchange/bitbay/BitbayAuthenticated.java | 16 ++++++------- .../bitbay/v3/BitbayAuthenticated.java | 14 +++++------ .../bitcoinaverage/BitcoinAverage.java | 12 +++++----- .../xchange/bitcoincharts/BitcoinCharts.java | 10 ++++---- .../xchange/bitcoincore/BitcoinCore.java | 12 +++++----- .../knowm/xchange/bitcoinde/Bitcoinde.java | 22 ++++++++--------- .../knowm/xchange/bitcoinde/v4/Bitcoinde.java | 22 ++++++++--------- .../xchange/bitcointoyou/Bitcointoyou.java | 12 +++++----- .../BitcointoyouAuthenticated.java | 18 +++++++------- .../knowm/xchange/bitfinex/v1/Bitfinex.java | 14 +++++------ .../bitfinex/v1/BitfinexAuthenticated.java | 14 +++++------ .../knowm/xchange/bitfinex/v2/Bitfinex.java | 14 +++++------ .../bitfinex/v2/BitfinexAuthenticated.java | 18 +++++++------- .../bitfinex/v2/BitfinexHmacSignature.java | 4 ++-- .../org/knowm/xchange/bitflyer/Bitflyer.java | 18 +++++++------- .../org/knowm/xchange/bithumb/Bithumb.java | 12 +++++----- .../xchange/bithumb/BithumbAuthenticated.java | 16 ++++++------- .../bithumb/service/BithumbDigest.java | 4 ++-- .../bithumb/service/BithumbDigestTest.java | 4 ++-- .../java/org/knowm/xchange/bitmex/Bitmex.java | 12 +++++----- .../xchange/bitmex/BitmexAuthenticated.java | 24 +++++++++---------- .../xchange/bitmex/service/BitmexDigest.java | 4 ++-- .../java/org/knowm/xchange/bitso/Bitso.java | 14 +++++------ .../xchange/bitso/BitsoAuthenticated.java | 14 +++++------ .../xchange/bitso/service/BitsoDigest.java | 4 ++-- .../bitstamp/BitstampAuthenticatedV2.java | 18 +++++++------- .../knowm/xchange/bitstamp/BitstampV2.java | 14 +++++------ .../bitstamp/service/BitstampDigest.java | 4 ++-- .../bitstamp/service/BitstampDigestV2.java | 4 ++-- .../org/knowm/xchange/bittrex/Bittrex.java | 14 +++++------ .../xchange/bittrex/BittrexAuthenticated.java | 22 ++++++++--------- .../bittrex/service/BittrexDigest.java | 4 ++-- .../java/org/knowm/xchange/bity/Bity.java | 14 +++++------ .../knowm/xchange/bity/BityAuthenticated.java | 14 +++++------ .../java/org/knowm/xchange/bitz/BitZ.java | 18 +++++++------- .../knowm/xchange/bitz/BitZAuthenticated.java | 14 +++++------ .../xchange/bitz/service/BitZDigest.java | 4 ++-- .../java/org/knowm/xchange/bl3p/Bl3p.java | 12 +++++----- .../knowm/xchange/bl3p/Bl3pAuthenticated.java | 18 +++++++------- .../knowm/xchange/bleutrade/Bleutrade.java | 12 +++++----- .../bleutrade/BleutradeAuthenticated.java | 14 +++++------ .../service/BleutradeDigestTest.java | 4 ++-- .../knowm/xchange/blockchain/Blockchain.java | 12 +++++----- .../blockchain/BlockchainAuthenticated.java | 6 ++--- .../blockchain/BlockchainExchange.java | 4 ++-- .../blockchain/BlockchainResilience.java | 4 ++-- .../java/org/knowm/xchange/btcc/BTCC.java | 12 +++++----- .../knowm/xchange/btcmarkets/BTCMarkets.java | 14 +++++------ .../btcmarkets/BTCMarketsAuthenticated.java | 16 ++++++------- .../btcmarkets/BTCMarketsAuthenticatedV3.java | 18 +++++++------- .../btcmarkets/service/BTCMarketsDigest.java | 4 ++-- .../service/BTCMarketsDigestV3.java | 4 ++-- .../org/knowm/xchange/btcturk/BTCTurk.java | 12 +++++----- .../xchange/btcturk/BTCTurkAuthenticated.java | 20 ++++++++-------- .../java/org/knowm/xchange/bybit/Bybit.java | 12 +++++----- .../xchange/bybit/BybitAuthenticated.java | 6 ++--- .../xchange/bybit/service/BybitDigest.java | 6 ++--- .../xchange/bybit/BybitExchangeTest.java | 4 ++-- .../service/BybitAccountServiceRawTest.java | 4 ++-- .../service/BybitAccountServiceTest.java | 4 ++-- .../BybitMarketDataServiceRawTest.java | 4 ++-- .../service/BybitMarketDataServiceTest.java | 2 +- .../service/BybitTradeServiceRawTest.java | 4 ++-- .../bybit/service/BybitTradeServiceTest.java | 4 ++-- .../java/org/knowm/xchange/ccex/CCEX.java | 12 +++++----- .../knowm/xchange/ccex/CCEXAuthenticated.java | 14 +++++------ .../java/org/knowm/xchange/cexio/CexIO.java | 18 +++++++------- .../xchange/cexio/CexIOAuthenticated.java | 16 ++++++------- .../org/knowm/xchange/coinbase/Coinbase.java | 16 ++++++------- .../coinbase/CoinbaseAuthenticated.java | 24 +++++++++---------- .../coinbase/service/CoinbaseDigest.java | 4 ++-- .../knowm/xchange/coinbase/v2/Coinbase.java | 16 ++++++------- .../coinbase/v2/CoinbaseAuthenticated.java | 20 ++++++++-------- .../xchange/coinbase/v2/CoinbaseV2Digest.java | 4 ++-- .../v2/service/CoinbaseAccountServiceRaw.java | 4 ++-- .../v2/service/CoinbaseBaseService.java | 4 ++-- .../v2/service/CoinbaseTradeServiceRaw.java | 4 ++-- .../xchange/coinbasepro/CoinbasePro.java | 22 ++++++++--------- .../coinbasepro/CoinbaseProResilience.java | 4 ++-- .../service/CoinbaseProDigest.java | 4 ++-- .../knowm/xchange/coincheck/Coincheck.java | 12 +++++----- .../org/knowm/xchange/coindeal/Coindeal.java | 12 +++++----- .../coindeal/CoindealAuthenticated.java | 22 ++++++++--------- .../knowm/xchange/coindirect/Coindirect.java | 14 +++++------ .../coindirect/CoindirectAuthenticated.java | 22 ++++++++--------- .../org/knowm/xchange/coinegg/CoinEgg.java | 12 +++++----- .../xchange/coinegg/CoinEggAuthenticated.java | 14 +++++------ .../coinegg/service/CoinEggDigest.java | 4 ++-- .../coinegg/service/CoinEggDigestTest.java | 4 ++-- .../xchange/coinex/CoinexAuthenticated.java | 16 ++++++------- .../coinfloor/CoinfloorAuthenticated.java | 14 +++++------ .../xchange/coinfloor/CoinfloorPublic.java | 14 +++++------ .../java/org/knowm/xchange/coingi/Coingi.java | 12 +++++----- .../xchange/coingi/CoingiAuthenticated.java | 12 +++++----- .../knowm/xchange/coinjar/CoinjarData.java | 12 +++++----- .../knowm/xchange/coinjar/CoinjarTrading.java | 22 ++++++++--------- .../deprecated/v2/CoinMarketCap.java | 12 +++++----- .../pro/v1/CmcAuthenticated.java | 14 +++++------ .../org/knowm/xchange/coinmate/Coinmate.java | 6 ++--- .../coinmate/CoinmateAuthenticated.java | 14 +++++------ .../coinmate/service/CoinmateDigest.java | 4 ++-- .../org/knowm/xchange/coinone/Coinone.java | 8 +++---- .../xchange/coinone/CoinoneAuthenticated.java | 14 +++++------ .../knowm/xchange/client/ResilienceUtils.java | 4 ++-- .../xchange/cryptowatch/Cryptowatch.java | 14 +++++------ .../org/knowm/xchange/deribit/v2/Deribit.java | 12 +++++----- .../deribit/v2/DeribitAuthenticated.java | 14 +++++------ .../org/knowm/xchange/dvchain/DVChain.java | 20 ++++++++-------- .../java/org/knowm/xchange/enigma/Enigma.java | 12 +++++----- .../xchange/enigma/EnigmaAuthenticated.java | 18 +++++++------- .../java/org/knowm/xchange/exmo/Exmo.java | 18 +++++++------- .../main/java/org/knowm/xchange/ftx/Ftx.java | 16 ++++++------- .../knowm/xchange/ftx/FtxAuthenticated.java | 22 ++++++++--------- .../knowm/xchange/ftx/service/FtxDigest.java | 4 ++-- .../java/org/knowm/xchange/gateio/Gateio.java | 14 +++++------ .../xchange/gateio/GateioAuthenticated.java | 16 ++++++------- .../org/knowm/xchange/gemini/v1/Gemini.java | 14 +++++------ .../gemini/v1/GeminiAuthenticated.java | 16 ++++++------- .../dto/account/GeminiWithdrawalRequest.java | 4 ++-- .../org/knowm/xchange/gemini/v2/Gemini2.java | 12 +++++----- .../org/knowm/xchange/globitex/Globitex.java | 14 +++++------ .../globitex/GlobitexAuthenticated.java | 18 +++++++------- .../globitex/service/GlobitexDigest.java | 4 ++-- .../org/knowm/xchange/hitbtc/v2/Hitbtc.java | 10 ++++---- .../hitbtc/v2/HitbtcAuthenticated.java | 22 ++++++++--------- .../java/org/knowm/xchange/huobi/Huobi.java | 18 +++++++------- .../xchange/huobi/service/HuobiDigest.java | 6 ++--- .../knowm/xchange/idex/service/CancelApi.java | 10 ++++---- .../knowm/xchange/idex/service/OrderApi.java | 10 ++++---- .../idex/service/Return24VolumeApi.java | 10 ++++---- .../idex/service/ReturnBalancesApi.java | 10 ++++---- .../service/ReturnCompleteBalancesApi.java | 10 ++++---- .../service/ReturnContractAddressApi.java | 10 ++++---- .../idex/service/ReturnCurrenciesApi.java | 10 ++++---- .../service/ReturnDepositsWithdrawalsApi.java | 10 ++++---- .../idex/service/ReturnNextNonceApi.java | 10 ++++---- .../idex/service/ReturnOpenOrdersApi.java | 10 ++++---- .../idex/service/ReturnOrderBookApi.java | 10 ++++---- .../idex/service/ReturnOrderTradesApi.java | 10 ++++---- .../xchange/idex/service/ReturnTickerApi.java | 10 ++++---- .../idex/service/ReturnTradeHistoryApi.java | 10 ++++---- .../knowm/xchange/idex/service/TradeApi.java | 10 ++++---- .../xchange/idex/service/WithdrawApi.java | 10 ++++---- .../IndependentReserve.java | 12 +++++----- .../IndependentReserveAuthenticated.java | 12 +++++----- .../java/org/knowm/xchange/itbit/ItBit.java | 14 +++++------ .../xchange/itbit/ItBitAuthenticated.java | 22 ++++++++--------- .../org/knowm/xchange/koineks/Koineks.java | 10 ++++---- .../java/org/knowm/xchange/koinim/Koinim.java | 10 ++++---- .../java/org/knowm/xchange/kraken/Kraken.java | 14 +++++------ .../xchange/kraken/KrakenAuthenticated.java | 16 ++++++------- .../xchange/kraken/service/KrakenDigest.java | 4 ++-- .../xchange/krakenfutures/KrakenFutures.java | 12 +++++----- .../KrakenFuturesAuthenticated.java | 18 +++++++------- .../service/KrakenFuturesDigest.java | 6 ++--- .../service/KrakenFuturesTradeService.java | 4 ++-- .../xchange/kucoin/KucoinResilience.java | 4 ++-- .../xchange/kucoin/service/AccountAPI.java | 20 ++++++++-------- .../xchange/kucoin/service/DepositAPI.java | 16 ++++++------- .../knowm/xchange/kucoin/service/FillAPI.java | 14 +++++------ .../xchange/kucoin/service/HistOrdersAPI.java | 14 +++++------ .../xchange/kucoin/service/HistoryAPI.java | 12 +++++----- .../xchange/kucoin/service/KucoinDigest.java | 4 ++-- .../xchange/kucoin/service/LimitOrderAPI.java | 12 +++++----- .../xchange/kucoin/service/OrderAPI.java | 22 ++++++++--------- .../xchange/kucoin/service/OrderBookAPI.java | 14 +++++------ .../xchange/kucoin/service/SymbolAPI.java | 14 +++++------ .../xchange/kucoin/service/TradingFeeAPI.java | 14 +++++------ .../xchange/kucoin/service/WebsocketAPI.java | 12 +++++----- .../xchange/kucoin/service/WithdrawalAPI.java | 18 +++++++------- .../java/org/knowm/xchange/kuna/Kuna.java | 14 +++++------ .../knowm/xchange/kuna/KunaAuthenticated.java | 8 +++---- .../org/knowm/xchange/latoken/Latoken.java | 14 +++++------ .../xchange/latoken/LatokenAuthenticated.java | 20 ++++++++-------- .../xchange/lgo/CertificateAuthority.java | 12 +++++----- .../main/java/org/knowm/xchange/lgo/Lgo.java | 22 ++++++++--------- .../org/knowm/xchange/livecoin/Livecoin.java | 20 ++++++++-------- .../xchange/livecoin/LivecoinDigest.java | 6 ++--- .../java/org/knowm/xchange/luno/Luno.java | 12 +++++----- .../knowm/xchange/luno/LunoAuthenticated.java | 24 +++++++++---------- .../java/org/knowm/xchange/lykke/Lykke.java | 14 +++++------ .../xchange/lykke/LykkeAuthenticated.java | 22 ++++++++--------- .../mercadobitcoin/MercadoBitcoin.java | 12 +++++----- .../MercadoBitcoinAuthenticated.java | 16 ++++++------- .../knowm/xchange/mexc/MEXCAuthenticated.java | 6 ++--- .../xchange/mexc/service/MEXCDigest.java | 6 ++--- .../java/org/knowm/xchange/okcoin/OkCoin.java | 18 +++++++------- .../knowm/xchange/okcoin/OkCoinDigest.java | 4 ++-- .../java/org/knowm/xchange/okcoin/OkexV3.java | 20 ++++++++-------- .../java/org/knowm/xchange/okex/Okex.java | 18 +++++++------- .../knowm/xchange/okex/OkexAuthenticated.java | 18 +++++++------- .../knowm/xchange/okex/OkexResilience.java | 4 ++-- .../okex/service/OkexTradeService.java | 4 ++-- .../main/java/org/knowm/xchange/oer/OER.java | 12 +++++----- .../java/org/knowm/xchange/paribu/Paribu.java | 10 ++++---- .../org/knowm/xchange/paymium/Paymium.java | 10 ++++---- .../xchange/paymium/PaymiumAuthenticated.java | 16 ++++++------- .../paymium/service/PaymiumDigest.java | 4 ++-- .../org/knowm/xchange/poloniex/Poloniex.java | 12 +++++----- .../poloniex/PoloniexAuthenticated.java | 16 ++++++------- .../java/org/knowm/xchange/quoine/Quoine.java | 12 +++++----- .../xchange/quoine/QuoineAuthenticated.java | 22 ++++++++--------- .../xchange/ripple/RippleAuthenticated.java | 18 +++++++------- .../knowm/xchange/ripple/RipplePublic.java | 14 +++++------ .../java/com/knowm/xchange/serum/Serum.java | 12 +++++----- .../org/knowm/xchange/therock/TheRock.java | 14 +++++------ .../xchange/therock/TheRockAuthenticated.java | 22 ++++++++--------- .../therock/TheRockAuthenticatedV0.java | 14 +++++------ .../therock/service/TheRockDigest.java | 4 ++-- .../knowm/xchange/tradeogre/TradeOgre.java | 8 +++---- .../tradeogre/TradeOgreAuthenticated.java | 12 +++++----- .../knowm/xchange/truefx/TrueFxPublic.java | 8 +++---- .../java/org/knowm/xchange/upbit/Upbit.java | 8 +++---- .../xchange/upbit/UpbitAuthenticated.java | 20 ++++++++-------- .../xchange/upbit/service/UpbitJWTDigest.java | 4 ++-- .../org/knowm/xchange/vaultoro/Vaultoro.java | 10 ++++---- .../vaultoro/VaultoroAuthenticated.java | 18 +++++++------- .../java/org/knowm/xchange/yobit/YoBit.java | 20 ++++++++-------- .../org/knowm/xchange/yobit/YoBitDigest.java | 4 ++-- .../java/org/knowm/xchange/zaif/Zaif.java | 12 +++++----- 234 files changed, 1420 insertions(+), 1421 deletions(-) diff --git a/pom.xml b/pom.xml index a0b2e0b47bb..2845f784729 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ 3.24.2 3.12.0 2.14.1 - 2.1.0 + 3.0 1.7.0 5.9.3 1.18.26 @@ -583,5 +583,4 @@ - - + \ No newline at end of file diff --git a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java index 3eab130d1e0..d7d8c676fa4 100644 --- a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java +++ b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.ascendex.dto.AscendexResponse; import org.knowm.xchange.ascendex.dto.marketdata.AscendexAssetDto; import org.knowm.xchange.ascendex.dto.marketdata.AscendexBarHistDto; @@ -45,4 +45,4 @@ AscendexResponse> getHistoricalBarData( @QueryParam("from") Long from, @QueryParam("n") Integer noOfBars) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java index 50c82851c19..9e79904e902 100644 --- a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java +++ b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.ascendex.dto.AscendexResponse; import org.knowm.xchange.ascendex.dto.account.AscendexCashAccountBalanceDto; import org.knowm.xchange.ascendex.dto.trade.AscendexOpenOrdersResponse; @@ -95,4 +95,4 @@ AscendexResponse> getOrdersHistory( @QueryParam("symbol") String symbol, @QueryParam("executedOnly") boolean executedOnly) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java index 4346d7d7c1c..ffe30b1faba 100644 --- a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java +++ b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java @@ -1,13 +1,13 @@ package org.knowm.xchange.bankera; import java.io.IOException; -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 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 org.knowm.xchange.bankera.dto.BankeraException; import org.knowm.xchange.bankera.dto.BankeraToken; import org.knowm.xchange.bankera.dto.marketdata.BankeraMarketInfo; @@ -45,4 +45,4 @@ BankeraTradesResponse getRecentTrades(@PathParam("market") String market) @GET @Path("/general/info") BankeraMarketInfo getMarketInfo() throws BankeraException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java index aafa494b16b..a04f6f1fea8 100644 --- a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java +++ b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java @@ -2,15 +2,15 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.bankera.dto.BankeraException; import org.knowm.xchange.bankera.dto.BaseBankeraRequest; import org.knowm.xchange.bankera.dto.CreateOrderRequest; @@ -68,4 +68,4 @@ BankeraUserTrades getUserTrades( BankeraOrder getUserOrder( @HeaderParam("Authorization") String authorization, @QueryParam("orderId") String orderId) throws BankeraException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java index 59a06fa8533..e2bc7481600 100644 --- a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java +++ b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.bibox.dto.BiboxMultipleResponses; import org.knowm.xchange.bibox.dto.BiboxResponse; import org.knowm.xchange.bibox.dto.marketdata.BiboxMarket; @@ -88,4 +88,4 @@ BiboxResponse> marketAll(@QueryParam("cmd") String cmd) @POST @Path("mdata") BiboxMultipleResponses orderBooks(@FormParam(FORM_CMDS) String cmds); -} +} \ No newline at end of file diff --git a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java index ce59511e86e..324ee3d149b 100644 --- a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java +++ b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bibox; -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 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 org.knowm.xchange.bibox.dto.BiboxMultipleResponses; import org.knowm.xchange.bibox.dto.BiboxPagedResponses; import org.knowm.xchange.bibox.dto.BiboxSingleResponse; @@ -128,4 +128,4 @@ BiboxMultipleResponses cancelTrades( @FormParam(FORM_CMDS) String cmds, @FormParam(FORM_APIKEY) String apiKey, @FormParam(FORM_SIGNATURE) ParamsDigest signature); -} +} \ No newline at end of file diff --git a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java index 4348d7bf35a..0fda990d3c6 100644 --- a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java +++ b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java @@ -1,7 +1,7 @@ package org.knowm.xchange.bibox.service; import java.io.UnsupportedEncodingException; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.bibox.BiboxAuthenticated; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; @@ -37,4 +37,4 @@ public String digestParams(RestInvocation restInvocation) { throw new RuntimeException(e1.getMessage()); } } -} +} \ No newline at end of file diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java index f3524852b1d..4bfb59fbba7 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.binance.dto.BinanceException; import org.knowm.xchange.binance.dto.marketdata.BinanceAggTrades; import org.knowm.xchange.binance.dto.marketdata.BinanceOrderbook; @@ -181,4 +181,4 @@ BinancePrice tickerPrice(@QueryParam("symbol") String symbol) @GET @Path("api/v3/ticker/bookTicker") List tickerAllBookTickers() throws IOException, BinanceException; -} +} \ No newline at end of file diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java index 59765319124..ddf4dac26c8 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java @@ -4,17 +4,17 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -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 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 org.knowm.xchange.binance.dto.BinanceException; import org.knowm.xchange.binance.dto.account.*; import org.knowm.xchange.binance.dto.trade.BinanceCancelledOrder; @@ -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; -} +} \ No newline at end of file diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java index 5c32fa8933f..74774e71757 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java @@ -8,11 +8,11 @@ import org.knowm.xchange.binance.dto.meta.BinanceSystemStatus; import org.knowm.xchange.binance.dto.meta.exchangeinfo.BinanceExchangeInfo; -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 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 java.io.IOException; import java.util.List; @@ -115,4 +115,4 @@ List fundingRates() BinanceFundingRate fundingRate( @QueryParam("symbol") String symbol) throws IOException, BinanceException; -} +} \ No newline at end of file diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java index c8179b2ae2e..30e2ccbccfa 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java @@ -7,8 +7,8 @@ import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.math.BigDecimal; import java.util.List; @@ -208,4 +208,4 @@ List cancelAllFutureOpenOrders( @QueryParam(SIGNATURE) ParamsDigest signature) throws IOException, BinanceException; -} +} \ No newline at end of file diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java index 2bcd816c980..f9119898f5e 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java @@ -4,7 +4,7 @@ import java.nio.charset.StandardCharsets; import javax.crypto.Mac; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.binance.BinanceAuthenticated; import org.knowm.xchange.service.BaseParamsDigest; import org.slf4j.Logger; @@ -59,4 +59,4 @@ public String digestParams(RestInvocation restInvocation) { String printBase64Binary = bytesToHex(mac.doFinal()); return printBase64Binary; } -} +} \ No newline at end of file diff --git a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java index d621a936287..5ee7b773a7d 100644 --- a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java +++ b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitbay; import java.io.IOException; -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 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 org.knowm.xchange.bitbay.dto.marketdata.BitbayOrderBook; import org.knowm.xchange.bitbay.dto.marketdata.BitbayTicker; import org.knowm.xchange.bitbay.dto.marketdata.BitbayTrade; @@ -37,4 +37,4 @@ BitbayTrade[] getBitbayTrades( @QueryParam("sort") String sort, @QueryParam("limit") int limit) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java index ea6a9a9c207..af5e1db7d7c 100644 --- a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java +++ b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java @@ -4,13 +4,13 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -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 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 org.knowm.xchange.bitbay.dto.BitbayBaseResponse; import org.knowm.xchange.bitbay.dto.acount.BitbayAccountInfoResponse; import org.knowm.xchange.bitbay.dto.trade.BitbayCancelResponse; @@ -117,4 +117,4 @@ List transactions( @HeaderParam("API-Hash") ParamsDigest sign, @FormParam("moment") SynchronizedValueFactory timestamp, @FormParam("market") String market); -} +} \ No newline at end of file diff --git a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java index 0b9a9adb59f..6a5faa658d0 100644 --- a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java +++ b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.UUID; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitbay.v3.dto.BitbayBalanceHistoryResponse; import org.knowm.xchange.bitbay.v3.dto.BitbayBalances; import org.knowm.xchange.bitbay.v3.dto.trade.BitbayUserTrades; @@ -48,4 +48,4 @@ BitbayBalanceHistoryResponse balanceHistory( @HeaderParam("Operation-Id") UUID operationId, @QueryParam("query") String query) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java b/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java index b2ddc809a75..035acdf4d34 100644 --- a/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java +++ b/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bitcoinaverage; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitcoinaverage.dto.marketdata.BitcoinAverageTicker; import org.knowm.xchange.bitcoinaverage.dto.marketdata.BitcoinAverageTickers; @@ -21,4 +21,4 @@ public interface BitcoinAverage { @GET @Path("indices/global/ticker/short?crypto={crypto}") BitcoinAverageTickers getShortTickers(@PathParam("crypto") String crypto) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java b/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java index 8a160842a8c..a93bf667f6b 100644 --- a/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java +++ b/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java @@ -1,10 +1,10 @@ package org.knowm.xchange.bitcoincharts; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitcoincharts.dto.marketdata.BitcoinChartsTicker; /** @author Matija Mazi */ @@ -15,4 +15,4 @@ public interface BitcoinCharts { @Path("v1/markets.json") @Produces(MediaType.APPLICATION_JSON) BitcoinChartsTicker[] getMarketData() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java b/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java index f9c321027b3..de632f7333a 100644 --- a/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java +++ b/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bitcoincore; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitcoincore.dto.BitcoinCoreException; import org.knowm.xchange.bitcoincore.dto.account.BitcoinCoreBalanceRequest; import org.knowm.xchange.bitcoincore.dto.account.BitcoinCoreBalanceResponse; @@ -25,4 +25,4 @@ BitcoinCoreBalanceResponse getBalance(BitcoinCoreBalanceRequest request) @Path("") BitcoinCoreBalanceResponse getUnconfirmedBalance(BitcoinCoreUnconfirmedBalanceRequest request) throws IOException, BitcoinCoreException; -} +} \ No newline at end of file diff --git a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java index 65647812157..daf08e6e62e 100644 --- a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java +++ b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.math.BigDecimal; -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.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitcoinde.dto.BitcoindeException; import org.knowm.xchange.bitcoinde.dto.account.BitcoindeAccountWrapper; import org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeOrderbookWrapper; @@ -84,4 +84,4 @@ BitcoindeMyOpenOrdersWrapper getOrders( @HeaderParam("X-API-NONCE") SynchronizedValueFactory nonce, @HeaderParam("X-API-SIGNATURE") ParamsDigest paramsDigest) throws BitcoindeException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java index 05fe44faa33..df3eb25efbf 100644 --- a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java +++ b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.math.BigDecimal; -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.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitcoinde.v4.dto.BitcoindeException; import org.knowm.xchange.bitcoinde.v4.dto.BitcoindeResponse; import org.knowm.xchange.bitcoinde.v4.dto.account.BitcoindeAccountLedgerWrapper; @@ -163,4 +163,4 @@ BitcoindeMyTradesWrapper getMyTrades( @QueryParam("date_end") String dateEnd, @QueryParam("page") Integer page) throws IOException, BitcoindeException; -} +} \ No newline at end of file diff --git a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java index 1ffcfb5444a..d8158cc5573 100644 --- a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java +++ b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Map; -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 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 org.knowm.xchange.bitcointoyou.dto.marketdata.BitcointoyouMarketData; import org.knowm.xchange.bitcointoyou.dto.marketdata.BitcointoyouOrderBook; import org.knowm.xchange.bitcointoyou.dto.marketdata.BitcointoyouPublicTrade; @@ -62,4 +62,4 @@ BitcointoyouPublicTrade[] getTrades( @QueryParam("timestamp") Long tradeTimestamp, @QueryParam("tid") Long minTradeId) throws BitcointoyouException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java index 5ee65bd1e30..f482aa6ba28 100644 --- a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java +++ b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashMap; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitcointoyou.dto.account.BitcointoyouBalance; import org.knowm.xchange.bitcointoyou.dto.trade.BitcointoyouOrderResponse; import si.mazi.rescu.ParamsDigest; @@ -87,4 +87,4 @@ HashMap deleteOrder( @HeaderParam("signature") ParamsDigest signature, @QueryParam("id") String orderNumber) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java index 814ac2d7344..98c362773bb 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.List; import java.util.Set; -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 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 org.knowm.xchange.bitfinex.v1.dto.BitfinexExceptionV1; import org.knowm.xchange.bitfinex.v1.dto.marketdata.BitfinexDepth; import org.knowm.xchange.bitfinex.v1.dto.marketdata.BitfinexLend; @@ -67,4 +67,4 @@ BitfinexLend[] getLends( @GET @Path("symbols_details") List getSymbolsDetails() throws IOException, BitfinexExceptionV1; -} +} \ No newline at end of file diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java index feb322f413f..dab6fc3696f 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitfinex.v1; import java.io.IOException; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.bitfinex.v1.dto.BitfinexExceptionV1; import org.knowm.xchange.bitfinex.v1.dto.account.BitfinexAccountFeesResponse; import org.knowm.xchange.bitfinex.v1.dto.account.BitfinexBalanceHistoryRequest; @@ -291,4 +291,4 @@ BitfinexBalanceHistoryResponse[] balanceHistory( @HeaderParam("X-BFX-SIGNATURE") ParamsDigest signature, BitfinexBalanceHistoryRequest balanceHistoryRequest) throws IOException, BitfinexExceptionV1; -} +} \ No newline at end of file diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java index 724b1c0d35b..e7d2e31b614 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java @@ -3,12 +3,12 @@ import com.fasterxml.jackson.databind.node.ArrayNode; import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.bitfinex.v2.dto.BitfinexExceptionV2; import org.knowm.xchange.bitfinex.v2.dto.marketdata.BitfinexCandle; import org.knowm.xchange.bitfinex.v2.dto.marketdata.BitfinexFundingOrder; @@ -119,4 +119,4 @@ List fundingBook( List fundingBookRaw( @PathParam("symbol") String symbol, @QueryParam("len") Integer len) throws IOException, BitfinexExceptionV2; -} +} \ No newline at end of file diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java index d65361d2713..b73fed3a62b 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.bitfinex.v2.dto.BitfinexExceptionV2; import org.knowm.xchange.bitfinex.v2.dto.EmptyRequest; import org.knowm.xchange.bitfinex.v2.dto.account.LedgerEntry; @@ -181,4 +181,4 @@ List> updateCollateralDerivativePosition( @HeaderParam(BFX_SIGNATURE) ParamsDigest signature, UpdateCollateralDerivativePositionRequest req) throws IOException, BitfinexExceptionV2; -} +} \ No newline at end of file diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java index 0bca8834897..0b91aca4ed3 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java @@ -2,7 +2,7 @@ import java.io.UnsupportedEncodingException; import java.net.URLDecoder; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import lombok.extern.slf4j.Slf4j; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; @@ -57,4 +57,4 @@ public String digestParams(RestInvocation i) { throw new ExchangeException("Could not sign the request", e); } } -} +} \ No newline at end of file diff --git a/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java b/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java index 0c50e7d0a13..0527a223de6 100755 --- a/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java +++ b/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitflyer.dto.BitflyerException; import org.knowm.xchange.bitflyer.dto.account.BitflyerAddress; import org.knowm.xchange.bitflyer.dto.account.BitflyerBalance; @@ -225,4 +225,4 @@ BitflyerChildOrderAcceptance sendChildOrder( @HeaderParam(ACCESS_SIGN) ParamsDigest paramsDigest, BitflyerChildOrder parentOrder) throws IOException, BitflyerException; -} +} \ No newline at end of file diff --git a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java index d1f6dd4343c..b12b21433b7 100644 --- a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java +++ b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bithumb.dto.BithumbResponse; import org.knowm.xchange.bithumb.dto.marketdata.BithumbOrderbook; import org.knowm.xchange.bithumb.dto.marketdata.BithumbOrderbookAll; @@ -40,4 +40,4 @@ BithumbResponse orderbook(@PathParam("currency") String curren @Path("transaction_history/{currency}") BithumbResponse> transactionHistory( @PathParam("currency") String currency) throws IOException, BithumbException; -} +} \ No newline at end of file diff --git a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java index 53ae95fd69f..baa1484dd67 100644 --- a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java +++ b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -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 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 org.knowm.xchange.bithumb.dto.BithumbResponse; import org.knowm.xchange.bithumb.dto.account.BithumbAccount; import org.knowm.xchange.bithumb.dto.account.BithumbBalance; @@ -186,4 +186,4 @@ BithumbTradeResponse marketSell( @FormParam("order_currency") String order_currency, @FormParam("payment_currency") String payment_currency) throws BithumbException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java index df091466165..84a03fcf25c 100644 --- a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java +++ b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java @@ -9,7 +9,7 @@ import java.util.Map; import java.util.stream.Collectors; import javax.crypto.Mac; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.apache.commons.lang3.StringUtils; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; @@ -68,4 +68,4 @@ private String urlEncode(String path) { throw new IllegalStateException(e.getMessage(), e); } } -} +} \ No newline at end of file diff --git a/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java b/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java index 9907199cf82..8a6a84457c2 100644 --- a/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java +++ b/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java @@ -8,7 +8,7 @@ import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.junit.Before; import org.junit.Test; import si.mazi.rescu.Params; @@ -46,4 +46,4 @@ public void testDigestParams() { .isEqualTo( "MTkzMGVmY2QzZGUzZWQ1ZmRkZmVhMGFhMmU2MjNkMThlYmQ2NTkyOTU1ZTcxMTc2N2NjZTY0ODdhOTJmOWRhMTNjZTYxMWVlYTJlOTEzOTBlYzlmMDU1MDVkMTk5OGY3YjUyMDY1NzVhZThlYWUxMmJmNjIxNjlkNTY2YmM0Nzc="); } -} +} \ No newline at end of file diff --git a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java index 308f3e16faf..3efed16227e 100755 --- a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java +++ b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.util.Date; import javax.annotation.Nullable; -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 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 org.knowm.xchange.bitmex.dto.account.BitmexTickerList; import org.knowm.xchange.bitmex.dto.marketdata.BitmexFundingList; import org.knowm.xchange.bitmex.dto.marketdata.BitmexKlineList; @@ -77,4 +77,4 @@ BitmexFundingList getFundingHistory( @Nullable @QueryParam("startTime") Date startTime, @Nullable @QueryParam("endTime") Date endTime) throws IOException, BitmexException; -} +} \ No newline at end of file diff --git a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java index 98dc1f79ebe..00921ee76e1 100644 --- a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java +++ b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java @@ -4,17 +4,17 @@ import java.math.BigDecimal; import java.util.Date; import javax.annotation.Nullable; -import javax.ws.rs.Consumes; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitmex.dto.account.BitmexAccount; import org.knowm.xchange.bitmex.dto.account.BitmexMarginAccount; import org.knowm.xchange.bitmex.dto.account.BitmexMarginAccountList; @@ -443,4 +443,4 @@ BitmexWalletTransaction withdrawFunds( @FormParam("amount") BigDecimal amount, @FormParam("address") String address) throws IOException, BitmexException; -} +} \ No newline at end of file diff --git a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java index b525393ac21..52881c81c16 100755 --- a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java +++ b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java @@ -1,7 +1,7 @@ package org.knowm.xchange.bitmex.service; import java.util.Base64; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.RestInvocation; @@ -52,4 +52,4 @@ public String digestParams(RestInvocation restInvocation) { public String digestString(String payload) { return DigestUtils.bytesToHex(getMac().doFinal(payload.getBytes())).toLowerCase(); } -} +} \ No newline at end of file diff --git a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java index b1c415bc869..b1ab22d6870 100644 --- a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java +++ b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitso; import java.io.IOException; -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 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 org.knowm.xchange.bitso.dto.BitsoException; import org.knowm.xchange.bitso.dto.marketdata.BitsoOrderBook; import org.knowm.xchange.bitso.dto.marketdata.BitsoTicker; @@ -39,4 +39,4 @@ public interface Bitso { @Path("transactions/") BitsoTransaction[] getTransactions(@QueryParam("time") String time) throws BitsoException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java index 76e2bd1b269..ad2465a0cc3 100644 --- a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java +++ b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.math.BigDecimal; -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 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 org.knowm.xchange.bitso.dto.BitsoException; import org.knowm.xchange.bitso.dto.account.BitsoBalance; import org.knowm.xchange.bitso.dto.account.BitsoDepositAddress; @@ -117,4 +117,4 @@ String withdrawToRipple( @FormParam("currency") String currency, @FormParam("address") String rippleAddress) throws BitsoException, IOException; -} +} \ No newline at end of file diff --git a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java index 07dca72ccb2..e063410949e 100644 --- a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java +++ b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -31,4 +31,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} +} \ No newline at end of file diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java index 4ed2755c0cc..9f6b9c56442 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -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.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitstamp.dto.BitstampException; import org.knowm.xchange.bitstamp.dto.BitstampTransferBalanceResponse; import org.knowm.xchange.bitstamp.dto.account.BitstampBalance; @@ -1174,4 +1174,4 @@ enum BankCurrency { ZMW, ZWL } -} +} \ No newline at end of file diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java index ff6644b1f62..62b57d6d421 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.List; import java.util.Objects; -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 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 org.knowm.xchange.bitstamp.dto.BitstampException; import org.knowm.xchange.bitstamp.dto.marketdata.BitstampOrderBook; import org.knowm.xchange.bitstamp.dto.marketdata.BitstampPairInfo; @@ -87,4 +87,4 @@ public String toString() { pair.counter.getCurrencyCode().toLowerCase()); } } -} +} \ No newline at end of file diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java index 8486eaa36a3..82135ccdcde 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -43,4 +43,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} +} \ No newline at end of file diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java index 7c81d4e41dc..156c18ae119 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -58,4 +58,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} +} \ No newline at end of file diff --git a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java index dd13a0bfde0..faf7ba5f1f6 100644 --- a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java +++ b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.bittrex.dto.BittrexException; import org.knowm.xchange.bittrex.dto.marketdata.BittrexCurrency; import org.knowm.xchange.bittrex.dto.marketdata.BittrexDepth; @@ -56,4 +56,4 @@ List getTrades(@PathParam("marketSymbol") String marketSymbol) @Path("markets/{marketSymbol}/ticker") BittrexTicker getTicker(@PathParam("marketSymbol") String marketSymbol) throws IOException, BittrexException; -} +} \ No newline at end of file diff --git a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java index 5b64a605415..d309c09d444 100644 --- a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java +++ b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java @@ -3,16 +3,16 @@ import java.io.IOException; import java.util.Date; import java.util.List; -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 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 org.knowm.xchange.bittrex.dto.BittrexException; import org.knowm.xchange.bittrex.dto.account.BittrexAccountVolume; import org.knowm.xchange.bittrex.dto.account.BittrexAddress; @@ -202,4 +202,4 @@ BittrexWithdrawal createNewWithdrawal( @HeaderParam("Api-Signature") ParamsDigest signature, BittrexNewWithdrawal newWithdrawal) throws IOException, BittrexException; -} +} \ No newline at end of file diff --git a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java index 55d377b0449..e9494e892ba 100644 --- a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java +++ b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java @@ -5,7 +5,7 @@ import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.RestInvocation; @@ -70,4 +70,4 @@ static String urlDecode(String data) { throw new RuntimeException("Illegal encoding, fix the code.", e); // should not happen } } -} +} \ No newline at end of file diff --git a/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java b/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java index d7391e8108e..b6f3750192a 100644 --- a/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java +++ b/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bity; -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.core.MediaType; +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.core.MediaType; import org.knowm.xchange.bity.dto.BityException; import org.knowm.xchange.bity.dto.BityResponse; import org.knowm.xchange.bity.dto.account.BityToken; @@ -32,4 +32,4 @@ BityToken createToken( @FormParam("username") String username, @FormParam("password") String password) throws BityException; -} +} \ No newline at end of file diff --git a/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java b/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java index 44b33c78cb0..42c584950d8 100644 --- a/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java +++ b/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bity; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bity.dto.BityException; import org.knowm.xchange.bity.dto.BityResponse; import org.knowm.xchange.bity.dto.account.BityOrder; @@ -22,4 +22,4 @@ BityResponse getOrders( @QueryParam("order_by") String orderBy, @HeaderParam("Authorization") String authorization) throws BityException; -} +} \ No newline at end of file diff --git a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java index 608e89737e4..335c10e9035 100644 --- a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java +++ b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -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.QueryParam; -import javax.ws.rs.core.MediaType; +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.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bitz.dto.account.result.BitZUserAssetsResult; import org.knowm.xchange.bitz.dto.marketdata.result.BitZCurrencyCoinRateResult; import org.knowm.xchange.bitz.dto.marketdata.result.BitZCurrencyRateResult; @@ -176,4 +176,4 @@ BitZUserAssetsResult getUserAssets( @Path("kline?coin={symbol}&type={type}") BitZKlineResult getKlineResult(@PathParam("symbol") String symbol, @PathParam("type") String type) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java index 1bd3426e614..ccbe51d3ab3 100644 --- a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java +++ b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitz; import java.math.BigDecimal; -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 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 org.knowm.xchange.bitz.dto.trade.result.BitZOpenOrderResult; import org.knowm.xchange.bitz.dto.trade.result.BitZTradeAddResult; import org.knowm.xchange.bitz.dto.trade.result.BitZTradeCancelResult; @@ -46,4 +46,4 @@ BitZOpenOrderResult openOrders( @FormParam("nonce") String nonce, @FormParam("coin") String coin, @FormParam("sign") String signed); -} +} \ No newline at end of file diff --git a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java index bd7e6da5425..3f09169ad07 100644 --- a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java +++ b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java @@ -4,7 +4,7 @@ import java.security.NoSuchAlgorithmException; import java.util.Map; import java.util.stream.Collectors; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -47,4 +47,4 @@ public String digestParams(RestInvocation restInvocation) { // TODO: Determine Charceter Encoding return String.valueOf(md5.digest(unsigned)); } -} +} \ No newline at end of file diff --git a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java index 6c7b7cfe2b1..4de604a638e 100644 --- a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java +++ b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bl3p; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bl3p.dto.marketdata.Bl3pOrderBook; import org.knowm.xchange.bl3p.dto.marketdata.Bl3pTicker; import org.knowm.xchange.bl3p.dto.marketdata.Bl3pTrades; @@ -25,4 +25,4 @@ public interface Bl3p { @GET @Path("/{currencyPair}/trades") Bl3pTrades getTrades(@PathParam("currencyPair") String currency) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java index e90b07dd3ea..cc94ae961f4 100644 --- a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java +++ b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java @@ -1,14 +1,14 @@ package org.knowm.xchange.bl3p; import java.io.IOException; -import javax.ws.rs.FormParam; -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.core.MediaType; +import jakarta.ws.rs.FormParam; +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.core.MediaType; import org.knowm.xchange.bl3p.dto.Bl3pUserTransactions; import org.knowm.xchange.bl3p.dto.account.Bl3pAccountInfo; import org.knowm.xchange.bl3p.dto.account.Bl3pNewDepositAddress; @@ -236,4 +236,4 @@ Bl3pWithdrawFunds withdrawEuros( @FormParam("account_id") String accountId, @FormParam("account_name") String accountName, @FormParam("amount_int") long amount); -} +} \ No newline at end of file diff --git a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java index 8cd10bcd043..8be323161b3 100644 --- a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java +++ b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bleutrade; import java.io.IOException; -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 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 org.knowm.xchange.bleutrade.dto.marketdata.BleutradeCurrenciesReturn; import org.knowm.xchange.bleutrade.dto.marketdata.BleutradeMarketHistoryReturn; import org.knowm.xchange.bleutrade.dto.marketdata.BleutradeMarketsReturn; @@ -44,4 +44,4 @@ BleutradeOrderBookReturn getBleutradeOrderBook( @Path("public/getmarkethistory") BleutradeMarketHistoryReturn getBleutradeMarketHistory( @QueryParam("market") String market, @QueryParam("count") int count) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java index 6e206cae2f4..e1758c6eb7c 100644 --- a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java +++ b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java @@ -4,12 +4,12 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.bleutrade.dto.account.BleutradeBalanceReturn; import org.knowm.xchange.bleutrade.dto.account.BleutradeBalancesReturn; import org.knowm.xchange.bleutrade.dto.account.BleutradeDepositAddressReturn; @@ -140,4 +140,4 @@ BleutradeResponse> withdrawHistory( @HeaderParam("apisign") ParamsDigest signature, @QueryParam("nonce") SynchronizedValueFactory nonce) throws IOException, BleutradeException; -} +} \ No newline at end of file diff --git a/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java b/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java index 6d7c6c6635d..36d3047d8f3 100644 --- a/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java +++ b/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java @@ -1,6 +1,6 @@ package org.knowm.xchange.bleutrade.service; -import static javax.ws.rs.core.MediaType.TEXT_PLAIN; +import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN; import static org.assertj.core.api.Assertions.assertThat; import java.lang.annotation.Annotation; @@ -55,4 +55,4 @@ public void shouldEncodeRestInvocation() throws Exception { // then assertThat(encoded).isEqualTo(expected); } -} +} \ No newline at end of file diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java index e563af0f850..ca69135c72b 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java @@ -4,11 +4,11 @@ import org.knowm.xchange.blockchain.dto.account.BlockchainSymbol; import org.knowm.xchange.blockchain.dto.marketdata.BlockchainOrderBook; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.util.Map; @@ -40,4 +40,4 @@ public interface Blockchain { @Path("/l3/{symbol}") @GET BlockchainOrderBook getOrderBookL3(@PathParam("symbol") String symbol) throws IOException, BlockchainException; -} +} \ No newline at end of file diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java index 5103ad30a97..45b19bbee9a 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java @@ -5,8 +5,8 @@ import org.knowm.xchange.blockchain.dto.trade.BlockchainOrder; import org.knowm.xchange.blockchain.params.BlockchainWithdrawalParams; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.util.List; import java.util.Map; @@ -169,4 +169,4 @@ List getTrades(@QueryParam("symbol") String symbol, @QueryParam("to") Long endTime, @QueryParam("limit") Integer limit) throws IOException, BlockchainException; -} +} \ No newline at end of file diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java index b00f1dcef6b..2eb28b87236 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java @@ -13,7 +13,7 @@ import org.knowm.xchange.exceptions.NotYetImplementedForExchangeException; import si.mazi.rescu.SynchronizedValueFactory; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import java.io.IOException; import java.util.Map; @@ -73,4 +73,4 @@ public ResilienceRegistries getResilienceRegistries() { } return RESILIENCE_REGISTRIES; } -} +} \ No newline at end of file diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java index 8a8629b2df0..6f17998e6f5 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java @@ -5,7 +5,7 @@ import org.knowm.xchange.client.ResilienceRegistries; import si.mazi.rescu.ClientConfig; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import java.time.Duration; import static org.knowm.xchange.blockchain.BlockchainConstants.ENDPOINT_RATE_LIMIT; @@ -25,4 +25,4 @@ public static ResilienceRegistries getResilienceRegistries(){ ); return registries; } -} +} \ No newline at end of file diff --git a/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java b/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java index 3bb78b0348e..30d4f39f9bb 100644 --- a/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java +++ b/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.btcc.dto.marketdata.BTCCTicker; @Path("data/pro/") @@ -16,4 +16,4 @@ public interface BTCC { @GET @Path("ticker?symbol={symbol}") Map getMarketTicker(@PathParam("symbol") String symbol) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java index 3244878a71e..07ecbbe5514 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.btcmarkets.dto.marketdata.BTCMarketsOrderBook; import org.knowm.xchange.btcmarkets.dto.marketdata.BTCMarketsTicker; import org.knowm.xchange.btcmarkets.dto.v3.marketdata.BTCMarketsTrade; @@ -40,4 +40,4 @@ List getTrades( @QueryParam("limit") Integer limit, @PathParam("marketId") String marketId) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java index d878c52993d..2e715d04d02 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -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.Produces; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.btcmarkets.dto.BTCMarketsException; import org.knowm.xchange.btcmarkets.dto.account.BTCMarketsBalance; import org.knowm.xchange.btcmarkets.dto.account.BTCMarketsFundtransferHistoryResponse; @@ -81,4 +81,4 @@ BTCMarketsFundtransferHistoryResponse fundtransferHistory( @HeaderParam("timestamp") SynchronizedValueFactory nonceFactory, @HeaderParam("signature") BTCMarketsDigest signer) throws BTCMarketsException, IOException; -} +} \ No newline at end of file diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java index c455eef8bed..4a13e060f82 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.btcmarkets.dto.v3.BTCMarketsExceptionV3; import org.knowm.xchange.btcmarkets.dto.v3.account.BTCMarketsAddressesResponse; import org.knowm.xchange.btcmarkets.dto.v3.account.BTCMarketsTradingFeesResponse; @@ -61,4 +61,4 @@ BTCMarketsTradingFeesResponse tradingFees( @HeaderParam("BM-AUTH-TIMESTAMP") SynchronizedValueFactory nonceFactory, @HeaderParam("BM-AUTH-SIGNATURE") BTCMarketsDigestV3 signer) throws BTCMarketsExceptionV3, IOException; -} +} \ No newline at end of file diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java index 114106ebbe4..1da6c06477d 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java @@ -2,7 +2,7 @@ import java.util.Base64; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -40,4 +40,4 @@ String digest(String url, String nonce, String requestBody, String queryString) return Base64.getEncoder().encodeToString(mac.doFinal()); } -} +} \ No newline at end of file diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java index e9270c5f716..357b15b0fac 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java @@ -2,7 +2,7 @@ import java.util.Base64; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -28,4 +28,4 @@ public String sign(String stringToSign) { mac.update(stringToSign.getBytes()); return Base64.getEncoder().encodeToString(mac.doFinal()); } -} +} \ No newline at end of file diff --git a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java index 86740aa29f1..800b95c261e 100644 --- a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java +++ b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOHLC; import org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOrderBook; import org.knowm.xchange.btcturk.dto.marketdata.BTCTurkTicker; @@ -47,4 +47,4 @@ List getTrades( List getOHLC( @QueryParam("pairSymbol") String pairSymbol, @QueryParam("last") Integer last) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java index 449f187714f..a94490a8227 100644 --- a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java +++ b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java @@ -2,15 +2,15 @@ import java.io.IOException; import java.util.List; -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.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.btcturk.dto.account.BTCTurkAccountBalance; import org.knowm.xchange.btcturk.dto.account.BTCTurkDepositRequestResult; import org.knowm.xchange.btcturk.dto.account.BTCTurkUserTransactions; @@ -290,4 +290,4 @@ Boolean cancelWithdrawalRequest( @HeaderParam("X-Stamp") SynchronizedValueFactory stamp, @HeaderParam("X-Signature") ParamsDigest signature) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java index e385ab18df8..cfcb9778c52 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.bybit.dto.BybitResult; import org.knowm.xchange.bybit.dto.marketdata.BybitSymbol; import org.knowm.xchange.bybit.dto.marketdata.BybitTicker; @@ -30,4 +30,4 @@ public interface Bybit { @Path("/v2/public/symbols") BybitResult> getSymbols() throws IOException, BybitException; -} +} \ No newline at end of file diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java index 43eb58c5dc5..ffadff217ca 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java @@ -8,8 +8,8 @@ import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; @Path("/spot/v1") @@ -46,4 +46,4 @@ BybitResult placeOrder( ) throws IOException, BybitException; -} +} \ No newline at end of file diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java index e30a3fa8303..d8f1659080a 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java @@ -7,8 +7,8 @@ import si.mazi.rescu.RestInvocation; import javax.crypto.Mac; -import javax.ws.rs.FormParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.QueryParam; import java.nio.charset.StandardCharsets; import java.util.Map; import java.util.TreeMap; @@ -50,4 +50,4 @@ private Map getInputParams(RestInvocation restInvocation) { throw new NotYetImplementedForExchangeException("Only GET and POST are supported in digest"); } -} +} \ No newline at end of file diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java index 8dda42183f4..23059b7d133 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.knowm.xchange.Exchange; @@ -39,4 +39,4 @@ public void testSymbolLoading() throws IOException { assertThat(bybitExchange.getExchangeMetaData().getInstruments()).hasSize(2); } -} +} \ No newline at end of file diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java index 2c25b60cfd9..5ef8e44d5f1 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.bybit.dto.BybitResult; @@ -79,4 +79,4 @@ public void testGetWalletBalances() throws IOException { assertThat(balances.get(1).getCoinName()).isEqualTo("USDT"); } -} +} \ No newline at end of file diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java index 7183682044e..edc48a9a5b3 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.math.BigDecimal; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.Currency; @@ -70,4 +70,4 @@ public void testGetWalletBalances() throws IOException { new BigDecimal("61.50059688096")); } -} +} \ No newline at end of file diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java index f890944379d..8f7ff99b95c 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java @@ -9,7 +9,7 @@ import java.math.BigDecimal; import java.nio.charset.StandardCharsets; import java.util.List; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.knowm.xchange.Exchange; @@ -59,4 +59,4 @@ public void testGetSymbols() throws Exception { } -} +} \ No newline at end of file diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java index b7d116c0aa0..9dbe3d1283a 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java @@ -9,7 +9,7 @@ import java.math.BigDecimal; import java.nio.charset.StandardCharsets; import java.time.Instant; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.knowm.xchange.Exchange; diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java index 03e032a6607..7cf4a5f6d58 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.bybit.dto.BybitResult; @@ -170,4 +170,4 @@ public void testPlaceBybitOrder() throws IOException { System.out.println(order); } -} +} \ No newline at end of file diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java index 274d356df67..72255344a0c 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java @@ -10,7 +10,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Collection; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.CurrencyPair; @@ -130,4 +130,4 @@ public void testPlaceBybitOrder() throws IOException { } -} +} \ No newline at end of file diff --git a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java index 7082f396fde..ce9f72bf90e 100644 --- a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java +++ b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Objects; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.ccex.dto.marketdata.CCEXGetorderbook; import org.knowm.xchange.ccex.dto.marketdata.CCEXMarkets; import org.knowm.xchange.ccex.dto.marketdata.CCEXTrades; @@ -75,4 +75,4 @@ public String toString() { pair.base.getCurrencyCode().toLowerCase(), pair.counter.getCurrencyCode().toLowerCase()); } } -} +} \ No newline at end of file diff --git a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java index d1ac87e0753..923307de202 100644 --- a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java +++ b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.ccex; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.ccex.dto.account.CCEXBalanceResponse; import org.knowm.xchange.ccex.dto.account.CCEXBalancesResponse; import org.knowm.xchange.ccex.dto.trade.CCEXBuySellLimitResponse; @@ -87,4 +87,4 @@ CCEXBuySellLimitResponse selllimit( @PathParam("quantity") String quantity, @PathParam("rate") String rate) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java index 833ee248bbf..b4a03574d4c 100644 --- a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java +++ b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java @@ -1,14 +1,14 @@ package org.knowm.xchange.cexio; import java.io.IOException; -import javax.ws.rs.DefaultValue; -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 jakarta.ws.rs.DefaultValue; +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 org.knowm.xchange.cexio.dto.marketdata.CexIOCurrencyLimits; import org.knowm.xchange.cexio.dto.marketdata.CexIODepth; import org.knowm.xchange.cexio.dto.marketdata.CexIOTicker; @@ -71,4 +71,4 @@ CexIOTrade[] getTradesSince( @GET @Path("currency_limits") CexIOCurrencyLimits getCurrencyLimits() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java index 2b5bb263e08..13e6ae3d936 100644 --- a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java +++ b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.util.List; import java.util.Map; -import javax.ws.rs.Consumes; -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.core.MediaType; +import jakarta.ws.rs.Consumes; +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.core.MediaType; import org.knowm.xchange.cexio.dto.ArchivedOrdersRequest; import org.knowm.xchange.cexio.dto.CexIOGetPositionRequest; import org.knowm.xchange.cexio.dto.CexIOOpenPositionRequest; @@ -172,4 +172,4 @@ CexioOpenPositionsResponse getOpenPositions( @PathParam("symbol2") String symbol2, CexIORequest emptyRequest) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java index 224c59e6158..a59bc7ac418 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java @@ -4,13 +4,13 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.coinbase.dto.CoinbaseException; import org.knowm.xchange.coinbase.dto.account.CoinbaseToken; import org.knowm.xchange.coinbase.dto.account.CoinbaseUser; @@ -62,4 +62,4 @@ String getHistoricalSpotRates(@QueryParam("page") Integer page) @POST @Path("tokens") CoinbaseToken createToken() throws IOException, CoinbaseException; -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java index 829ee3e5925..c16c92c3a54 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java @@ -1,17 +1,17 @@ package org.knowm.xchange.coinbase; import java.io.IOException; -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.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 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.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 org.knowm.xchange.coinbase.dto.CoinbaseBaseResponse; import org.knowm.xchange.coinbase.dto.CoinbaseException; import org.knowm.xchange.coinbase.dto.account.CoinbaseAccountChanges; @@ -311,4 +311,4 @@ CoinbaseTransfer sell( @HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer, @HeaderParam("ACCESS_NONCE") SynchronizedValueFactory nonce) throws IOException, CoinbaseException; -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java index 233fde48010..19139c465b4 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -32,4 +32,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())); } -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java index f0097c22787..0ad41fee33c 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java @@ -1,13 +1,13 @@ package org.knowm.xchange.coinbase.v2; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -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 jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +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 org.knowm.xchange.coinbase.v2.dto.CoinbaseException; import org.knowm.xchange.coinbase.v2.dto.marketdata.CoinbaseCurrencyData; import org.knowm.xchange.coinbase.v2.dto.marketdata.CoinbaseExchangeRateData; @@ -71,4 +71,4 @@ CoinbasePriceData getHistoricalSpotRate( @Path("time") CoinbaseTimeData getTime(@HeaderParam(CB_VERSION) String apiVersion) throws IOException, CoinbaseException; -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java index 97e1fe95b4f..e55b09a396e 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Map; -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 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 org.knowm.xchange.coinbase.v2.dto.CoinbaseException; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseAccountData; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseAccountsData; @@ -171,4 +171,4 @@ CoinbaseSellData sell( @PathParam("account") String accountId, Object payload) throws IOException, CoinbaseException; -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java index dc0cfc9d7ef..37d41bc46d6 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java @@ -2,7 +2,7 @@ import static org.knowm.xchange.coinbase.v2.CoinbaseAuthenticated.CB_ACCESS_TIMESTAMP; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.RestInvocation; @@ -27,4 +27,4 @@ public String digestParams(RestInvocation restInvocation) { return DigestUtils.bytesToHex(getMac().doFinal(message.getBytes())); } -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java index d02140d512f..6e826c76824 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java @@ -8,7 +8,7 @@ import java.util.List; import java.util.Map; import java.util.UUID; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.Exchange; import org.knowm.xchange.coinbase.v2.Coinbase; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseAccountData.CoinbaseAccount; @@ -158,4 +158,4 @@ public static class CreateCoinbaseAccountPayload { this.name = name; } } -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java index dc0a4f427ae..69d87a28c69 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java @@ -5,7 +5,7 @@ import java.nio.charset.StandardCharsets; import java.util.List; import javax.crypto.Mac; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.Exchange; import org.knowm.xchange.client.ExchangeRestProxyBuilder; import org.knowm.xchange.coinbase.service.CoinbaseDigest; @@ -93,4 +93,4 @@ public enum HttpMethod { GET, POST } -} +} \ No newline at end of file diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java index aea76fc1e3a..bda09d8ad18 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.math.BigDecimal; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.Exchange; import org.knowm.xchange.coinbase.v2.Coinbase; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseBuyData.CoinbaseBuy; @@ -130,4 +130,4 @@ abstract class AbstractPayload { this.quote = quote; } } -} +} \ No newline at end of file diff --git a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java index fd4f8e08f3f..a6b4b430e97 100644 --- a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java +++ b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java @@ -6,16 +6,16 @@ import java.util.Date; import java.util.List; import java.util.Map; -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 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 org.knowm.xchange.coinbasepro.dto.CoinbasePagedResponse; import org.knowm.xchange.coinbasepro.dto.CoinbaseProException; import org.knowm.xchange.coinbasepro.dto.CoinbaseProTrades; @@ -384,4 +384,4 @@ public enum Format { csv } } -} +} \ No newline at end of file diff --git a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java index 9474e5c6bbd..1e78b327e44 100644 --- a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java +++ b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java @@ -1,6 +1,6 @@ package org.knowm.xchange.coinbasepro; -import static javax.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; +import static jakarta.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; @@ -40,4 +40,4 @@ public static ResilienceRegistries createRegistries() { return registries; } -} +} \ No newline at end of file diff --git a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java index 69933f63dca..6334b98ff27 100644 --- a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java +++ b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java @@ -3,7 +3,7 @@ import java.nio.charset.StandardCharsets; import java.util.Base64; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -41,4 +41,4 @@ public String digestParams(RestInvocation restInvocation) { return Base64.getEncoder().encodeToString(mac256.doFinal()); } -} +} \ No newline at end of file diff --git a/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java b/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java index 233b6adbbb2..e7da198cec1 100644 --- a/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java +++ b/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coincheck; import java.io.IOException; -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 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 org.knowm.xchange.coincheck.dto.CoincheckException; import org.knowm.xchange.coincheck.dto.marketdata.CoincheckOrderBook; import org.knowm.xchange.coincheck.dto.marketdata.CoincheckPair; @@ -34,4 +34,4 @@ CoincheckTradesContainer getTrades( @QueryParam("starting_after") Long startingAfter, @QueryParam("ending_before") Long endingBefore) throws IOException, CoincheckException; -} +} \ No newline at end of file diff --git a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java index da988a0b259..0b01a41a6d3 100644 --- a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java +++ b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coindeal; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coindeal.dto.CoindealException; import org.knowm.xchange.coindeal.dto.marketdata.CoindealOrderBook; @@ -17,4 +17,4 @@ public interface Coindeal { @Path("/public/orderbook/{currencyPair}") CoindealOrderBook getOrderBook(@PathParam("currencyPair") String currencyPair) throws IOException, CoindealException; -} +} \ No newline at end of file diff --git a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java index e08aca7bb23..ffd7306919a 100644 --- a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java +++ b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -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.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coindeal.dto.account.CoindealBalance; import org.knowm.xchange.coindeal.dto.trade.CoindealOrder; import org.knowm.xchange.coindeal.dto.trade.CoindealTradeHistory; @@ -73,4 +73,4 @@ CoindealOrder getOrderById( @HeaderParam(HEADER_AUTH) ParamsDigest credentials, @PathParam("clientOrderId") String cliendOrderId) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java index 9448b98e391..bc016f82e2a 100644 --- a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java +++ b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.coindirect.dto.CoindirectException; import org.knowm.xchange.coindirect.dto.marketdata.CoindirectMarket; import org.knowm.xchange.coindirect.dto.marketdata.CoindirectOrderbook; @@ -40,4 +40,4 @@ CoindirectTicker getHistoricalExchangeData( @Path("api/v1/exchange/market") List listExchangeMarkets(@QueryParam("max") long max) throws IOException, CoindirectException; -} +} \ No newline at end of file diff --git a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java index 18cac55b321..67dfab2296f 100644 --- a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java +++ b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.coindirect.dto.CoindirectException; import org.knowm.xchange.coindirect.dto.account.CoindirectAccountChannel; import org.knowm.xchange.coindirect.dto.account.CoindirectWallet; @@ -61,4 +61,4 @@ CoindirectOrder getExchangeOrder( @Path("api/account/channel") CoindirectAccountChannel getAccountChannel(@HeaderParam("Authorization") ParamsDigest signer) throws IOException, CoindirectException; -} +} \ No newline at end of file diff --git a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java index 3dc82b2e3cb..008cc4c4835 100644 --- a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java +++ b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coinegg; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coinegg.dto.marketdata.CoinEggOrders; import org.knowm.xchange.coinegg.dto.marketdata.CoinEggTicker; import org.knowm.xchange.coinegg.dto.marketdata.CoinEggTrade; @@ -26,4 +26,4 @@ public interface CoinEgg { @Path("depth/region/{region}?coin={symbol}") CoinEggOrders getOrders(@PathParam("region") String region, @PathParam("symbol") String symbol) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java index 2be63facb9e..3e1e1194d76 100644 --- a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java +++ b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.math.BigDecimal; -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 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 org.knowm.xchange.coinegg.dto.accounts.CoinEggBalance; import org.knowm.xchange.coinegg.dto.trade.CoinEggTradeAdd; import org.knowm.xchange.coinegg.dto.trade.CoinEggTradeCancel; @@ -70,4 +70,4 @@ CoinEggTradeAdd getTradeAdd( @FormParam("type") String type, @FormParam("coin") String coin) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java index 67e7e9e92c4..923043596d0 100644 --- a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java +++ b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java @@ -3,7 +3,7 @@ import java.nio.charset.Charset; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.Params; @@ -48,4 +48,4 @@ public String digestParams(RestInvocation restInvocation) { // Create And Return Signature return hex(getMac().doFinal(queryString)); } -} +} \ No newline at end of file diff --git a/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java b/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java index 47b7319ffce..99655d89ff7 100644 --- a/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java +++ b/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java @@ -4,7 +4,7 @@ import java.lang.annotation.Annotation; import java.util.HashMap; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.junit.Test; import si.mazi.rescu.RestInvocation; import si.mazi.rescu.RestMethodMetadata; @@ -66,4 +66,4 @@ public Class annotationType() { } }; } -} +} \ No newline at end of file diff --git a/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java b/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java index 354f243fa75..ad5bf1e1af4 100644 --- a/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java +++ b/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java @@ -1,13 +1,13 @@ package org.knowm.xchange.coinex; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coinex.dto.account.CoinexBalances; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; @@ -28,4 +28,4 @@ CoinexBalances getWallet( @QueryParam("access_id") String access_id, @QueryParam("tonce") SynchronizedValueFactory tonce) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java index 894f5420826..72a1d6c97b1 100644 --- a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java +++ b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.math.BigDecimal; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coinfloor.dto.CoinfloorException; import org.knowm.xchange.coinfloor.dto.account.CoinfloorBalance; import org.knowm.xchange.coinfloor.dto.trade.CoinfloorMarketOrderResponse; @@ -81,4 +81,4 @@ boolean cancelOrder( @PathParam("counter") Currency counter, @FormParam("id") long id) throws CoinfloorException, IOException; -} +} \ No newline at end of file diff --git a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java index ec218d6e3f8..d11622ece66 100644 --- a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java +++ b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java @@ -1,12 +1,12 @@ package org.knowm.xchange.coinfloor; import java.io.IOException; -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 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 org.knowm.xchange.coinfloor.dto.CoinfloorException; import org.knowm.xchange.coinfloor.dto.markedata.CoinfloorOrderBook; import org.knowm.xchange.coinfloor.dto.markedata.CoinfloorTicker; @@ -36,4 +36,4 @@ CoinfloorTransaction[] getTransactions( @PathParam("counter") Currency counter, @QueryParam("time") CoinfloorMarketDataServiceRaw.CoinfloorInterval period) throws CoinfloorException, IOException; -} +} \ No newline at end of file diff --git a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java index 86aa233a1dc..7b860380c64 100644 --- a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java +++ b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coingi.dto.CoingiException; import org.knowm.xchange.coingi.dto.marketdata.CoingiOrderBook; import org.knowm.xchange.coingi.dto.marketdata.CoingiRollingAggregation; @@ -43,4 +43,4 @@ List getTransaction( @GET @Path("24hours-rolling-aggregation") List getTradeAggregations() throws CoingiException, IOException; -} +} \ No newline at end of file diff --git a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java index 342c6e9dd69..65036c2300d 100644 --- a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java +++ b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coingi; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coingi.dto.CoingiException; import org.knowm.xchange.coingi.dto.account.CoingiBalanceRequest; import org.knowm.xchange.coingi.dto.account.CoingiBalances; @@ -65,4 +65,4 @@ CoingiWithdrawalResponse createWithdrawal(CoingiWithdrawalRequest request) @Path("deposit-wallet") CoingiDepositWalletResponse depositWallet(CoingiDepositWalletRequest request) throws CoingiException, IOException; -} +} \ No newline at end of file diff --git a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java index bf1222fc581..f3ac00c6162 100644 --- a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java +++ b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coinjar; import java.io.IOException; -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 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 org.knowm.xchange.coinjar.dto.data.CoinjarOrderBook; import org.knowm.xchange.coinjar.dto.data.CoinjarTicker; @@ -25,4 +25,4 @@ CoinjarOrderBook getOrderBook( @PathParam("product") String product, @QueryParam("level") int level) throws CoinjarException, IOException; ; -} +} \ No newline at end of file diff --git a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java index aa17df02a6a..e56e42a1e03 100644 --- a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java +++ b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.coinjar.dto.CoinjarOrder; import org.knowm.xchange.coinjar.dto.trading.CoinjarAccount; import org.knowm.xchange.coinjar.dto.trading.CoinjarFills; @@ -69,4 +69,4 @@ CoinjarFills getFills( CoinjarOrder cancelOrder( @HeaderParam("Authorization") String authHeader, @PathParam("id") String id) throws CoinjarException, IOException; -} +} \ No newline at end of file diff --git a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java index 797cc82cd46..ca683fc9b70 100644 --- a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java +++ b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Objects; -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 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 org.knowm.xchange.coinmarketcap.deprecated.v2.dto.marketdata.CoinMarketCapArrayData; import org.knowm.xchange.coinmarketcap.deprecated.v2.dto.marketdata.CoinMarketCapTicker; import org.knowm.xchange.currency.CurrencyPair; @@ -106,4 +106,4 @@ public String toString() { pair.counter.getCurrencyCode().toLowerCase()); } } -} +} \ No newline at end of file diff --git a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java index 0beea3a7696..57a1c0d2dc0 100644 --- a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java +++ b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.coinmarketcap.pro.v1; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coinmarketcap.pro.v1.dto.marketdata.response.CmcCurrencyInfoResponse; import org.knowm.xchange.coinmarketcap.pro.v1.dto.marketdata.response.CmcCurrencyMapResponse; import org.knowm.xchange.coinmarketcap.pro.v1.dto.marketdata.response.CmcTickerListResponse; @@ -52,4 +52,4 @@ CmcTickerResponse getLatestQuotes( @QueryParam("symbol") String symbol, @QueryParam("convert") String convert) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java index a9dfc95dd9d..bf2d0c46c2a 100644 --- a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java +++ b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java @@ -25,8 +25,8 @@ import java.io.IOException; import java.math.BigDecimal; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.coinmate.dto.marketdata.CoinmateOrderBook; import org.knowm.xchange.coinmate.dto.marketdata.CoinmateQuickRate; import org.knowm.xchange.coinmate.dto.marketdata.CoinmateTicker; @@ -76,4 +76,4 @@ CoinmateQuickRate getBuyQuickRate( CoinmateQuickRate getSellQuickRate( @FormParam("amount") BigDecimal amount, @FormParam("currencyPair") String currencyPair) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java index 6455f14c825..8703b35898f 100644 --- a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java +++ b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java @@ -25,12 +25,12 @@ import java.io.IOException; import java.math.BigDecimal; -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 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 org.knowm.xchange.coinmate.dto.account.CoinmateBalance; import org.knowm.xchange.coinmate.dto.account.CoinmateDepositAddresses; import org.knowm.xchange.coinmate.dto.account.CoinmateTradingFeesResponse; @@ -529,4 +529,4 @@ CoinmateReplaceResponse replaceBySellInstant( @FormParam("orderIdToBeReplaced") String orderIdToBeReplaced, @FormParam("clientOrderId") String clientOrderId) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java index feefe473fe3..dd887ecf030 100644 --- a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java +++ b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java @@ -25,7 +25,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -72,4 +72,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} +} \ No newline at end of file diff --git a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java index 3a14c3fa66b..c1fb3220286 100644 --- a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java +++ b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java @@ -1,9 +1,9 @@ package org.knowm.xchange.coinone; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.coinone.dto.CoinoneException; import org.knowm.xchange.coinone.dto.marketdata.CoinoneOrderBook; import org.knowm.xchange.coinone.dto.marketdata.CoinoneTicker; @@ -26,4 +26,4 @@ CoinoneOrderBook getOrderBook(@QueryParam("currency") String currency) CoinoneTrades getTrades( @QueryParam("currency") String currency, @QueryParam("currency") String period) throws IOException, CoinoneException; -} +} \ No newline at end of file diff --git a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java index 1d4b456ff06..24a48fcdb70 100644 --- a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java +++ b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.coinone; import java.io.IOException; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.coinone.dto.CoinoneException; import org.knowm.xchange.coinone.dto.account.CoinoneAuthRequest; import org.knowm.xchange.coinone.dto.account.CoinoneBalancesRequest; @@ -80,4 +80,4 @@ CoinoneWithdrawResponse withdrawFund( @HeaderParam("X-COINONE-SIGNATURE") ParamsDigest signature, CoinoneWithdrawRequest coinoneWithdrawRequest) throws IOException, CoinoneException; -} +} \ No newline at end of file diff --git a/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java b/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java index 050163ecd80..847718154aa 100644 --- a/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java +++ b/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java @@ -5,7 +5,7 @@ import io.vavr.control.Either; import java.io.IOException; import java.util.concurrent.Callable; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.knowm.xchange.ExchangeSpecification; import si.mazi.rescu.HttpStatusExceptionSupport; @@ -86,4 +86,4 @@ public T call() throws IOException { return this.callable.call(); } } -} +} \ No newline at end of file diff --git a/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java b/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java index 264f457b904..26b0b0ec81c 100644 --- a/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java +++ b/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java @@ -1,11 +1,11 @@ package org.knowm.xchange.cryptowatch; -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 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 org.knowm.xchange.cryptowatch.dto.marketdata.results.CryptowatchAssetPairsResult; import org.knowm.xchange.cryptowatch.dto.marketdata.results.CryptowatchAssetsResult; import org.knowm.xchange.cryptowatch.dto.marketdata.results.CryptowatchOHLCResult; @@ -58,4 +58,4 @@ CryptowatchOrderBookResult getOrderBook( @GET @Path("pairs") CryptowatchAssetPairsResult getAssetPairs(); -} +} \ No newline at end of file diff --git a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java index ddd8f10fcc2..b86d702f473 100644 --- a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java +++ b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -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 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 org.knowm.xchange.deribit.v2.dto.DeribitException; import org.knowm.xchange.deribit.v2.dto.DeribitResponse; import org.knowm.xchange.deribit.v2.dto.GrantType; @@ -177,4 +177,4 @@ DeribitResponse auth( @QueryParam("state") String state, @QueryParam("scope") String scope) throws DeribitException, IOException; -} +} \ No newline at end of file diff --git a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java index 31001aed070..4088f90ce26 100644 --- a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java +++ b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.deribit.v2.dto.DeribitException; import org.knowm.xchange.deribit.v2.dto.DeribitResponse; import org.knowm.xchange.deribit.v2.dto.Kind; @@ -394,4 +394,4 @@ DeribitResponse> getOrderHistoryByInstrument( DeribitResponse getOrderState( @QueryParam("order_id") String orderId, @HeaderParam("Authorization") ParamsDigest auth) throws DeribitException, IOException; -} +} \ No newline at end of file diff --git a/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java b/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java index 1286706d9a8..00ec4d50baf 100644 --- a/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java +++ b/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java @@ -1,15 +1,15 @@ package org.knowm.xchange.dvchain; import java.io.IOException; -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.core.MediaType; +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.core.MediaType; import org.knowm.xchange.dvchain.dto.DVChainException; import org.knowm.xchange.dvchain.dto.marketdata.DVChainMarketResponse; import org.knowm.xchange.dvchain.dto.trade.DVChainNewLimitOrder; @@ -52,4 +52,4 @@ DVChainMarketResponse getPrices(@HeaderParam("Authorization") String apiKey) String cancelOrder( @PathParam("tradeId") String tradeId, @HeaderParam("Authorization") String apiKey) throws DVChainException, IOException; -} +} \ No newline at end of file diff --git a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java index 09e92c71735..e0dc3a3475b 100644 --- a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java +++ b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java @@ -1,11 +1,11 @@ package org.knowm.xchange.enigma; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.enigma.dto.account.EnigmaCredentials; import org.knowm.xchange.enigma.dto.account.EnigmaLoginResponse; @@ -17,4 +17,4 @@ public interface Enigma { @Path("user/login") @Consumes(MediaType.APPLICATION_JSON) EnigmaLoginResponse login(EnigmaCredentials loginRequest) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java index 36205e0bf35..3884726018e 100644 --- a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java +++ b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java @@ -4,14 +4,14 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -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.core.MediaType; +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.core.MediaType; import org.knowm.xchange.enigma.dto.BaseResponse; import org.knowm.xchange.enigma.dto.marketdata.EnigmaOpenOrders; import org.knowm.xchange.enigma.dto.marketdata.EnigmaOrderBook; @@ -130,4 +130,4 @@ List depositAddress( @GET @Path("xchange/order/open") EnigmaOpenOrders openOrders(@HeaderParam("Authorization") String accessToken); -} +} \ No newline at end of file diff --git a/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java b/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java index c769cc822e0..cdfa8919ef6 100644 --- a/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java +++ b/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java @@ -4,14 +4,14 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import si.mazi.rescu.SynchronizedValueFactory; // todo: strongly type the returned values @@ -120,4 +120,4 @@ Map withdrawCrypt( @FormParam("currency") String currency, @FormParam("address") String address, @FormParam("invoice") String invoice); -} +} \ No newline at end of file diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java index 93755f79d06..a0b0995f33b 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.ftx.dto.FtxResponse; import org.knowm.xchange.ftx.dto.marketdata.FtxCandleDto; import org.knowm.xchange.ftx.dto.marketdata.FtxMarketDto; @@ -54,4 +54,4 @@ FtxResponse> getCandles( FtxResponse getOrderbook( @PathParam("market_name") String market, @QueryParam("depth") int depth) throws IOException, FtxException; -} +} \ No newline at end of file diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java index 5726088db0c..26f315d483d 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.ftx.dto.FtxResponse; import org.knowm.xchange.ftx.dto.account.FtxAccountDto; import org.knowm.xchange.ftx.dto.account.FtxBorrowingHistoryDto; @@ -420,4 +420,4 @@ FtxResponse> getTriggers( @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("id") String id) throws IOException, FtxException; -} +} \ No newline at end of file diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java index 6155bfe1b3e..a9373f8d81a 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java @@ -2,7 +2,7 @@ import java.nio.charset.StandardCharsets; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; @@ -51,4 +51,4 @@ public String digestParams(RestInvocation restInvocation) { return DigestUtils.bytesToHex(mac256.doFinal()).toLowerCase(); } -} +} \ No newline at end of file diff --git a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java index 28d7dd4ea56..fb08c3e8d5f 100644 --- a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java +++ b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.Map; -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 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 org.knowm.xchange.gateio.dto.marketdata.GateioCandlestickHistory; import org.knowm.xchange.gateio.dto.marketdata.GateioCoinInfoWrapper; import org.knowm.xchange.gateio.dto.marketdata.GateioCurrencyPairs; @@ -73,4 +73,4 @@ GateioCandlestickHistory getKlinesGate( @QueryParam("range_hour") Integer hours, @QueryParam("group_sec") Long interval) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java index 9ccf9b1a585..19f0d18e21c 100644 --- a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java +++ b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Map; -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 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 org.knowm.xchange.gateio.dto.GateioBaseResponse; import org.knowm.xchange.gateio.dto.account.GateioDepositAddress; import org.knowm.xchange.gateio.dto.account.GateioDepositsWithdrawals; @@ -124,4 +124,4 @@ GateioOrderStatus getOrderStatus( Map getFeeList( @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") ParamsDigest signer) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java index 276f49133b0..de7da662378 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.Set; -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 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 org.knowm.xchange.gemini.v1.dto.GeminiException; import org.knowm.xchange.gemini.v1.dto.marketdata.GeminiDepth; import org.knowm.xchange.gemini.v1.dto.marketdata.GeminiLend; @@ -62,4 +62,4 @@ GeminiLend[] getLends( @GET @Path("symbols") Set getSymbols() throws IOException, GeminiException; -} +} \ No newline at end of file diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java index b5835e552ef..2254f482eab 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java @@ -1,13 +1,13 @@ package org.knowm.xchange.gemini.v1; import java.io.IOException; -import javax.ws.rs.Consumes; -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.core.MediaType; +import jakarta.ws.rs.Consumes; +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.core.MediaType; import org.knowm.xchange.gemini.v1.dto.GeminiException; import org.knowm.xchange.gemini.v1.dto.account.GeminiBalancesRequest; import org.knowm.xchange.gemini.v1.dto.account.GeminiBalancesResponse; @@ -155,4 +155,4 @@ GeminiOrderStatusResponse heartBeat( @HeaderParam("X-GEMINI-SIGNATURE") ParamsDigest signatureCreator, GeminiNonceOnlyRequest nonceOnlyRequest) throws IOException, GeminiException; -} +} \ No newline at end of file diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java index e0cb3806480..c8aa868d6cb 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java @@ -2,7 +2,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.PathParam; public class GeminiWithdrawalRequest { @@ -50,4 +50,4 @@ public String getAmount() { public String getAddress() { return address; } -} +} \ No newline at end of file diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java index f188be1f6f2..d739333589b 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java @@ -1,11 +1,11 @@ package org.knowm.xchange.gemini.v2; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.gemini.v1.dto.GeminiException; import org.knowm.xchange.gemini.v2.dto.marketdata.GeminiCandle; import org.knowm.xchange.gemini.v2.dto.marketdata.GeminiTicker2; @@ -22,4 +22,4 @@ GeminiCandle[] getCandles( @GET @Path("ticker/{symbol}") GeminiTicker2 getTicker(@PathParam("symbol") String symbol) throws IOException, GeminiException; -} +} \ No newline at end of file diff --git a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java index ea39c738b02..0899526a0cf 100644 --- a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java +++ b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java @@ -1,12 +1,12 @@ package org.knowm.xchange.globitex; import java.io.IOException; -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 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 org.knowm.xchange.globitex.dto.marketdata.GlobitexOrderBook; import org.knowm.xchange.globitex.dto.marketdata.GlobitexSymbols; import org.knowm.xchange.globitex.dto.marketdata.GlobitexTicker; @@ -42,4 +42,4 @@ GlobitexTrades getRecentTradesBySymbol( @QueryParam("formatItem") String formatItem, @QueryParam("side") boolean side) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java index 8d30256ebe5..f69a8199855 100644 --- a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java +++ b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java @@ -1,14 +1,14 @@ package org.knowm.xchange.globitex; import java.io.IOException; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -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 jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +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 org.knowm.xchange.globitex.dto.account.GlobitexAccounts; import org.knowm.xchange.globitex.dto.trade.GlobitexActiveOrders; import org.knowm.xchange.globitex.dto.trade.GlobitexExecutionReport; @@ -73,4 +73,4 @@ GlobitexExecutionReport cancelOrder( @HeaderParam("X-Signature") ParamsDigest signature, @FormParam("clientOrderId") String clientOrderId) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java index dc81397cefd..d9aa5d23508 100644 --- a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java +++ b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java @@ -3,7 +3,7 @@ import static org.knowm.xchange.utils.DigestUtils.bytesToHex; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -35,4 +35,4 @@ public String digestParams(RestInvocation restInvocation) { return bytesToHex(mac512.doFinal()).toLowerCase(); } -} +} \ No newline at end of file diff --git a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java index 0dd92989311..b194a6ad2fa 100644 --- a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java +++ b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.util.Date; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.hitbtc.v2.dto.HitbtcCandle; import org.knowm.xchange.hitbtc.v2.dto.HitbtcCurrency; import org.knowm.xchange.hitbtc.v2.dto.HitbtcOrderBook; @@ -102,4 +102,4 @@ List getHitbtcOHLC( @QueryParam("offset") int offset, @QueryParam("sort") String sort) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java index ce5d5e075a3..1f2cd35d0ae 100644 --- a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java +++ b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java @@ -4,16 +4,16 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.PATCH; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PATCH; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.hitbtc.v2.dto.HitbtcAddress; import org.knowm.xchange.hitbtc.v2.dto.HitbtcBalance; import org.knowm.xchange.hitbtc.v2.dto.HitbtcException; @@ -159,4 +159,4 @@ List getHitbtcOrder( @Path("/history/order/{id}/trades") List getHistorialTradesByOrder(@PathParam("id") String orderId) throws IOException, HitbtcException; -} +} \ No newline at end of file diff --git a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java index 0e36ed88a6c..b02d29e26d9 100644 --- a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java +++ b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java @@ -1,14 +1,14 @@ package org.knowm.xchange.huobi; import java.io.IOException; -import javax.ws.rs.Consumes; -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.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +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.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.huobi.dto.account.HuobiCreateWithdrawRequest; import org.knowm.xchange.huobi.dto.account.results.HuobiAccountResult; import org.knowm.xchange.huobi.dto.account.results.HuobiBalanceResult; @@ -307,4 +307,4 @@ HuobiOrderResult placeMarketOrder( @QueryParam("Timestamp") String nonce, @QueryParam("Signature") ParamsDigest signature) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java index 3a10d88a135..5ba8c2b2770 100644 --- a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java +++ b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java @@ -11,8 +11,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import javax.crypto.Mac; -import javax.ws.rs.FormParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; import si.mazi.rescu.RestInvocation; @@ -71,4 +71,4 @@ private String encodeValue(String value) { } return ret; } -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java index 1e8ffaf9121..05264378915 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -32,4 +32,4 @@ public interface CancelApi { "To derive the signature for this API call, hash the following parameters in this orderorderHashnonceSalt and sign the hash as usual to prepare your payloadSample output:{ success: 1 }", response = CancelResponse.class)) CancelResponse cancel(CancelReq cancelReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java index f9196a68ece..579201053d8 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -23,4 +23,4 @@ public interface OrderApi { @ApiOperation(value = "Limit Order", notes = "", tags = "trade") @ApiResponses(@ApiResponse(code = 200, message = "", response = OrderResponse.class)) OrderResponse order(OrderReq orderReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java index d96e459275b..9e0d0bfad4f 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -30,4 +30,4 @@ public interface Return24VolumeApi { "This function takes no JSON arguments{ ETH_REP: { ETH: '1.3429046745', REP: '105.29046745' },ETH_DVIP: { ETH: '4', DVIP: '4' },totalETH: '5.3429046745' }", response = Volume24Response.class)) Volume24Response volume24(); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java index 6375a029ce9..754d86236b5 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -26,4 +26,4 @@ public interface ReturnBalancesApi { tags = "account") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnBalancesResponse.class)) ReturnBalancesResponse balances(BalancesReq balancesReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java index 5772692f58c..e74beb3045a 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -28,4 +28,4 @@ public interface ReturnCompleteBalancesApi { @ApiResponses( @ApiResponse(code = 200, message = "", response = ReturnCompleteBalancesResponse.class)) ReturnCompleteBalancesResponse completeBalances(CompleteBalancesReq completeBalancesReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java index 2e842a12a56..60dbc1d7ebb 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -26,4 +26,4 @@ public interface ReturnContractAddressApi { @ApiResponses( @ApiResponse(code = 200, message = "", response = ReturnContractAddressResponse.class)) ReturnContractAddressResponse contractAddress(); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java index 2692afdfe05..9699a25158b 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -23,4 +23,4 @@ public interface ReturnCurrenciesApi { @ApiResponses( @ApiResponse(code = 200, message = "null", response = ReturnCurrenciesResponse.class)) ReturnCurrenciesResponse currencies(); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java index db0ce1889d8..23b579d5e3c 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -28,4 +28,4 @@ public interface ReturnDepositsWithdrawalsApi { @ApiResponses( @ApiResponse(code = 200, message = "", response = ReturnDepositsWithdrawalsResponse.class)) ReturnDepositsWithdrawalsResponse fundingHistory(DepositsWithdrawalsReq depositsWithdrawalsReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java index 91bffaeed21..ce5679932bc 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -31,4 +31,4 @@ public interface ReturnNextNonceApi { message = "Sample output: { nonce: 2650 }", response = ReturnNextNonceResponse.class)) ReturnNextNonceResponse nextNonce(NextNonceReq nextNonceReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java index e586d70d996..547791e0743 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -26,4 +26,4 @@ public interface ReturnOpenOrdersApi { tags = "trade") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnOpenOrdersResponse.class)) ReturnOpenOrdersResponse openOrders(OpenOrdersReq openOrdersReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java index 4a1006efdab..8eb3e115ab5 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -27,4 +27,4 @@ public interface ReturnOrderBookApi { tags = "market") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnOrderBookResponse.class)) ReturnOrderBookResponse orderBook(OrderBookReq orderBookReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java index b7215122dbd..5f9e3664c8b 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -32,4 +32,4 @@ public interface ReturnOrderTradesApi { "Sample output: [ { date: '2017-10-11 21:41:15',amount: '0.3',type: 'buy',total: '1',price: '0.3',uuid: 'e8719a10-aecc-11e7-9535-3b8451fd4699',transactionHash: '0x28b945b586a5929c69337929533e04794d488c2d6e1122b7b915705d0dff8bb6' } ]", response = ReturnOrderTradesResponse.class)) ReturnOrderTradesResponse orderTrades(OrderTradesReq orderTradesReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java index 4660e2d38cf..aa5f0d0ff99 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -23,4 +23,4 @@ public interface ReturnTickerApi { @ApiOperation(value = "", notes = "", tags = "market") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnTickerResponse.class)) ReturnTickerResponse ticker(Market market); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java index 32ad601a581..0dca29fb92d 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -28,4 +28,4 @@ public interface ReturnTradeHistoryApi { response = TradeHistoryItem.class, responseContainer = "List")) java.util.List tradeHistory(TradeHistoryReq tradeHistoryReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java index afcddb39569..635fc77d696 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.dto.TradeReq; import org.knowm.xchange.idex.dto.TradeResponse; @@ -18,4 +18,4 @@ public interface TradeApi { @Consumes("application/json") @Produces("application/json") TradeResponse trade(TradeReq tradeReq); -} +} \ No newline at end of file diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java index ac51178ce55..e275b0580b0 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -32,4 +32,4 @@ public interface WithdrawApi { "To derive the signature for this API call, hash the following parameters in this order contract addresstokenamountaddressnonceSalt the hash as described earlier and sign it to produce your signature triplet.Useful response upon withdrawal success is in the works, for now simply test that there is no error propertyin the result object to confirm your withdrawal has succeeded.", response = WithdrawResponse.class)) WithdrawResponse withdraw(WithdrawReq withdrawReq); -} +} \ No newline at end of file diff --git a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java index ca521699db3..6084ab46785 100644 --- a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java +++ b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java @@ -1,11 +1,11 @@ package org.knowm.xchange.independentreserve; import java.io.IOException; -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 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 org.knowm.xchange.independentreserve.dto.marketdata.IndependentReserveOrderBook; import org.knowm.xchange.independentreserve.dto.marketdata.IndependentReserveTicker; @@ -27,4 +27,4 @@ IndependentReserveTicker getMarketSummary( @QueryParam("primaryCurrencyCode") String primaryCurrencyCode, @QueryParam("secondaryCurrencyCode") String secondaryCurrencyCode) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java index de4126e7618..71cd6f5b05d 100644 --- a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java +++ b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.independentreserve; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.independentreserve.dto.IndependentReserveHttpStatusException; import org.knowm.xchange.independentreserve.dto.account.IndependentReserveBalance; import org.knowm.xchange.independentreserve.dto.account.IndependentReserveBrokerageFeeRequest; @@ -126,4 +126,4 @@ Object withdrawDigitalCurrency(IndependentReserveWithdrawDigitalCurrencyRequest IndependentReserveBrokerageFeeResponse getBrokerageFees( IndependentReserveBrokerageFeeRequest independentReserveBrokerageFeeRequest) throws IndependentReserveHttpStatusException, IOException; -} +} \ No newline at end of file diff --git a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java index ab4e146c8e2..93e787a50f2 100644 --- a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java +++ b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java @@ -1,12 +1,12 @@ package org.knowm.xchange.itbit; import java.io.IOException; -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 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 org.knowm.xchange.itbit.dto.ItBitException; import org.knowm.xchange.itbit.dto.marketdata.ItBitDepth; import org.knowm.xchange.itbit.dto.marketdata.ItBitTrades; @@ -28,4 +28,4 @@ ItBitTrades getTrades( @PathParam("currency") String currency, @QueryParam("since") long sinceId) throws IOException, ItBitException; -} +} \ No newline at end of file diff --git a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java index d761d38bd94..19c214e2ccf 100644 --- a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java +++ b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java @@ -3,16 +3,16 @@ import java.io.IOException; import java.util.Date; import java.util.List; -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 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 org.knowm.xchange.itbit.dto.ItBitException; import org.knowm.xchange.itbit.dto.ItBitFundingHistoryResponse; import org.knowm.xchange.itbit.dto.account.ItBitAccountInfoReturn; @@ -158,4 +158,4 @@ ItBitFundingHistoryResponse fundingHistory( @PathParam("walletId") String walletId, @QueryParam("page") int page, @QueryParam("perPage") int perPage); -} +} \ No newline at end of file diff --git a/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java b/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java index 9ca384c22cc..2291c3a31c7 100644 --- a/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java +++ b/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java @@ -1,10 +1,10 @@ package org.knowm.xchange.koineks; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.koineks.dto.marketdata.KoineksTicker; /** Created by semihunaldi on 05/12/2017 */ @@ -14,4 +14,4 @@ public interface Koineks { @GET @Path("ticker") KoineksTicker getTicker() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java b/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java index 28f01dcaeb0..689f1854220 100644 --- a/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java +++ b/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java @@ -1,10 +1,10 @@ package org.knowm.xchange.koinim; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.koinim.dto.marketdata.KoinimTicker; /** @author ahmetoz */ @@ -15,4 +15,4 @@ public interface Koinim { @GET @Path("ticker") KoinimTicker getTicker() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java index e5dd6b10aa1..57165c35869 100644 --- a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java +++ b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java @@ -1,12 +1,12 @@ package org.knowm.xchange.kraken; import java.io.IOException; -import javax.ws.rs.FormParam; -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 jakarta.ws.rs.FormParam; +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 org.knowm.xchange.kraken.dto.marketdata.results.KrakenAssetPairsResult; import org.knowm.xchange.kraken.dto.marketdata.results.KrakenAssetsResult; import org.knowm.xchange.kraken.dto.marketdata.results.KrakenDepthResult; @@ -63,4 +63,4 @@ KrakenAssetsResult getAssets( @GET @Path("public/Time") KrakenServerTimeResult getServerTime() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java index 34ca2bc8944..6a111fdce09 100644 --- a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java +++ b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Map; -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 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 org.knowm.xchange.kraken.dto.account.results.DepositStatusResult; import org.knowm.xchange.kraken.dto.account.results.KrakenBalanceResult; import org.knowm.xchange.kraken.dto.account.results.KrakenDepositAddressResult; @@ -319,4 +319,4 @@ WithdrawStatusResult getWithdrawStatus( @HeaderParam("API-Sign") ParamsDigest signer, @FormParam("nonce") SynchronizedValueFactory nonce) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java index fb73c8ff4fb..2f742e8d40e 100644 --- a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java +++ b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java @@ -4,7 +4,7 @@ import java.security.NoSuchAlgorithmException; import java.util.Base64; import javax.crypto.Mac; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -49,4 +49,4 @@ public String digestParams(RestInvocation restInvocation) { return Base64.getEncoder().encodeToString(mac512.doFinal()).trim(); } -} +} \ No newline at end of file diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java index a74d5325423..558d5e520f5 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java @@ -6,11 +6,11 @@ import org.knowm.xchange.krakenfutures.dto.marketData.KrakenFuturesTickers; import java.io.IOException; -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 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; /** @author Jean-Christophe Laruelle */ @Path("/api/v3") @@ -32,4 +32,4 @@ public interface KrakenFutures { @GET @Path("/history") KrakenFuturesPublicFills getHistory(@QueryParam("symbol") String symbol) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java index 21b3c353c81..5ebdc120652 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -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 jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +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 org.knowm.xchange.krakenfutures.dto.account.KrakenFuturesAccounts; import org.knowm.xchange.krakenfutures.dto.marketData.KrakenFuturesOrder; @@ -131,4 +131,4 @@ KrakenFuturesOpenPositions openPositions( @HeaderParam("Authent") ParamsDigest signer, @HeaderParam("Nonce") SynchronizedValueFactory nonce) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java index bcdb45da5db..c2e81bf4a93 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java @@ -7,8 +7,8 @@ import java.security.NoSuchAlgorithmException; import java.util.Base64; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -68,4 +68,4 @@ public String digestParams(RestInvocation restInvocation) { } -} +} \ No newline at end of file diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java index 645abceeb9c..cc26be13066 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java @@ -14,7 +14,7 @@ import org.knowm.xchange.service.trade.params.*; import org.knowm.xchange.service.trade.params.orders.OpenOrdersParams; -import javax.ws.rs.NotSupportedException; +import jakarta.ws.rs.NotSupportedException; /** @author Jean-Christophe Laruelle */ public class KrakenFuturesTradeService extends KrakenFuturesTradeServiceRaw @@ -108,4 +108,4 @@ public boolean cancelOrder(CancelOrderParams orderParams) throws IOException { public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { return KrakenFuturesAdapters.adaptFills(getKrakenFuturesFills()); } -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java index b413834d635..e987e22f4db 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java @@ -1,6 +1,6 @@ package org.knowm.xchange.kucoin; -import static javax.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; +import static jakarta.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; @@ -40,4 +40,4 @@ public static ResilienceRegistries createRegistries() { return registries; } -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java index 833ec8b533a..530150bf181 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.request.CreateAccountRequest; import org.knowm.xchange.kucoin.dto.request.InnerTransferRequest; @@ -112,4 +112,4 @@ KucoinResponse getAccount( @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase, @PathParam("accountId") String accountId) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java index 425c3618b68..81da3838b8f 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java @@ -3,13 +3,13 @@ import jakarta.ws.rs.Consumes; import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -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 jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +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 org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.request.CreateDepositAddressApiRequest; import org.knowm.xchange.kucoin.dto.response.DepositAddressResponse; @@ -82,4 +82,4 @@ KucoinResponse> getDepositAddresses( @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase, @QueryParam("currency") String currency) throws IOException, KucoinException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java index ca14826d25a..20e67cab470 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java @@ -2,12 +2,12 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.Pagination; import org.knowm.xchange.kucoin.dto.response.TradeResponse; @@ -49,4 +49,4 @@ KucoinResponse> queryTrades( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java index b539a9d61a5..a0ef73f49c7 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java @@ -1,12 +1,12 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.HistOrdersResponse; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.Pagination; @@ -43,4 +43,4 @@ KucoinResponse> queryHistOrders( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java index e4fa5998ec2..0897dbbbf0a 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.TradeHistoryResponse; @@ -45,4 +45,4 @@ KucoinResponse> getKlines( @QueryParam("endAt") Long endAt, @QueryParam("type") String type) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java index 5c0eac173d6..264980620a6 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java @@ -4,7 +4,7 @@ import java.nio.charset.StandardCharsets; import java.util.Base64; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -52,4 +52,4 @@ public String digestParams(RestInvocation restInvocation) { public String getSignature() { return signature; } -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java index e2a8b5de61b..7aa99f92bcb 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.OrderResponse; import si.mazi.rescu.ParamsDigest; @@ -23,4 +23,4 @@ KucoinResponse> getRecentOrders( @HeaderParam(APIConstants.API_HEADER_TIMESTAMP) SynchronizedValueFactory nonce, @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java index af1dc765ebd..4db1e8e5746 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java @@ -2,16 +2,16 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -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 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 org.knowm.xchange.kucoin.dto.request.OrderCreateApiRequest; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.OrderCancelResponse; @@ -130,4 +130,4 @@ KucoinResponse> queryOrders( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java index a5e4e58d368..2dec9b12441 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java @@ -2,12 +2,12 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.OrderBookResponse; import si.mazi.rescu.ParamsDigest; @@ -85,4 +85,4 @@ KucoinResponse getFullOrderBookAggregated( @Path("v2/market/orderbook/level3") KucoinResponse getFullOrderBookAtomic(@QueryParam("symbol") String symbol) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java index ebcb7befdd5..a1a084d507d 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java @@ -5,12 +5,12 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -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 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 org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.response.AllTickersResponse; import org.knowm.xchange.kucoin.dto.response.CurrenciesResponse; @@ -102,4 +102,4 @@ public interface SymbolAPI { @Path("/v1/market/stats") KucoinResponse getMarketStats(@QueryParam("symbol") String symbol) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java index 2e3506037f8..e354e9713f2 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.TradeFeeResponse; import si.mazi.rescu.ParamsDigest; @@ -40,4 +40,4 @@ KucoinResponse> getTradeFee( @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase, @QueryParam("symbols") String symbols) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java index fc95b07fee3..4f911798d30 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java @@ -1,11 +1,11 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -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 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 org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.WebsocketResponse; import si.mazi.rescu.ParamsDigest; @@ -28,4 +28,4 @@ KucoinResponse getPrivateWebsocketDetails( @HeaderParam(APIConstants.API_HEADER_TIMESTAMP) SynchronizedValueFactory nonce, @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java index c9576e55c3b..840a0fd8428 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java @@ -1,14 +1,14 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.request.ApplyWithdrawApiRequest; import org.knowm.xchange.kucoin.dto.response.ApplyWithdrawResponse; @@ -65,4 +65,4 @@ KucoinResponse> getWithdrawalsList( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java index 02fa6c4fbce..3f88cb66a4d 100644 --- a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java +++ b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.Map; -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 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 org.knowm.xchange.kuna.dto.KunaAskBid; import org.knowm.xchange.kuna.dto.KunaException; import org.knowm.xchange.kuna.dto.KunaTimeTicker; @@ -72,4 +72,4 @@ public interface Kuna { @GET @Path("trades") KunaTrade[] getTradesHistory(@QueryParam("market") String pair) throws IOException, KunaException; -} +} \ No newline at end of file diff --git a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java index c50c39b0b36..9b96720ca5a 100644 --- a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java +++ b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java @@ -1,10 +1,10 @@ package org.knowm.xchange.kuna; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; /** @author Dat Bui */ @Path("/v2") @Produces(MediaType.APPLICATION_JSON) -public interface KunaAuthenticated extends Kuna {} +public interface KunaAuthenticated extends Kuna {} \ No newline at end of file diff --git a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java index 7d0036c0674..b3cac10760d 100644 --- a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java +++ b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.latoken.dto.LatokenException; import org.knowm.xchange.latoken.dto.exchangeinfo.LatokenCurrency; import org.knowm.xchange.latoken.dto.exchangeinfo.LatokenPair; @@ -153,4 +153,4 @@ LatokenOrderbook getOrderbook(@PathParam("symbol") String symbol, @PathParam("li */ LatokenTrades getTrades(@PathParam("symbol") String symbol, @PathParam("limit") int limit) throws IOException, LatokenException; -} +} \ No newline at end of file diff --git a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java index 329f741d22d..89ae4ca63ce 100644 --- a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java +++ b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import javax.ws.rs.FormParam; -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 jakarta.ws.rs.FormParam; +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 org.knowm.xchange.latoken.dto.LatokenException; import org.knowm.xchange.latoken.dto.account.LatokenBalance; import org.knowm.xchange.latoken.dto.trade.LatokenCancelledOrders; @@ -282,4 +282,4 @@ LatokenBalance getBalance( @HeaderParam(API_KEY) String apiKey, @HeaderParam(SIGNATURE) ParamsDigest signature) throws IOException, LatokenException; -} +} \ No newline at end of file diff --git a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java index 6af9ce27562..6398ece7aff 100644 --- a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java +++ b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java @@ -1,10 +1,10 @@ package org.knowm.xchange.lgo; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/") public interface CertificateAuthority { @@ -18,4 +18,4 @@ public interface CertificateAuthority { @Produces(MediaType.TEXT_PLAIN) @GET String fetchKey(@PathParam("id") String keyId); -} +} \ No newline at end of file diff --git a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java index b6672f7c34d..6a674dec0c6 100644 --- a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java +++ b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java @@ -1,16 +1,16 @@ package org.knowm.xchange.lgo; import java.io.IOException; -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 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 org.knowm.xchange.lgo.dto.LgoException; import org.knowm.xchange.lgo.dto.WithCursor; import org.knowm.xchange.lgo.dto.currency.LgoCurrencies; @@ -109,4 +109,4 @@ LgoPriceHistory getPriceHistory( @QueryParam(END) String endTime, @QueryParam(GRANULARITY) int granularity) throws IOException, LgoException; -} +} \ No newline at end of file diff --git a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java index 0d73d0100df..c4a7df98633 100644 --- a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java +++ b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java @@ -4,15 +4,15 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import javax.ws.rs.FormParam; -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 jakarta.ws.rs.FormParam; +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 org.knowm.xchange.livecoin.dto.LivecoinException; import org.knowm.xchange.livecoin.dto.LivecoinPaginatedResponse; import org.knowm.xchange.livecoin.dto.LivecoinResponseWithDataMap; @@ -225,4 +225,4 @@ LivecoinCancelResponse cancelLimitOrder( @FormParam("currencyPair") String currencyPair, @FormParam("orderId") long orderId) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java index 949ac36b385..b83e0d4ea49 100644 --- a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java +++ b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java @@ -9,8 +9,8 @@ import java.util.TreeMap; import java.util.TreeSet; import javax.crypto.Mac; -import javax.ws.rs.FormParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; import si.mazi.rescu.RestInvocation; @@ -58,4 +58,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac.doFinal())).toUpperCase(); } -} +} \ No newline at end of file diff --git a/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java b/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java index afa32445590..be85d1b62e5 100644 --- a/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java +++ b/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java @@ -1,11 +1,11 @@ package org.knowm.xchange.luno; import java.io.IOException; -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 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 org.knowm.xchange.luno.dto.LunoException; import org.knowm.xchange.luno.dto.marketdata.LunoOrderBook; import org.knowm.xchange.luno.dto.marketdata.LunoTicker; @@ -68,4 +68,4 @@ public interface Luno { @Path("trades") LunoTrades trades(@QueryParam("pair") String pair, @QueryParam("since") Long since) throws IOException, LunoException; -} +} \ No newline at end of file diff --git a/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java b/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java index 0b684cd84df..7c9d3d7359e 100644 --- a/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java +++ b/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java @@ -2,17 +2,17 @@ import java.io.IOException; import java.math.BigDecimal; -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 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 org.knowm.xchange.luno.dto.LunoBoolean; import org.knowm.xchange.luno.dto.LunoException; import org.knowm.xchange.luno.dto.account.LunoAccount; @@ -478,4 +478,4 @@ LunoQuote exerciseQuote( LunoQuote discardQuote( @HeaderParam("Authorization") ParamsDigest auth, @PathParam("id") String quoteId) throws IOException, LunoException; -} +} \ No newline at end of file diff --git a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java index bfee06c5397..4107355630a 100644 --- a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java +++ b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.lykke.dto.marketdata.LykkeAsset; import org.knowm.xchange.lykke.dto.marketdata.LykkeAssetPair; import org.knowm.xchange.lykke.dto.marketdata.LykkeOrderBook; @@ -37,4 +37,4 @@ List getOrderBookByAssetPair(@PathParam("assetPairId") String as @GET @Path("assets/dictionary") List getLykkeAsset() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java index bb00ca3d5c8..c2fb70f7c64 100644 --- a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java +++ b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -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 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 org.knowm.xchange.lykke.dto.account.LykkeWallet; import org.knowm.xchange.lykke.dto.trade.LykkeLimitOrder; import org.knowm.xchange.lykke.dto.trade.LykkeOrder; @@ -67,4 +67,4 @@ void cancelOrderById(@PathParam("id") String id, @HeaderParam(ApiKey) String api String cancelAllOrders( @QueryParam("assetPairId") String assetPairId, @HeaderParam(ApiKey) String apiKey) throws IOException, LykkeException; -} +} \ No newline at end of file diff --git a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java index d26334f8140..e9a26ded323 100644 --- a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java +++ b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java @@ -1,11 +1,11 @@ package org.knowm.xchange.mercadobitcoin; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinOrderBook; import org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinTicker; import org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinTransaction; @@ -52,4 +52,4 @@ MercadoBitcoinTransaction[] getTransactions( @PathParam("start_timestamp") Long startTimestamp, @PathParam("end_timestamp") Long endTimestamp) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java index 574af4f6f51..42d232e0472 100644 --- a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java +++ b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java @@ -4,13 +4,13 @@ import java.math.BigDecimal; import javax.annotation.Nonnull; import javax.annotation.Nullable; -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 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 org.knowm.xchange.mercadobitcoin.dto.MercadoBitcoinBaseTradeApiResult; import org.knowm.xchange.mercadobitcoin.dto.account.MercadoBitcoinAccountInfo; import org.knowm.xchange.mercadobitcoin.dto.trade.MercadoBitcoinCancelOrderResult; @@ -75,4 +75,4 @@ MercadoBitcoinBaseTradeApiResult cancelOrder( @Nonnull @FormParam("pair") String pair, @Nonnull @FormParam("order_id") String id) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java index 3358a11d978..e233439230e 100644 --- a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java +++ b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java @@ -8,8 +8,8 @@ import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.util.List; import java.util.Map; @@ -42,4 +42,4 @@ MEXCResult> getOrders( @HeaderParam("Signature") ParamsDigest signature, @QueryParam("order_ids") List orderIds) throws IOException, MEXCException; -} +} \ No newline at end of file diff --git a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java index 2180b68551f..d1cb88a536e 100644 --- a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java +++ b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java @@ -8,8 +8,8 @@ import si.mazi.rescu.RestInvocation; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; import java.lang.annotation.Annotation; import java.nio.charset.StandardCharsets; import java.util.Map; @@ -55,4 +55,4 @@ private String getDigestInputParams(RestInvocation restInvocation) { throw new NotYetImplementedForExchangeException("Only GET, DELETE and POST are supported in digest"); } -} +} \ No newline at end of file diff --git a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java index bf5eaec2f2a..1e749841f62 100644 --- a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java +++ b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.okcoin.dto.account.OKCoinWithdraw; import org.knowm.xchange.okcoin.dto.account.OkCoinAccountRecords; import org.knowm.xchange.okcoin.dto.account.OkCoinFuturesUserInfoCross; @@ -387,4 +387,4 @@ OkCoinErrorResult fundsTransfer( @FormParam("to") int to, @FormParam("sign") ParamsDigest sign) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java index 479c7953f95..0d31f6778c0 100644 --- a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java +++ b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java @@ -7,7 +7,7 @@ import java.util.Collections; import java.util.List; import java.util.Map; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import si.mazi.rescu.Params; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -85,4 +85,4 @@ public String digestParams(RestInvocation restInvocation) { throw new RuntimeException("Codec error", e); } } -} +} \ No newline at end of file diff --git a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java index b39b1dd1824..5f4bfd22d8c 100644 --- a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java +++ b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.List; import java.util.Map; -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 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 org.knowm.xchange.okcoin.v3.dto.account.BillType; import org.knowm.xchange.okcoin.v3.dto.account.FuturesBillsResponse; import org.knowm.xchange.okcoin.v3.dto.account.FuturesLeverageResponse; @@ -695,4 +695,4 @@ List getMarginTransactionDetails( @QueryParam("to") String to, @QueryParam("limit") Integer limit) throws IOException, OkexException; -} +} \ No newline at end of file diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java index 19bb2b6012f..c9fb3875da7 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java @@ -1,19 +1,19 @@ package org.knowm.xchange.okex; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.okex.dto.OkexException; import org.knowm.xchange.okex.dto.OkexResponse; import org.knowm.xchange.okex.dto.marketdata.*; @@ -83,4 +83,4 @@ OkexResponse> getFundingRate( @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws IOException, OkexException; -} +} \ No newline at end of file diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java index 3e7ec3e67b1..33a5c2bf101 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java @@ -5,14 +5,14 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.currency.Currency; import org.knowm.xchange.okex.dto.OkexException; import org.knowm.xchange.okex.dto.OkexResponse; @@ -381,4 +381,4 @@ OkexResponse> amendBatchOrder( @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, List requestPayload) throws OkexException, IOException; -} +} \ No newline at end of file diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java index 49753ef2717..0a0781666f6 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java @@ -1,6 +1,6 @@ package org.knowm.xchange.okex; -import static javax.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; +import static jakarta.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; @@ -42,4 +42,4 @@ public static ResilienceRegistries createRegistries() { return registries; } -} +} \ No newline at end of file diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java index d20fc25a332..bef3b10fced 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java @@ -34,7 +34,7 @@ import org.knowm.xchange.service.trade.params.orders.OrderQueryParamInstrument; import org.knowm.xchange.service.trade.params.orders.OrderQueryParams; -import javax.ws.rs.NotSupportedException; +import jakarta.ws.rs.NotSupportedException; import static org.knowm.xchange.okex.OkexAdapters.*; @@ -227,4 +227,4 @@ public List cancelOrder(List params) throws IOExcept .map(result -> "0".equals(result.getCode())) .collect(Collectors.toList()); } -} +} \ No newline at end of file diff --git a/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java b/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java index b8c952bd2ff..5bbd70728d0 100644 --- a/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java +++ b/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java @@ -1,11 +1,11 @@ package org.knowm.xchange.oer; import java.io.IOException; -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 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 org.knowm.xchange.oer.dto.marketdata.OERTickers; /** @author timmolter */ @@ -20,4 +20,4 @@ OERTickers getTickers( @QueryParam("base") String base, @QueryParam("symbols") String symbols) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java b/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java index 80e3e041071..e9a254d85a3 100644 --- a/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java +++ b/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java @@ -1,10 +1,10 @@ package org.knowm.xchange.paribu; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.paribu.dto.marketdata.ParibuTicker; /** @author semihunaldi */ @@ -15,4 +15,4 @@ public interface Paribu { @GET @Path("ticker") ParibuTicker getTicker() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java index 38fe780f28c..656ae883464 100644 --- a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java +++ b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java @@ -1,10 +1,10 @@ package org.knowm.xchange.paymium; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.paymium.dto.marketdata.PaymiumMarketDepth; import org.knowm.xchange.paymium.dto.marketdata.PaymiumTicker; import org.knowm.xchange.paymium.dto.marketdata.PaymiumTrade; @@ -28,4 +28,4 @@ public interface Paymium { @GET @Path("trades/") PaymiumTrade[] getTrades() throws IOException; -} +} \ No newline at end of file diff --git a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java index fe67f59a3eb..14ad61f1501 100644 --- a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java +++ b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.paymium.dto.account.PaymiumBalance; import org.knowm.xchange.paymium.dto.account.PaymiumOrder; import si.mazi.rescu.ParamsDigest; @@ -38,4 +38,4 @@ List getOrders( @QueryParam("types[]") List types, @QueryParam("active") Boolean active) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java index d6c38f152e2..6ec9d4c095c 100644 --- a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java +++ b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -32,4 +32,4 @@ public String digestParams(RestInvocation restInvocation) { mac.update(invocationUrl.getBytes()); return String.format("%064x", new BigInteger(1, mac.doFinal())); } -} +} \ No newline at end of file diff --git a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java index 9daecb1995c..7be460f4af1 100644 --- a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java +++ b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.util.HashMap; import java.util.Map; -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 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 org.knowm.xchange.poloniex.dto.PoloniexException; import org.knowm.xchange.poloniex.dto.marketdata.PoloniexChartData; import org.knowm.xchange.poloniex.dto.marketdata.PoloniexCurrencyInfo; @@ -62,4 +62,4 @@ PoloniexChartData[] getChartData( @QueryParam("end") Long endTime, @QueryParam("period") long period) throws PoloniexException, IOException; -} +} \ No newline at end of file diff --git a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java index 7c1f1c62d0d..1cda01463b8 100755 --- a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java +++ b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java @@ -5,13 +5,13 @@ import java.util.HashMap; import java.util.Map; import javax.annotation.Nullable; -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 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 org.knowm.xchange.poloniex.dto.PoloniexException; import org.knowm.xchange.poloniex.dto.account.PoloniexBalance; import org.knowm.xchange.poloniex.dto.account.PoloniexLoan; @@ -291,4 +291,4 @@ PoloniexDepositsWithdrawalsResponse returnDepositsWithdrawals( enum AllPairs { all } -} +} \ No newline at end of file diff --git a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java index 56e15e6b864..882dd015b9d 100644 --- a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java +++ b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java @@ -1,11 +1,11 @@ package org.knowm.xchange.quoine; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.quoine.dto.marketdata.QuoineOrderBook; import org.knowm.xchange.quoine.dto.marketdata.QuoineProduct; @@ -25,4 +25,4 @@ QuoineProduct getQuoineProduct(@PathParam("currency_pair_code") String currencyP @GET @Path("products/{product_id}/price_levels?full=1") QuoineOrderBook getOrderBook(@PathParam("product_id") int currencyPairCode) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java index 3cf4ca6f597..7bfd70f546a 100644 --- a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java +++ b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java @@ -1,16 +1,16 @@ package org.knowm.xchange.quoine; import java.io.IOException; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.quoine.dto.account.BitcoinAccount; import org.knowm.xchange.quoine.dto.account.FiatAccount; import org.knowm.xchange.quoine.dto.account.QuoineAccountBalance; @@ -132,4 +132,4 @@ QuoineTransactionsResponse transactions( @QueryParam("limit") Integer limit, @QueryParam("page") Integer page) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java index 6f70511eebd..dbf03b98bde 100644 --- a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java +++ b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java @@ -1,14 +1,14 @@ package org.knowm.xchange.ripple; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -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 jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +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 org.knowm.xchange.ripple.dto.RippleException; import org.knowm.xchange.ripple.dto.trade.RippleOrderCancelRequest; import org.knowm.xchange.ripple.dto.trade.RippleOrderCancelResponse; @@ -40,4 +40,4 @@ RippleOrderCancelResponse orderCancel( @QueryParam("validated") final boolean validated, final RippleOrderCancelRequest request) throws IOException, RippleException; -} +} \ No newline at end of file diff --git a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java index f0832b3c964..2b3fe8ec9e1 100644 --- a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java +++ b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java @@ -1,12 +1,12 @@ package org.knowm.xchange.ripple; import java.io.IOException; -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 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 org.knowm.xchange.ripple.dto.RippleException; import org.knowm.xchange.ripple.dto.account.RippleAccountBalances; import org.knowm.xchange.ripple.dto.account.RippleAccountSettings; @@ -90,4 +90,4 @@ RippleNotifications notifications( @GET @Path("transaction-fee") RippleTransactionFee getTransactionFee(); -} +} \ No newline at end of file diff --git a/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java b/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java index ea96c7e0210..2e5bafa03b1 100644 --- a/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java +++ b/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java @@ -3,11 +3,11 @@ import com.fasterxml.jackson.databind.JsonNode; import com.knowm.xchange.serum.dto.SolanaResponse; import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/") @Produces(MediaType.APPLICATION_JSON) @@ -16,4 +16,4 @@ public interface Serum { @POST @Consumes(MediaType.APPLICATION_JSON) SolanaResponse getAccountInfo(final JsonNode body) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java index 9adbb6f143d..63129cbdad6 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.Date; import java.util.Objects; -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 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 org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.therock.dto.TheRockException; import org.knowm.xchange.therock.dto.marketdata.TheRockOrderBook; @@ -67,4 +67,4 @@ public String toString() { return String.format("%s%s", pair.base.getCurrencyCode(), pair.counter.getCurrencyCode()); } } -} +} \ No newline at end of file diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java index 7b930ccf857..48f006af15e 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.Date; -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 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 org.knowm.xchange.therock.dto.TheRockException; import org.knowm.xchange.therock.dto.account.TheRockBalance; import org.knowm.xchange.therock.dto.account.TheRockBalances; @@ -144,4 +144,4 @@ TheRockTransactions transactions( @QueryParam("currency") String currency, @QueryParam("page") Integer page) throws TheRockException, IOException; -} +} \ No newline at end of file diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java index 5224aadc7c0..0b957334e5f 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java @@ -1,12 +1,12 @@ package org.knowm.xchange.therock; import java.io.IOException; -import javax.ws.rs.Consumes; -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 jakarta.ws.rs.Consumes; +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 org.knowm.xchange.therock.dto.TheRockException; import org.knowm.xchange.therock.dto.trade.TheRockOrder; import org.knowm.xchange.therock.service.TheRockDigest; @@ -30,4 +30,4 @@ TheRockOrder placeOrder( @HeaderParam(X_TRT_NONCE) SynchronizedValueFactory nonceFactory, TheRockOrder order) throws TheRockException, IOException; -} +} \ No newline at end of file diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java index 35f059b2345..3c848372759 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java @@ -4,7 +4,7 @@ import javax.crypto.Mac; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.HeaderParam; import org.knowm.xchange.therock.TheRockAuthenticated; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -36,4 +36,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%0128x", new BigInteger(1, mac.doFinal())); } -} +} \ No newline at end of file diff --git a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java index 06d012a4461..fce59fa70f6 100644 --- a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java +++ b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.knowm.xchange.tradeogre.dto.marketdata.TradeOgreOrderBook; import org.knowm.xchange.tradeogre.dto.marketdata.TradeOgreTicker; @@ -23,4 +23,4 @@ public interface TradeOgre { @GET @Path("orders/{market}") TradeOgreOrderBook getOrderBook(@PathParam("market") String market) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java index ce3de2e7acc..8009d90d138 100644 --- a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java +++ b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Collection; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.knowm.xchange.tradeogre.dto.account.TradeOgreBalance; import org.knowm.xchange.tradeogre.dto.account.TradeOgreBalances; import org.knowm.xchange.tradeogre.dto.trade.TradeOgreOrder; @@ -55,4 +55,4 @@ TradeOgreTradeResponse cancel( Collection getOrders( @HeaderParam("Authorization") String base64UserPwd, @FormParam("market") String market) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java b/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java index ddd2f1c5cc3..81c02417c2c 100644 --- a/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java +++ b/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java @@ -1,9 +1,9 @@ package org.knowm.xchange.truefx; import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.truefx.dto.marketdata.TrueFxTicker; @@ -12,4 +12,4 @@ public interface TrueFxPublic { @GET @Path("rates/connect.html?f=csv&c={pair}") TrueFxTicker getTicker(@PathParam("pair") CurrencyPair pair) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java index 9f10a3d5805..190035a86b4 100644 --- a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java +++ b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java @@ -2,9 +2,9 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.knowm.xchange.upbit.dto.UpbitException; import org.knowm.xchange.upbit.dto.marketdata.UpbitMarket; import org.knowm.xchange.upbit.dto.marketdata.UpbitOrderBooks; @@ -31,4 +31,4 @@ UpbitOrderBooks getOrderBook(@QueryParam("markets") String markets) @Path("trades/ticks") UpbitTrades getTrades(@QueryParam("market") String market, @QueryParam("count") int count) throws IOException, UpbitException; -} +} \ No newline at end of file diff --git a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java index 3e6c927a023..3855f0a6ee4 100644 --- a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java +++ b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java @@ -1,15 +1,15 @@ package org.knowm.xchange.upbit; import java.io.IOException; -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.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +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.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.upbit.dto.UpbitException; import org.knowm.xchange.upbit.dto.account.UpbitBalances; import org.knowm.xchange.upbit.dto.trade.UpbitOrderRequest; @@ -44,4 +44,4 @@ UpbitOrderResponse cancelOrder( UpbitOrderResponse getOrder( @HeaderParam("Authorization") ParamsDigest signatureCreator, @QueryParam("uuid") String uuid) throws IOException, UpbitException; -} +} \ No newline at end of file diff --git a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java index d9f66a3b9f6..33172c4b192 100644 --- a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java +++ b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java @@ -8,7 +8,7 @@ import java.util.Iterator; import java.util.Map; import java.util.UUID; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.QueryParam; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -54,4 +54,4 @@ public String digestParams(RestInvocation restInvocation) { String jwtToken = builder.sign(algorithm); return "Bearer " + jwtToken; } -} +} \ No newline at end of file diff --git a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java index e6cc2461dee..1479dea1593 100644 --- a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java +++ b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.vaultoro.dto.marketdata.VaultoroOrderBookResponse; import org.knowm.xchange.vaultoro.dto.marketdata.VaultoroTrade; @@ -25,4 +25,4 @@ public interface Vaultoro { @GET @Path("transactions/month") List getVaultoroTrades(String time) throws IOException, VaultoroException; -} +} \ No newline at end of file diff --git a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java index 286c77f5d32..ad023331bf3 100644 --- a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java +++ b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -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 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 org.knowm.xchange.vaultoro.dto.account.VaultoroBalancesResponse; import org.knowm.xchange.vaultoro.dto.trade.VaultoroCancelOrderResponse; import org.knowm.xchange.vaultoro.dto.trade.VaultoroNewOrderResponse; @@ -69,4 +69,4 @@ VaultoroCancelOrderResponse cancel( @QueryParam("apikey") String apiKey, @HeaderParam("X-Signature") ParamsDigest signature) throws IOException, VaultoroException; -} +} \ No newline at end of file diff --git a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java index c9bcb377a81..e9846478e7c 100644 --- a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java +++ b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java @@ -2,15 +2,15 @@ import java.io.IOException; import java.math.BigDecimal; -import javax.ws.rs.FormParam; -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 jakarta.ws.rs.FormParam; +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 org.knowm.xchange.yobit.dto.BaseYoBitResponse; import org.knowm.xchange.yobit.dto.marketdata.YoBitInfo; import org.knowm.xchange.yobit.dto.marketdata.YoBitOrderBooksReturn; @@ -132,4 +132,4 @@ BaseYoBitResponse trade( @FormParam("rate") BigDecimal price, @FormParam("amount") BigDecimal amount) throws IOException; -} +} \ No newline at end of file diff --git a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java index 69c5e021c79..a5d6d0dbf79 100644 --- a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java +++ b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java @@ -5,7 +5,7 @@ import java.nio.charset.Charset; import java.util.Random; import javax.crypto.Mac; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; import si.mazi.rescu.RestInvocation; @@ -44,4 +44,4 @@ private static String getRandomSecretKey() { new Random().nextBytes(array); return new String(array, Charset.forName("UTF-8")); } -} +} \ No newline at end of file diff --git a/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java b/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java index 6b05c0cf941..16d0ec1e82b 100644 --- a/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java +++ b/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.knowm.xchange.zaif.dto.ZaifException; import org.knowm.xchange.zaif.dto.marketdata.ZaifFullBook; import org.knowm.xchange.zaif.dto.marketdata.ZaifMarket; @@ -25,4 +25,4 @@ ZaifFullBook getDepth( @GET @Path("api/1/currency_pairs/all") List getCurrencyPairs(); -} +} \ No newline at end of file