Commit ffacfed8 authored by Yusuke Iwaki's avatar Yusuke Iwaki

fix lint bug.

parent 9cbe434d
...@@ -166,7 +166,7 @@ public class RoomFragment extends AbstractChatRoomFragment ...@@ -166,7 +166,7 @@ public class RoomFragment extends AbstractChatRoomFragment
fieldSlidable.setAccessible(true); fieldSlidable.setAccessible(true);
fieldSlidable.setBoolean(pane, !opened); fieldSlidable.setBoolean(pane, !opened);
} catch (Exception exception) { } catch (Exception exception) {
Timber.w(exception); Timber.w(exception, "failed to set CanSlide.");
} }
}); });
} }
......
...@@ -50,7 +50,7 @@ abstract class AbstractRealmResultsObserver<T extends RealmObject> { ...@@ -50,7 +50,7 @@ abstract class AbstractRealmResultsObserver<T extends RealmObject> {
realm.close(); realm.close();
} }
} catch (IllegalStateException exception) { } catch (IllegalStateException exception) {
Timber.w(exception); Timber.w(exception, "failed to unsub. ignore.");
} }
} }
......
...@@ -59,7 +59,7 @@ public class RealmHelper { ...@@ -59,7 +59,7 @@ public class RealmHelper {
T source = transaction.execute(realm); T source = transaction.execute(realm);
return source != null ? realm.copyFromRealm(source) : null; return source != null ? realm.copyFromRealm(source) : null;
} catch (Exception exception) { } catch (Exception exception) {
Timber.w(exception); Timber.w(exception, "failed to execute copyFromRealm");
return null; return null;
} }
} }
...@@ -69,7 +69,7 @@ public class RealmHelper { ...@@ -69,7 +69,7 @@ public class RealmHelper {
try (Realm realm = instance()) { try (Realm realm = instance()) {
return realm.copyFromRealm(transaction.execute(realm)); return realm.copyFromRealm(transaction.execute(realm));
} catch (Exception exception) { } catch (Exception exception) {
Timber.w(exception); Timber.w(exception, "failed to execute copyFromRealm");
return Collections.emptyList(); return Collections.emptyList();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment