Skip to content

Commit d22dbb4

Browse files
committed
fixing the remaining jdk 8 javadoc errors
1 parent b476b4e commit d22dbb4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+134
-81
lines changed

java/server/src/cybervillains/ca/CertificateCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class CertificateCreator {
4646
* @throws NoSuchProviderException provider is invalid
4747
* @throws NoSuchAlgorithmException algorithm exception
4848
* @throws CertificateException a problem with the certificate
49+
* @throws SignatureException signature exception
4950
* @param keyPair keyPair for the certificate
5051
* @return a X509 Certificate
5152
*/

java/server/src/cybervillains/ca/KeyStoreManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ public synchronized X509Certificate getCertificateByHostname(final String hostna
489489
* Gets the authority root signing cert.
490490
*
491491
* @throws KeyStoreException keystore
492+
* @return certificate
492493
*/
493494
public synchronized X509Certificate getSigningCert() throws KeyStoreException {
494495
return _caCert;
@@ -497,7 +498,7 @@ public synchronized X509Certificate getSigningCert() throws KeyStoreException {
497498
/**
498499
* Gets the authority private signing key.
499500
*
500-
* @@throws KeyStoreException key store exception
501+
* @throws KeyStoreException key store exception
501502
* @throws UnrecoverableKeyException unrecoverable key
502503
* @throws NoSuchAlgorithmException no such algorithm
503504
* @return private key
@@ -519,6 +520,7 @@ public synchronized PrivateKey getSigningPrivateKey() throws KeyStoreException,
519520
* @throws CertificateException certificate
520521
* @throws SignatureException signature
521522
* @throws InvalidKeyException invalid key
523+
* @param hostname host name
522524
* @return mapped certificate
523525
*/
524526
public X509Certificate getMappedCertificateForHostname(String hostname)
@@ -568,7 +570,7 @@ private synchronized void persistSubjectMap() {
568570
}
569571

570572
/**
571-
* Generate an RSA Key Pair
573+
* @return Generated RSA Key Pair
572574
*/
573575
public KeyPair getRSAKeyPair()
574576
{

java/server/src/org/openqa/grid/internal/BaseRemoteProxy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public CapabilityMatcher getCapabilityHelper() {
103103

104104

105105
/**
106-
* Create the proxy from the info sent by the remote. <p/> If maxSession is not specified, default
107-
* to 1 = max number of tests running at a given time will be 1. <p/> For each capability,
106+
* Create the proxy from the info sent by the remote. <p> If maxSession is not specified, default
107+
* to 1 = max number of tests running at a given time will be 1. <p> For each capability,
108108
* maxInstances is defaulted to 1 if not specified = max number of test of each capability running
109-
* at a time will be 1. maxInstances for firefox can be > 1. IE won't support it.
109+
* at a time will be 1. maxInstances for firefox can be &gt; 1. IE won't support it.
110110
*
111111
* @param request The request
112112
* @param registry The registry to use

java/server/src/org/openqa/grid/internal/Registry.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ public void removeIfPresent(RemoteProxy proxy) {
186186

187187
/**
188188
* Releases the test slot, WITHOUT running any listener.
189+
* @param testSlot test slot to be released
190+
* @param reason reason for termination
189191
*/
190192
public void forceRelease(TestSlot testSlot, SessionTerminationReason reason) {
191193
if (testSlot.getSession() == null) {
@@ -378,7 +380,7 @@ public void add(RemoteProxy proxy) {
378380
/**
379381
* If throwOnCapabilityNotPresent is set to true, the hub will reject test request for a
380382
* capability that is not on the grid. No exception will be thrown if the capability is present
381-
* but busy. <p/> If set to false, the test will be queued hoping a new proxy will register later
383+
* but busy. <p> If set to false, the test will be queued hoping a new proxy will register later
382384
* offering that capability.
383385
*
384386
* @param throwOnCapabilityNotPresent true to throw if capability not present

java/server/src/org/openqa/grid/internal/RemoteProxy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.Map;
3131

3232
/**
33-
* Proxy to a remote server executing the tests. <p/> The proxy keeps a state of what is happening
33+
* Proxy to a remote server executing the tests. <p> The proxy keeps a state of what is happening
3434
* on the remote server and knows if a new test can be run on the remote server. There are several
3535
* reasons why a test could not be run on the specified remote server, for instance: if the
3636
* RemoteProxy decides the remote server has reached the maximum number of concurrent sessions, or
@@ -163,9 +163,9 @@ public interface RemoteProxy extends Comparable<RemoteProxy> {
163163

164164
/**
165165
* Checks if the node has the capability requested.
166-
* <br /><br />
166+
* <br>
167167
* The definition of "has" is defined by {@link CapabilityMatcher#matches(Map, Map)}
168-
* <br /><br />
168+
* <br>
169169
* <code>hasCapability = true</code> doesn't mean the test cast start just now, only that the proxy will be
170170
* able to run a test requiring that capability at some point.
171171
*

java/server/src/org/openqa/grid/internal/TestSession.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
/**
6868
* Represent a running test for the hub/registry. A test session is created when a TestSlot becomes
69-
* available for a test. <p/> The session is destroyed when the test ends ( ended by the client or
69+
* available for a test. <p> The session is destroyed when the test ends ( ended by the client or
7070
* timed out)
7171
*/
7272
@SuppressWarnings("JavaDoc")
@@ -91,7 +91,7 @@ public String getInternalKey() {
9191
return internalKey;
9292
}
9393

94-
/**
94+
/*
9595
* Creates a test session on the specified testSlot.
9696
*/
9797
public TestSession(TestSlot slot, Map<String, Object> requestedCapabilities,
@@ -104,7 +104,7 @@ public TestSession(TestSlot slot, Map<String, Object> requestedCapabilities,
104104
}
105105

106106
/**
107-
* the capabilities the client requested. It will match the TestSlot capabilities, but is not
107+
* @return the capabilities the client requested. It will match the TestSlot capabilities, but is not
108108
* equals.
109109
*/
110110
public Map<String, Object> getRequestedCapabilities() {
@@ -123,6 +123,7 @@ public ExternalSessionKey getExternalKey() {
123123

124124
/**
125125
* associate this session to the session provided by the remote.
126+
* @param externalKey external session key
126127
*/
127128
public void setExternalKey(ExternalSessionKey externalKey) {
128129
this.externalKey = externalKey;
@@ -203,7 +204,7 @@ private HttpClient getClient() {
203204
return slot.getProxy().getHttpClientFactory().getGridHttpClient(browserTimeout, browserTimeout);
204205
}
205206

206-
/**
207+
/*
207208
* forwards the request to the node.
208209
*/
209210
public String forward(SeleniumBasedRequest request, HttpServletResponse response,
@@ -508,6 +509,7 @@ private void processResponseHeaders(HttpServletRequest request, HttpServletRespo
508509
/**
509510
* Allow you to retrieve an object previously stored on the test session.
510511
*
512+
* @param key key
511513
* @return the object you stored
512514
*/
513515
public Object get(String key) {
@@ -518,6 +520,7 @@ public Object get(String key) {
518520
* Allows you to store an object on the test session.
519521
*
520522
* @param key a non-null string
523+
* @param value value object
521524
*/
522525
public void put(String key, Object value) {
523526
objects.put(key, value);
@@ -574,8 +577,10 @@ public boolean sendDeleteSessionRequest() {
574577

575578

576579
/**
577-
* allow to bypass time out for this session. ignore = true => the session will not time out.
580+
* allow to bypass time out for this session. ignore = true =&gt; the session will not time out.
578581
* setIgnoreTimeout(true) also update the lastActivity to now.
582+
*
583+
* @param ignore true to ignore the timeout
579584
*/
580585
public void setIgnoreTimeout(boolean ignore) {
581586
if (!ignore) {

java/server/src/org/openqa/grid/internal/TestSlot.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* The entity on a proxy that can host a test session. A test slot has only 1 desired capabilities (
3838
* firefox or chrome for instance, but if a remoteproxy needs to support both, the remoteproxy will
3939
* need 2 TestSlots ) A TestSlot can host 1 TestSession max at a time.
40-
* <p/>
40+
* <p>
4141
* The listener ({@link TestSessionListener} attached to the test session of this test slot is
4242
* thread safe. If 2 threads are trying to execute the before / after session, only 1 will be
4343
* executed.The other one will be discarded.
@@ -93,7 +93,7 @@ public RemoteProxy getProxy() {
9393
* Try to get a new session for the test slot for the desired capability. To define if the
9494
* test slot can host the desired capabilities, {@link CapabilityMatcher#matches(Map, Map)} is
9595
* invoked.
96-
* <p/>
96+
* <p>
9797
* Use {@link GridHubConfiguration#setCapabilityMatcher(CapabilityMatcher)}
9898
* on the proxy hosting the test slot to modify the definition of match
9999
*
@@ -164,7 +164,7 @@ public TestSession getSession() {
164164
* Starts the release process for the TestSlot. Once the release process has started, the clients
165165
* can't access the test slot any more, but the slot can't be reserved for another test until
166166
* finishReleaseProcess is called.
167-
* <p/>
167+
* <p>
168168
* That gives time to run exactly once the cleanup operation needed using @see
169169
* {@link TestSessionListener#afterSession(TestSession)}
170170
*

java/server/src/org/openqa/grid/internal/listeners/CommandListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface CommandListener {
3030
/**
3131
* Executed before the hub forwards the request. reading the content of the request stream will
3232
* prevent the content from being forwarded.
33-
* <p/>
33+
* <p>
3434
* Throwing an exception will prevent the forward to the remote.
3535
*
3636
* @param session session
@@ -42,7 +42,7 @@ public void beforeCommand(TestSession session, HttpServletRequest request,
4242

4343
/**
4444
* Executed just before the forwards returns.
45-
* <p/>
45+
* <p>
4646
* Throwing an exception will result in an error for the client.
4747
*
4848
* @param session session

java/server/src/org/openqa/grid/internal/listeners/Prioritizer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
public interface Prioritizer {
2323

2424
/**
25-
* priority of a is lower than b : compare(a,b) > 0
26-
* <p/>
27-
* priority of b is lower than a : compare(a,b) < 0
28-
* <p/>
25+
* priority of a is lower than b : compare(a,b) &gt; 0
26+
* <p>
27+
* priority of b is lower than a : compare(a,b) &lt; 0
28+
* <p>
2929
* a and b have the same priority : compare(a,b) = 0
3030
*
3131
* @param a first item

java/server/src/org/openqa/grid/internal/listeners/RegistrationListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public interface RegistrationListener {
2525
/**
2626
* Will be run before the proxy you register is added to the Registry, letting you run the
2727
* configuration / validation necessary before the proxy becomes accessible to the clients.
28-
* <p/>
29-
* <p/>
28+
* <p>
3029
* If an exception is thrown, the proxy won't be registered.
3130
*/
3231
public void beforeRegistration();

0 commit comments

Comments
 (0)