1 | package pl.zankowski.iextrading4j.client.properties; | |
2 | ||
3 | public enum PropertyType { | |
4 | ||
5 | API_REST_V1("https://api.iextrading.com/1.0"), | |
6 | API_REST_V2("https://cloud.iexapis.com/v1"), | |
7 | API_REST_V2_SANDBOX("https://sandbox.iexapis.com/v1"), | |
8 | API_REST_V2_BETA("https://cloud.iexapis.com/beta"), | |
9 | API_REST_V2_BETA_SANDBOX("https://sandbox.iexapis.com/beta"), | |
10 | API_REST_STABLE("https://cloud.iexapis.com/stable"), | |
11 | API_REST_STABLE_SANDBOX("https://sandbox.iexapis.com/stable"), | |
12 | ||
13 | API_SSE_V2("https://cloud-sse.iexapis.com/v1"), | |
14 | API_SSE_V2_SANDBOX("https://sandbox-sse.iexapis.com/v1"), | |
15 | ||
16 | API_SOCKET_V1("https://ws-api.iextrading.com/1.0"), | |
17 | API_SOCKET_V2("https://ws-cloud.iexapis.com/v1"), | |
18 | API_SOCKET_V2_SANDBOX("https://ws-sandbox.iexapis.com/v1"), | |
19 | ||
20 | FAIL_ON_UNKNOWN_PROPERTIES("false"); | |
21 | ||
22 | private final String defaultValue; | |
23 | ||
24 | PropertyType(final String defaultValue) { | |
25 | this.defaultValue = defaultValue; | |
26 | } | |
27 | ||
28 | public String getDefaultValue() { | |
29 |
1
1. getDefaultValue : replaced return value with "" for pl/zankowski/iextrading4j/client/properties/PropertyType::getDefaultValue → SURVIVED |
return defaultValue; |
30 | } | |
31 | ||
32 | } | |
Mutations | ||
29 |
1.1 |