Skip to content

Commit

Permalink
Merge pull request #203 from arouel/remove-unused-imports
Browse files Browse the repository at this point in the history
Remove unused imports and replace deprecated JUnit import
  • Loading branch information
umairk79 authored Aug 26, 2024
2 parents e0affd6 + 36ec147 commit 7dada83
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
import com.netflix.concurrency.limits.internal.Preconditions;
import com.netflix.concurrency.limits.limit.measurement.ExpAvgMeasurement;
import com.netflix.concurrency.limits.limit.measurement.Measurement;
import com.netflix.concurrency.limits.limit.measurement.SingleMeasurement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Optional;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.netflix.concurrency.limits.limit;

import junit.framework.Assert;
import org.junit.Assert;
import org.junit.Test;

import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.netflix.concurrency.limits.limit;

import com.netflix.concurrency.limits.limit.measurement.ExpAvgMeasurement;

import org.junit.Assert;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

public class ExpAvgMeasurementTest {
@Test
public void testWarmup() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.netflix.concurrency.limits.limit;

import junit.framework.Assert;
import org.junit.Assert;
import org.junit.Test;

import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.netflix.concurrency.limits.Limiter;
import com.netflix.concurrency.limits.limit.SettableLimit;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

import com.netflix.concurrency.limits.grpc.server.GrpcServerLimiterBuilder;
import com.netflix.concurrency.limits.limit.Gradient2Limit;
import com.netflix.concurrency.limits.limit.GradientLimit;
import com.netflix.concurrency.limits.limit.WindowedLimit;

import java.io.IOException;
import java.text.MessageFormat;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Consumer;

public class Example {
public static void main(String[] args) throws IOException {
Expand Down Expand Up @@ -61,7 +58,7 @@ public static void main(String[] args) throws IOException {
e.printStackTrace();
}
}, 1, 1, TimeUnit.SECONDS);

// Create a client
driver.run();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.function.Supplier;

import com.netflix.concurrency.limits.MetricRegistry;
import com.netflix.spectator.api.Counter;
import com.netflix.spectator.api.DistributionSummary;
import com.netflix.spectator.api.Id;
import com.netflix.spectator.api.Registry;
Expand Down

0 comments on commit 7dada83

Please sign in to comment.