Skip to content

Commit 873b6bf

Browse files
committed
#164 : Maven - Bumped Lombok for JDK21
* Tweaked maven compiler settings for JDK21. * Fixed Javadoc earnings in exchange adapters.
1 parent 7813d0c commit 873b6bf

File tree

27 files changed

+137
-5
lines changed

27 files changed

+137
-5
lines changed

bxbot-core/src/main/java/com/gazbert/bxbot/core/config/exchange/ExchangeConfigImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public class ExchangeConfigImpl implements ExchangeConfig {
4242
private NetworkConfig networkConfig;
4343
private OtherConfig otherConfig;
4444

45+
/** Creates the Exchange Config impl. */
46+
public ExchangeConfigImpl() {
47+
// No extra init needed.
48+
}
49+
4550
@Override
4651
public String getExchangeName() {
4752
return exchangeName;

bxbot-core/src/main/java/com/gazbert/bxbot/core/config/strategy/StrategyConfigItems.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public final class StrategyConfigItems implements StrategyConfig {
3939

4040
private Map<String, String> items = new HashMap<>();
4141

42+
/** Creates the Strategy Config Items. */
43+
public StrategyConfigItems() {
44+
// No extra init needed.
45+
}
46+
4247
@Override
4348
public String getConfigItem(String key) {
4449
return items.get(key);

bxbot-core/src/main/java/com/gazbert/bxbot/core/config/strategy/TradingStrategiesBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public class TradingStrategiesBuilder {
5050

5151
private TradingStrategyFactory tradingStrategyFactory;
5252

53+
/** Creates the Trading Strategies Builder. */
54+
public TradingStrategiesBuilder() {
55+
// No extra init needed.
56+
}
57+
5358
/**
5459
* Sets the trading strategy factory.
5560
*

bxbot-core/src/main/java/com/gazbert/bxbot/core/util/ConfigurableComponentFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
@Log4j2
3838
public class ConfigurableComponentFactory {
3939

40+
/** Creates the Configurable Component Factory. */
41+
public ConfigurableComponentFactory() {
42+
// No extra init needed.
43+
}
44+
4045
/**
4146
* Loads and instantiates a given class and returns it.
4247
*

bxbot-domain-objects/src/main/java/com/gazbert/bxbot/domain/exchange/ExchangeConfig.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public class ExchangeConfig {
3737

3838
@Schema(
39-
requiredMode = Schema.RequiredMode.REQUIRED,
39+
requiredMode = Schema.RequiredMode.REQUIRED,
4040
description =
4141
"The Exchange name. It is used in log statements to display the Exchange's name."
4242
+ " Value must be an alphanumeric string. Spaces are allowed.")
@@ -69,6 +69,11 @@ public class ExchangeConfig {
6969
+ "any additional config, e.g. buy/sell fees.")
7070
private Map<String, String> otherConfig;
7171

72+
/** Creates the Exchange config. */
73+
public ExchangeConfig() {
74+
// No extra init needed.
75+
}
76+
7277
/**
7378
* Returns the name.
7479
*

bxbot-exchanges/src/main/java/com/gazbert/bxbot/exchanges/BitfinexExchangeAdapter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ public final class BitfinexExchangeAdapter extends AbstractExchangeAdapter
135135

136136
private Gson gson;
137137

138+
/** Constructs the Exchange Adapter. */
139+
public BitfinexExchangeAdapter() {
140+
// No extra init.
141+
}
142+
138143
@Override
139144
public void init(ExchangeConfig config) {
140145
log.info("About to initialise Bitfinex ExchangeConfig: " + config);

bxbot-exchanges/src/main/java/com/gazbert/bxbot/exchanges/BitstampExchangeAdapter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ public class BitstampExchangeAdapter extends AbstractExchangeAdapter implements
129129

130130
private Gson gson;
131131

132+
/** Constructs the Exchange Adapter. */
133+
public BitstampExchangeAdapter() {
134+
// No extra init.
135+
}
136+
132137
@Override
133138
public void init(ExchangeConfig config) {
134139
log.info("About to initialise Bitstamp ExchangeConfig: " + config);

bxbot-exchanges/src/main/java/com/gazbert/bxbot/exchanges/CoinbaseProExchangeAdapter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ public final class CoinbaseProExchangeAdapter extends AbstractExchangeAdapter
141141

142142
private Gson gson;
143143

144+
/** Constructs the Exchange Adapter. */
145+
public CoinbaseProExchangeAdapter() {
146+
// No extra init.
147+
}
148+
144149
@Override
145150
public void init(ExchangeConfig config) {
146151
log.info("About to initialise COINBASE PRO ExchangeConfig: " + config);

bxbot-exchanges/src/main/java/com/gazbert/bxbot/exchanges/GeminiExchangeAdapter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ public String getStringValue() {
160160

161161
private Gson gson;
162162

163+
/** Constructs the Exchange Adapter. */
164+
public GeminiExchangeAdapter() {
165+
// No extra init.
166+
}
167+
163168
@Override
164169
public void init(ExchangeConfig config) {
165170
log.info("About to initialise Gemini ExchangeConfig: " + config);

bxbot-exchanges/src/main/java/com/gazbert/bxbot/exchanges/KrakenExchangeAdapter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,13 @@ public final class KrakenExchangeAdapter extends AbstractExchangeAdapter
188188

189189
private Mac mac;
190190
private boolean initializedMacAuthentication = false;
191-
192191
private Gson gson;
193192

193+
/** Constructs the Exchange Adapter. */
194+
public KrakenExchangeAdapter() {
195+
// No extra init.
196+
}
197+
194198
@Override
195199
public void init(ExchangeConfig config) {
196200
log.info("About to initialise Kraken ExchangeConfig: " + config);

0 commit comments

Comments
 (0)