HADOOP-14280. Fix compilation of TestKafkaMetrics.
This commit is contained in:
parent
7d963c477a
commit
7eea8d83fa
@ -36,32 +36,6 @@
|
|||||||
<downloadSources>true</downloadSources>
|
<downloadSources>true</downloadSources>
|
||||||
</properties>
|
</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>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
package org.apache.hadoop.metrics2.impl;
|
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 com.google.common.collect.Lists;
|
||||||
import org.apache.commons.configuration2.SubsetConfiguration;
|
import org.apache.commons.configuration2.SubsetConfiguration;
|
||||||
import org.apache.hadoop.metrics2.AbstractMetric;
|
import org.apache.hadoop.metrics2.AbstractMetric;
|
||||||
@ -74,7 +74,7 @@ public String description() {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Objects.toStringHelper(this).add("name", name())
|
return MoreObjects.toStringHelper(this).add("name", name())
|
||||||
.add("description", desc).toString();
|
.add("description", desc).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user