Browse Source

fix codacy

AndyScherzinger 6 years ago
parent
commit
24f7ae7f04

+ 3 - 8
src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java

@@ -240,14 +240,9 @@ public class NotificationsActivity extends FileActivity {
             client.setOwnCloudVersion(AccountUtils.getServerVersion(currentAccount));
 
             hideRefreshLayoutLoader();
-        } catch (com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException e) {
-            Log_OC.e(TAG, "Account not found", e);
-        } catch (IOException e) {
-            Log_OC.e(TAG, "IO error", e);
-        } catch (OperationCanceledException e) {
-            Log_OC.e(TAG, "Operation has been canceled", e);
-        } catch (AuthenticatorException e) {
-            Log_OC.e(TAG, "Authentication Exception", e);
+        } catch (com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException |
+                IOException | OperationCanceledException | AuthenticatorException e) {
+            Log_OC.e(TAG, "Error initializing client", e);
         }
 
         adapter = new NotificationListAdapter(client, this);