mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Clean up some code quality issues
This removes some qualifiers that aren't necessary (e.g. public/abstract on interfaces, private on enum constructors, final on private methods, static on nested interfaces/enums), uses Java 8 lambdas and features where that's an improvement ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177182945
This commit is contained in:
parent
0935ba6450
commit
e2db3f914e
109 changed files with 286 additions and 379 deletions
|
@ -17,6 +17,7 @@ package google.registry.monitoring.metrics.contrib;
|
|||
import static com.google.common.truth.Truth.assertAbout;
|
||||
|
||||
import com.google.common.truth.FailureMetadata;
|
||||
import com.google.common.truth.Subject;
|
||||
import google.registry.monitoring.metrics.Metric;
|
||||
import google.registry.monitoring.metrics.MetricPoint;
|
||||
import javax.annotation.Nullable;
|
||||
|
@ -43,8 +44,11 @@ import javax.annotation.Nullable;
|
|||
*/
|
||||
public final class LongMetricSubject extends AbstractMetricSubject<Long, LongMetricSubject> {
|
||||
|
||||
/** {@link Subject.Factory} for assertions about {@link Metric<Long>} objects. */
|
||||
/** Static assertThat({@link Metric<Long>}) shortcut method. */
|
||||
/**
|
||||
* Static assertThat({@link Metric<Long>}) shortcut method.
|
||||
*
|
||||
* @see Subject.Factory for assertions about {@link Metric<Long>} objects.
|
||||
*/
|
||||
public static LongMetricSubject assertThat(@Nullable Metric<Long> metric) {
|
||||
return assertAbout(LongMetricSubject::new).that(metric);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue