summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Alsharifi <bilal.alsharifi@gmail.com>2020-02-19 15:32:52 -0500
committerBilal Alsharifi <bilal.alsharifi@gmail.com>2020-02-19 15:32:52 -0500
commit9ec33af2d4c5eef78ea1c6c4b3defaf801af6815 (patch)
treed59fd76a7b8ae6a2f0b2115fb3762ea963189ebb
parentf6a10d835cb5253a9af1f8f54b21ee9a85a081fa (diff)
downloadsdl_android-9ec33af2d4c5eef78ea1c6c4b3defaf801af6815.tar.gz
Update formatting in SCM
-rw-r--r--base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java b/base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java
index 5ff022373..345a8da6e 100644
--- a/base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java
+++ b/base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java
@@ -335,7 +335,7 @@ public class SystemCapabilityManager {
* Sets a capability in the cached map. This should only be done when an RPC is received and contains updates to the capability
* that is being cached in the SystemCapabilityManager.
* @param systemCapabilityType the system capability type that will be set
- * @param capability the value of the capability that will be set
+ * @param capability the value of the capability that will be set
*/
public synchronized void setCapability(SystemCapabilityType systemCapabilityType, Object capability) {
cachedSystemCapabilities.put(systemCapabilityType, capability);
@@ -563,7 +563,7 @@ public class SystemCapabilityManager {
if (scListener != null) {
synchronized (LISTENER_LOCK) {
CopyOnWriteArrayList<OnSystemCapabilityListener> notifiedListeners = onSystemCapabilityListeners.get(systemCapabilityType);
- boolean listenerAlreadyNotified = notifiedListeners != null && notifiedListeners.contains(scListener);
+ boolean listenerAlreadyNotified = (notifiedListeners != null) && notifiedListeners.contains(scListener);
if (!listenerAlreadyNotified) {
scListener.onCapabilityRetrieved(retrievedCapability);
}