Rename getter "putSubtotal()" to "subtotal()"
MODIFY
analytics/src/main/java/com/segment/analytics/Properties.java
analytics/src/main/java/com/segment/analytics/Properties.java
@@ -282,7 +282,7 @@ public class Properties extends ValueMap {
return putValue(SUBTOTAL_KEY, subtotal);
}
- public double putSubtotal() {
+ public double subtotal() {
return getDouble(SUBTOTAL_KEY, 0);
}

MODIFY
analytics/src/test/java/com/segment/analytics/PropertiesTest.java
analytics/src/test/java/com/segment/analytics/PropertiesTest.java
@@ -115,7 +115,7 @@ public class PropertiesTest {
@Test
public void subtotal() {
properties.putSubtotal(9.99);
- assertThat(properties.putSubtotal()).isEqualTo(9.99);
+ assertThat(properties.subtotal()).isEqualTo(9.99);
}
@Test

Rename getter "putSubtotal()" to "subtotal()"