Skip to content

Commit cfd0aba

Browse files
committed
clean up and de-deprecate
1 parent bdc23d7 commit cfd0aba

File tree

4 files changed

+4
-891
lines changed

4 files changed

+4
-891
lines changed

affinity/src/test/java/net/openhft/affinity/impl/NativeAffinityImpTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package net.openhft.affinity.impl;
1919

20-
import net.openhft.affinity.AffinitySupport;
20+
import net.openhft.affinity.Affinity;
2121
import net.openhft.affinity.IAffinity;
2222
import org.junit.Assume;
2323
import org.junit.BeforeClass;
@@ -45,7 +45,7 @@ public IAffinity getImpl() {
4545
public void testGettid() {
4646
System.out.println("pid=" + getImpl().getProcessId());
4747
System.out.println("tid=" + getImpl().getThreadId());
48-
AffinitySupport.setThreadId();
48+
Affinity.setThreadId();
4949

5050
for (int j = 0; j < 3; j++) {
5151
final int runs = 100000;

affinity/src/test/java/net/openhft/affinity/impl/PosixJNAAffinityTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package net.openhft.affinity.impl;
1919

2020
import net.openhft.affinity.Affinity;
21-
import net.openhft.affinity.AffinitySupport;
2221
import net.openhft.affinity.IAffinity;
2322
import org.junit.Assume;
2423
import org.junit.BeforeClass;
@@ -44,7 +43,7 @@ public IAffinity getImpl() {
4443
public void testGettid() {
4544
System.out.println("pid=" + getImpl().getProcessId());
4645
System.out.println("tid=" + getImpl().getThreadId());
47-
AffinitySupport.setThreadId();
46+
Affinity.setThreadId();
4847

4948
for (int j = 0; j < 3; j++) {
5049
final int runs = 100000;

affinity/src/test/java/net/openhft/affinity/impl/VanillaCpuLayoutTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.io.IOException;
2323
import java.io.InputStream;
2424

25-
import static junit.framework.Assert.assertEquals;
25+
import static org.junit.Assert.assertEquals;
2626

2727
/**
2828
* @author peter.lawrey

0 commit comments

Comments
 (0)