Skip to content

Commit 25b2106

Browse files
committed
Fix newlines
1 parent cfdc2f6 commit 25b2106

File tree

13 files changed

+9
-15
lines changed

13 files changed

+9
-15
lines changed

affinity-test/src/test/java/net/openhft/affinity/osgi/OSGiTestBase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ public static Bundle findBundle(BundleContext context, String symbolicName) {
6161
return null;
6262
}
6363
}
64-

affinity/src/main/java/net/openhft/affinity/LockCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ static boolean updateCpu(int cpu) throws IOException {
100100
public static void releaseLock(int cpu) {
101101
lockChecker.releaseLock(cpu);
102102
}
103-
}
103+
}

affinity/src/main/java/net/openhft/affinity/LockInventory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ && updateLockForCurrentThread(bind, al, false)) {
159159
return noLock();
160160
}
161161

162-
163162
LOGGER.warn("No reservable CPU for {}", Thread.currentThread());
164163

165164
return noLock();
@@ -181,7 +180,6 @@ && updateLockForCurrentThread(bind, required, false)) {
181180
return noLock();
182181
}
183182

184-
185183
LOGGER.warn("Unable to acquire lock on CPU {} for thread {}, trying to find another CPU",
186184
cpuId, Thread.currentThread());
187185

affinity/src/main/java/net/openhft/affinity/MicroJitterSampler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ private static void pause() throws InterruptedException {
4646
} else {
4747
Thread.sleep(1);
4848
}
49-
5049
}
5150

5251
public static void main(String... ignored) throws InterruptedException {
@@ -133,7 +132,6 @@ void print(PrintStream ps) {
133132
ps.println();
134133
}
135134
}
136-
137135
/* e.g.
138136
Ubuntu 20.04, Ryzen 5950X with an isolated CPU. (init 3) sudo cpupower -c {cpu} -g performance, run from command line
139137
After 3600 seconds, the average per hour was

affinity/src/main/java/net/openhft/affinity/impl/LinuxHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ cpu_set_t sched_getaffinity() {
6969
public static void sched_setaffinity(final BitSet affinity) {
7070
sched_setaffinity(0, affinity);
7171
}
72-
72+
7373
public static void sched_setaffinity(final int pid, final BitSet affinity) {
7474
final CLibrary lib = CLibrary.INSTANCE;
7575
final cpu_set_t cpuset = new cpu_set_t();

affinity/src/main/java/net/openhft/affinity/impl/VersionHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@ public boolean isSameOrNewer(final VersionHelper ver) {
7777
&& this.release >= ver.release));
7878
}
7979
}
80-

affinity/src/main/java/net/openhft/ticker/Ticker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ public static long toNanos(long ticks) {
5858
public static double toMicros(long ticks) {
5959
return INSTANCE.toMicros(ticks);
6060
}
61-
}
61+
}

affinity/src/main/java/net/openhft/ticker/impl/JNIClock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ public long toNanos(long ticks) {
103103
public double toMicros(double ticks) {
104104
return ticks * RDTSC_MICRO_FACTOR;
105105
}
106-
}
106+
}

affinity/src/main/java/net/openhft/ticker/impl/SystemClock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ public long toNanos(long ticks) {
4747
public double toMicros(double ticks) {
4848
return ticks / 1e3;
4949
}
50-
}
50+
}

affinity/src/test/java/net/openhft/affinity/BootClassPathTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ public void shouldDetectClassesOnClassPath() {
3030
assertTrue(BootClassPath.INSTANCE.has("java.lang.Thread"));
3131
assertTrue(BootClassPath.INSTANCE.has("java.lang.Runtime"));
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)