Skip to content

Commit dd24aeb

Browse files
Fix build on JDK 8
On JDK 8 the build fails with various Javadoc errors (tested with Oracle JDK 1.8.0_102). With this commit we fix these.
1 parent 74907a5 commit dd24aeb

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

src/main/java/com/higherfrequencytrading/affinity/AffinityLock.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class AffinityLock {
7474

7575
/**
7676
* Set the CPU layout for this machine. CPUs which are not mentioned will be ignored.
77-
* <p/>
77+
*
7878
* Changing the layout will have no impact on thread which have already been assigned.
7979
* It only affects subsequent assignments.
8080
*
@@ -107,7 +107,7 @@ public static void cpuLayout(CpuLayout cpuLayout) {
107107

108108
/**
109109
* Translate a layout id into a logical cpu id.
110-
* <p/>
110+
*
111111
* This translation is perform so that regardless of how
112112
*
113113
* @param id
@@ -149,7 +149,7 @@ public static AffinityLock acquireLock() {
149149

150150
/**
151151
* Assign any free core to this thread.
152-
* <p/>
152+
*
153153
* In reality, only one cpu is assigned, the rest of the threads for that core are reservable so they are not used.
154154
*
155155
* @return A handle for the current AffinityLock.
@@ -160,7 +160,7 @@ public static AffinityLock acquireCore() {
160160

161161
/**
162162
* Assign a cpu which can be bound to the current thread or another thread.
163-
* <p/>
163+
*
164164
* This can be used for defining your thread layout centrally and passing the handle via dependency injection.
165165
*
166166
* @param bind if true, bind the current thread, if false, reserve a cpu which can be bound later.
@@ -172,7 +172,7 @@ public static AffinityLock acquireLock(boolean bind) {
172172

173173
/**
174174
* Assign a core(and all its cpus) which can be bound to the current thread or another thread.
175-
* <p/>
175+
*
176176
* This can be used for defining your thread layout centrally and passing the handle via dependency injection.
177177
*
178178
* @param bind if true, bind the current thread, if false, reserve a cpu which can be bound later.
@@ -329,7 +329,7 @@ private boolean canReserve() {
329329

330330
/**
331331
* Give another affinity lock relative to this one based on a list of strategies.
332-
* <p/>
332+
*
333333
* The strategies are evaluated in order to (like a search path) to find the next appropriate thread.
334334
* If ANY is not the last strategy, a warning is logged and no cpu is assigned (leaving the OS to choose)
335335
*

src/main/java/com/higherfrequencytrading/affinity/AffinityThreadFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* This is a ThreadFactory which assigns threads based the strategies provided.
23-
* <p/>
23+
*
2424
* If no strategies are provided AffinityStrategies.ANY is used.
2525
*
2626
* @author peter.lawrey

src/main/java/com/higherfrequencytrading/affinity/impl/PosixJNAAffinity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Implementation of {@link IAffinity} based on JNA call of
2929
* sched_setaffinity(3)/sched_getaffinity(3) from 'c' library. Applicable for most
3030
* linux/unix platforms
31-
* <p/>
31+
*
3232
* TODO Support assignment to core 64 and above
3333
*
3434
* @author peter.lawrey

src/main/java/com/higherfrequencytrading/affinity/impl/WindowsJNAAffinity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
* Implementation of {@link com.higherfrequencytrading.affinity.IAffinity} based on JNA call of
3232
* sched_SetThreadAffinityMask/GetProcessAffinityMask from Windows 'kernel32' library. Applicable for
3333
* most windows platforms
34-
* <p/> *
3534
*
3635
* @author andre.monteiro
3736
*/

src/main/java/com/higherfrequencytrading/clock/IClock.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public interface IClock {
2626

2727
/**
2828
* The general contract is same, as {@link System#nanoTime()}:
29-
* <p/>
29+
*
3030
* Returns the current value of the most precise available system
3131
* timer, in nanoseconds.
32-
* <p/>
32+
*
3333
* <p>This method can only be used to measure elapsed time and is
3434
* not related to any other notion of system or wall-clock time.
3535
* The value returned represents nanoseconds since some fixed but
@@ -39,8 +39,8 @@ public interface IClock {
3939
* how frequently values change. Differences in successive calls
4040
* that span greater than approximately 292 years (2<sup>63</sup>
4141
* nanoseconds) will not accurately compute elapsed time due to
42-
* numerical overflow.
43-
* <p/>
42+
* numerical overflow.</p>
43+
*
4444
* <p> For example, to measure how long some code takes to execute:
4545
* <pre>
4646
* long startTime = clock.nanoTime();

0 commit comments

Comments
 (0)