talk-android/app/src/main/java/com/nextcloud/talk
Tim Krüger 5ad6da86f1
Use Boolean constant values directly
From the SpotBugs report:

> NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION: Method needlessly boxes a boolean
> constant
>
> This method assigns a Boxed boolean constant to a primitive boolean variable,
> or assigns a primitive boolean constant to a Boxed boolean variable. Use the
> correct constant for the variable desired. Use
>
>
> boolean b = true;
> boolean b = false;
>
> or
>
>
> Boolean b = Boolean.TRUE;
> Boolean b = Boolean.FALSE;
>
> Be aware that this boxing happens automatically when you might not expect it.
> For example,
>
>
> Map statusMap = ...
>
> public Boolean someMethod() {
>     statusMap.put("foo", true);  //the "true" here is boxed
>     return false;  //the "false" here is boxed
> }
>
> has two cases of this needless autoboxing. This can be made more efficient by
> simply substituting in the constant values:
>
>
> Map statusMap = ...
>
> public Boolean someMethod() {
>     statusMap.put("foo", Boolean.TRUE);
>     return Boolean.FALSE;
> }

Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-03-07 13:11:23 +01:00
..
activities set fixed avatar sizes for requests 2022-03-02 15:15:22 +01:00
adapters set fixed avatar sizes for requests 2022-03-02 15:15:22 +01:00
api show status for autocomplete mentions 2022-02-25 12:11:42 +01:00
application Adopt more parts from files app [WIP] 2022-02-25 12:11:36 +01:00
callbacks codacy: Avoid unused imports 2021-05-17 13:35:34 +02:00
components/filebrowser migrate FlexibleItems to native view bindings 2022-02-25 12:11:46 +01:00
controllers revert commit d76203a0 2022-03-04 09:23:42 +01:00
dagger/modules remove avatar blurring for background (=fix blocking of call controls) 2021-11-11 13:52:18 +01:00
events modify copyright headers authors 2022-02-16 11:34:10 +01:00
interfaces add copyright + minor refactoring 2022-01-26 15:00:31 +01:00
jobs Migrate push models to kotlin data classes 2022-03-07 09:50:19 +01:00
models adapt to java->kotlin changes regarding null-ability 2022-03-07 09:55:30 +01:00
presenters add author to license headers 2022-02-25 12:11:44 +01:00
receivers Remove unused notification channels during upgrade 2022-01-05 11:03:58 +01:00
ui revert commit d76203a0 2022-03-04 09:23:42 +01:00
utils Use Boolean constant values directly 2022-03-07 13:11:23 +01:00
webrtc Rename MagicPeerConnectionWrapper to PeerConnectionWrapper 2022-02-23 12:21:41 +01:00