*/
package org.sonar.server.qualityprofile;
-import com.google.common.base.Objects;
-
import javax.annotation.Nullable;
public class QProfileName {
@Override
public boolean equals(@Nullable Object o) {
- if (this == o) return true;
+ if (this == o)
+ return true;
if (o == null || getClass() != o.getClass()) {
return false;
}
@Override
public String toString() {
- return Objects.toStringHelper("QProfile")
- .add("lang", lang)
- .add("name", name)
- .toString();
+ return String.format("[%s, %s]", lang, name);
}
}
@Test
public void to_string() throws Exception {
- assertThat(new QProfileName("xoo", "p1").toString()).isEqualTo("QProfile{lang=xoo, name=p1}");
+ assertThat(new QProfileName("xoo", "p1").toString()).isEqualTo("[xoo, p1]");
}
}