Skip to content

Commit ed9e3fe

Browse files
HeniganHenigan
authored andcommitted
Deprecations for 5.0 release
1 parent 5fd420c commit ed9e3fe

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/GlobalPropertyTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void testValidEnums() {
3232
GlobalProperty enumMenuIcon = GlobalProperty.valueForString(example);
3333
example = "KEYBOARDPROPERTIES";
3434
GlobalProperty enumKeyboardProperties = GlobalProperty.valueForString(example);
35-
example = "USERLOCATION";
35+
example = "USER_LOCATION";
3636
GlobalProperty enumUserLocation = GlobalProperty.valueForString(example);
3737

3838
assertNotNull("HELPPROMPT returned null", enumHelpPrompt);
@@ -42,7 +42,7 @@ public void testValidEnums() {
4242
assertNotNull("MENUNAME returned null", enumMenuName);
4343
assertNotNull("MENUICON returned null", enumMenuIcon);
4444
assertNotNull("KEYBOARDPROPERTIES returned null", enumKeyboardProperties);
45-
assertNotNull("USERLOCATION returned null", enumUserLocation);
45+
assertNotNull("USER_LOCATION returned null", enumUserLocation);
4646
}
4747

4848
/**
@@ -86,6 +86,7 @@ public void testListEnum() {
8686
enumTestList.add(GlobalProperty.MENUICON);
8787
enumTestList.add(GlobalProperty.KEYBOARDPROPERTIES);
8888
enumTestList.add(GlobalProperty.USERLOCATION);
89+
enumTestList.add(GlobalProperty.USER_LOCATION);
8990

9091
assertTrue("Enum value list does not match enum class list",
9192
enumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));

base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlData.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* Seat control data corresponds to "SEAT" ModuleType.
4444
*/
4545
public class SeatControlData extends RPCStruct {
46+
@Deprecated
4647
public static final String KEY_ID = "id";
4748
public static final String KEY_HEATING_ENABLED = "heatingEnabled";
4849
public static final String KEY_COOLING_ENABLED = "coolingEnabled";
@@ -81,6 +82,7 @@ public SeatControlData(Hashtable<String, Object> hash) {
8182
*
8283
* @param id type of SupportedSeat.
8384
*/
85+
@Deprecated
8486
public SeatControlData(@NonNull SupportedSeat id) {
8587
this();
8688
setId(id);
@@ -91,6 +93,7 @@ public SeatControlData(@NonNull SupportedSeat id) {
9193
*
9294
* @param id
9395
*/
96+
@Deprecated
9497
public SeatControlData setId(@NonNull SupportedSeat id) {
9598
setValue(KEY_ID, id);
9699
return this;
@@ -101,6 +104,7 @@ public SeatControlData setId(@NonNull SupportedSeat id) {
101104
*
102105
* @return SupportedSeat.
103106
*/
107+
@Deprecated
104108
public SupportedSeat getId() {
105109
return (SupportedSeat) getObject(SupportedSeat.class, KEY_ID);
106110
}

base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayout.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
*
9595
* @since SmartDeviceLink 2.0
9696
*/
97+
@Deprecated
9798
public class SetDisplayLayout extends RPCRequest {
9899
public static final String KEY_DISPLAY_LAYOUT = "displayLayout";
99100
public static final String KEY_DAY_COLOR_SCHEME = "dayColorScheme";

base/src/main/java/com/smartdevicelink/proxy/rpc/SetDisplayLayoutResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
*
4747
* @since SmartDeviceLink 2.0
4848
*/
49+
@Deprecated
4950
public class SetDisplayLayoutResponse extends RPCResponse {
5051
public static final String KEY_BUTTON_CAPABILITIES = "buttonCapabilities";
5152
public static final String KEY_DISPLAY_CAPABILITIES = "displayCapabilities";

base/src/main/java/com/smartdevicelink/proxy/rpc/enums/DisplayType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* @since SmartDeviceLink 1.0
3838
*/
39-
39+
@Deprecated
4040
public enum DisplayType {
4141
/**
4242
* Center Information Display.

base/src/main/java/com/smartdevicelink/proxy/rpc/enums/GlobalProperty.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ public enum GlobalProperty {
7171

7272
KEYBOARDPROPERTIES,
7373

74+
@Deprecated
75+
USERLOCATION,
76+
7477
/**
7578
* The user seat location of setGlobalProperties
7679
*/
77-
USERLOCATION;
80+
USER_LOCATION;
7881

7982
/**
8083
* Convert String to GlobalProperty

0 commit comments

Comments
 (0)