package com.vexus2.jenkins.chatwork.jenkinschatworkplugin.api;

import org.apache.commons.lang.StringUtils;

import java.util.Comparator;

public class RoomComparator implements Comparator<Room> {
  @Override
  public int compare(Room room1, Room room2) {
    // 1st sort key
    if(!StringUtils.equals(room1.type, room2.type)){
      return room1.type.compareTo(room2.type);
    }

    // 2nd sort key
    return room1.name.compareTo(room2.name);
  }
}

@@ -102,16 +102,45 @@
 Utils;%0A%0A
+import java.io.Serializable;%0A
 import j
@@ -216,16 +216,30 @@
 or%3CRoom%3E
+, Serializable
  %7B%0A  @Ov

Resolve SE_COMPARATOR_SHOULD_BE_SERIALIZABLE