HADOOP-14280. Fix compilation of TestKafkaMetrics.

This commit is contained in:
Andrew Wang 2017-04-05 15:12:03 -07:00
parent 7d963c477a
commit 7eea8d83fa
2 changed files with 2 additions and 28 deletions

View File

@ -36,32 +36,6 @@
<downloadSources>true</downloadSources>
</properties>
<profiles>
<profile>
<id>tests-off</id>
<activation>
<file>
<missing>src/test/resources/auth-keys.xml</missing>
</file>
</activation>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</profile>
<profile>
<id>tests-on</id>
<activation>
<file>
<exists>src/test/resources/auth-keys.xml</exists>
</file>
</activation>
<properties>
<maven.test.skip>false</maven.test.skip>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>

View File

@ -18,7 +18,7 @@
package org.apache.hadoop.metrics2.impl;
import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import com.google.common.collect.Lists;
import org.apache.commons.configuration2.SubsetConfiguration;
import org.apache.hadoop.metrics2.AbstractMetric;
@ -74,7 +74,7 @@ public String description() {
@Override
public String toString() {
return Objects.toStringHelper(this).add("name", name())
return MoreObjects.toStringHelper(this).add("name", name())
.add("description", desc).toString();
}
}