Commit a9bfc66e authored by Yusuke Iwaki's avatar Yusuke Iwaki

fix coding style

parent f6fb3f61
......@@ -61,7 +61,7 @@ public class MainActivity extends AbstractAuthedActivity {
.subscribe(RxView.visibility(findViewById(R.id.user_action_container)));
}
private RealmListObserver<Room> mRoomsObserver = new RealmListObserver<Room>() {
private RealmListObserver<Room> roomsObserver = new RealmListObserver<Room>() {
@Override protected RealmResults<Room> queryItems(Realm realm) {
return realm.where(Room.class).findAll();
}
......@@ -73,11 +73,11 @@ public class MainActivity extends AbstractAuthedActivity {
@Override protected void onResume() {
super.onResume();
mRoomsObserver.sub();
roomsObserver.sub();
}
@Override protected void onPause() {
mRoomsObserver.unsub();
roomsObserver.unsub();
super.onPause();
}
}
......@@ -6,10 +6,16 @@ import chat.rocket.android.model.Room;
import chat.rocket.android.widget.internal.RoomListItemView;
import java.util.List;
/**
* Utility class for mapping Room list into channel list ViewGroup.
*/
public class RoomListManager {
private ViewGroup channelsContainer;
private ViewGroup dmContainer;
/**
* constructor with two ViewGroups.
*/
public RoomListManager(ViewGroup channelsContainer, ViewGroup dmContainer) {
this.channelsContainer = channelsContainer;
this.dmContainer = dmContainer;
......
......@@ -6,7 +6,8 @@ import io.realm.annotations.PrimaryKey;
/**
* Chat Room.
*/
@SuppressWarnings({"PMD.ShortClassName", "PMD.ShortVariable", "PMD.VariableNamingConventions"})
@SuppressWarnings({"PMD.ShortClassName", "PMD.ShortVariable",
"PMD.MethodNamingConventions", "PMD.VariableNamingConventions"})
public class Room extends RealmObject {
public static final String TYPE_CHANNEL = "c";
public static final String TYPE_PRIVATE = "p";
......
......@@ -6,7 +6,8 @@ import io.realm.annotations.PrimaryKey;
/**
* User.
*/
@SuppressWarnings({"PMD.ShortClassName", "PMD.ShortVariable", "PMD.VariableNamingConventions"})
@SuppressWarnings({"PMD.ShortClassName", "PMD.ShortVariable",
"PMD.MethodNamingConventions", "PMD.VariableNamingConventions"})
public class User extends RealmObject {
@PrimaryKey private String _id;
private String username;
......
......@@ -4,5 +4,7 @@
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<!-- suppress some checks for classes extending RealmObject -->
<suppress checks="JavadocMethod|MemberName" files="chat[\\/]rocket[\\/]android[\\/]model"/>
<suppress
checks="JavadocMethod|MemberName|ParameterName"
files="chat[\\/]rocket[\\/]android[\\/]model"/>
</suppressions>
\ No newline at end of file
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