Skip to content

Commit 3e0f0b0

Browse files
committed
Fix-up Javadocs that break compilation in JDK8+
1 parent 67af5f1 commit 3e0f0b0

File tree

38 files changed

+267
-233
lines changed

38 files changed

+267
-233
lines changed

connector-framework-internal/src/main/java/org/identityconnectors/framework/impl/api/local/ObjectPool.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* "Portions Copyrighted [year] [name of copyright owner]"
2121
* ====================
2222
* Portions Copyrighted 2010-2015 ForgeRock AS.
23+
* Portions Copyright 2018 Wren Security.
2324
*/
2425

2526
package org.identityconnectors.framework.impl.api.local;
@@ -346,8 +347,8 @@ private PooledObject borrowIdleObject() throws InterruptedException {
346347

347348
/**
348349
* Closes any idle objects in the pool.
349-
* <p/>
350-
* Existing active objects will remain alive and be allowed to shutdown
350+
*
351+
* <p>Existing active objects will remain alive and be allowed to shutdown
351352
* gracefully, but no more objects will be allocated.
352353
*/
353354
public void shutdown() {

connector-framework-internal/src/main/java/org/identityconnectors/framework/impl/api/local/ObjectPoolHandler.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* "Portions Copyrighted [year] [name of copyright owner]"
2121
* ====================
2222
* Portions Copyrighted 2010-2013 ForgeRock AS.
23+
* Portions Copyright 2018 Wren Security.
2324
*/
2425

2526
package org.identityconnectors.framework.impl.api.local;
@@ -31,9 +32,9 @@ public interface ObjectPoolHandler<T> {
3132
/**
3233
* Validates, copies and updates the original
3334
* {@code ObjectPoolConfiguration}.
34-
* <p/>
35-
* This class can validate and if necessary it changes the {@code original}
36-
* configuration.
35+
*
36+
* <p>This class can validate and if necessary it changes the
37+
* {@code original} configuration.
3738
*
3839
* @param original
3940
* custom configured instance.
@@ -43,17 +44,17 @@ public interface ObjectPoolHandler<T> {
4344

4445
/**
4546
* Makes a new instance of the pooled object.
46-
* <p/>
47-
* This method is called whenever a new instance is needed.
47+
*
48+
* <p>This method is called whenever a new instance is needed.
4849
*
4950
* @return new instance of T.
5051
*/
5152
public T makeObject();
5253

5354
/**
5455
* Tests the borrowed object.
55-
* <p/>
56-
* This method is invoked on head instances to make sure they can be
56+
*
57+
* <p>This method is invoked on head instances to make sure they can be
5758
* borrowed from the pool.
5859
*
5960
* @param object
@@ -63,8 +64,8 @@ public interface ObjectPoolHandler<T> {
6364

6465
/**
6566
* Disposes the object.
66-
* <p/>
67-
* This method is invoked on every instance when it is being "dropped" from
67+
*
68+
* <p>This method is invoked on every instance when it is being "dropped" from
6869
* the pool (whether due to the response from {@link #testObject(Object)},
6970
* or for reasons specific to the pool implementation.)
7071
*
@@ -75,8 +76,8 @@ public interface ObjectPoolHandler<T> {
7576

7677
/**
7778
* Releases any allocated resources.
78-
* <p/>
79-
* Existing active objects will remain alive and be allowed to shutdown
79+
*
80+
* <p>Existing active objects will remain alive and be allowed to shutdown
8081
* gracefully, but no more objects will be allocated.
8182
*/
8283
public void shutdown();

connector-framework-internal/src/main/java/org/identityconnectors/framework/impl/api/local/operations/AuthenticationImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
44
*
55
* Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
6+
* Portions Copyright 2018 Wren Security.
67
*
78
* The contents of this file are subject to the terms of the Common Development
89
* and Distribution License("CDDL") (the "License"). You may not use this file
@@ -44,8 +45,6 @@ public AuthenticationImpl(final ConnectorOperationalContext context,
4445

4546
/**
4647
* Authenticate using the basic credentials.
47-
*
48-
* @see AuthenticationOpTests#authenticate(String, String)
4948
*/
5049
public Uid authenticate(final ObjectClass objectClass, final String username,
5150
final GuardedString password,

connector-framework-internal/src/main/java/org/identityconnectors/framework/impl/api/local/operations/BatchImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
44
* Copyright (c) 2015 ForgeRock AS. All rights reserved.
5+
* Portions Copyright 2018 Wren Security.
56
*
67
* The contents of this file are subject to the terms
78
* of the Common Development and Distribution License
@@ -69,9 +70,6 @@ public BatchImpl(final ConnectorOperationalContext context, final Connector conn
6970
this.referenceCounter = referenceCounter;
7071
}
7172

72-
/**
73-
* {@inherit}
74-
*/
7573
public Subscription executeBatch(final List<BatchTask> tasks, final Observer<BatchResult> observer,
7674
final OperationOptions options) {
7775
if (tasks == null || tasks.size() == 0) {
@@ -109,9 +107,6 @@ public Subscription executeBatch(final List<BatchTask> tasks, final Observer<Bat
109107

110108
}
111109

112-
/**
113-
* {@inherit}
114-
*/
115110
public Subscription queryBatch(final BatchToken batchToken, final Observer<BatchResult> observer,
116111
final OperationOptions options) {
117112
Assertions.nullCheck(batchToken, "batchToken");

connector-framework-internal/src/main/java/org/identityconnectors/framework/impl/api/remote/RemoteWrappedException.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
44
* Copyright (c) 2013 ForgeRock AS. All Rights Reserved
5+
* Portions Copyright 2018 Wren Security.
56
*
67
* The contents of this file are subject to the terms
78
* of the Common Development and Distribution License
@@ -36,14 +37,11 @@
3637
/**
3738
* RemoteWrappedException wraps every exception which are received from Remote
3839
* Connector Server.
39-
* <p/>
40-
* <b>This Exception is not allowed to use in Connectors!!!</b>
41-
* <p/>
4240
*
41+
* <p><b>This Exception is not allowed for use by Connectors</b>
4342
*
44-
*
45-
* This type of exception is not allowed to be serialise because this exception
46-
* represents any after deserialization.
43+
* <p>This type of exception is not allowed to be serialise because this
44+
* exception represents any after deserialization.
4745
*
4846
* This code example show how to get the remote stack trace and how to use the
4947
* same catches to handle the exceptions regardless its origin.
@@ -64,7 +62,7 @@
6462
* t.printStackTrace();
6563
* }
6664
* }
67-
* <code>
65+
* </code>
6866
* </pre>
6967
*
7068
* @author Laszlo Hordos

connector-framework-internal/src/main/java/org/identityconnectors/framework/impl/serializer/ObjectDecoder.java

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
44
*
55
* Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
6+
* Portions Copyright 2018 Wren Security.
67
*
78
* The contents of this file are subject to the terms of the Common Development
89
* and Distribution License("CDDL") (the "License"). You may not use this file
@@ -29,70 +30,95 @@
2930
*/
3031
public interface ObjectDecoder {
3132
/**
32-
* Reads an object using the appropriate serializer for that object
33-
* @param fieldName A hint of the field name. Ignored for binary
34-
* serialization. The subelement name for xml serialization
35-
* @expectedType Ignored for binary serialization. For xml serialization,
36-
* this must be specified if it was written in-line.
37-
* @dflt The default value if there is no value.
33+
* Reads an object using the appropriate serializer for that object.
34+
*
35+
* @param fieldName
36+
* A hint of the field name. Ignored for binary serialization. The
37+
* subelement name for xml serialization
38+
* @param expectedType
39+
* Ignored for binary serialization. For xml serialization, this must be
40+
* specified if it was written in-line.
41+
* @param dflt
42+
* The default value if there is no value.
3843
*/
3944
public Object readObjectField(String fieldName,
4045
Class<?> expectedType,
4146
Object dflt);
4247

4348
/**
4449
* Reads a boolean.
45-
* @param fieldName A hint of the field name. Ignored for binary
46-
* serialization. The attribute name for xml serialization
47-
* @dflt The default value if there is no value.
50+
*
51+
* @param fieldName
52+
* A hint of the field name. Ignored for binary serialization. The
53+
* attribute name for xml serialization
54+
* @param dflt
55+
* The default value if there is no value.
4856
*/
4957
public boolean readBooleanField(String fieldName, boolean dflt);
5058

5159
/**
5260
* Reads an int.
53-
* @param fieldName A hint of the field name. Ignored for binary
54-
* serialization. The attribute name for xml serialization
55-
* @dflt The default value if there is no value.
61+
*
62+
* @param fieldName
63+
* A hint of the field name. Ignored for binary serialization. The
64+
* attribute name for xml serialization
65+
* @param dflt
66+
* The default value if there is no value.
5667
*/
5768
public int readIntField(String fieldName, int dflt);
5869

5970
/**
6071
* Reads a long.
61-
* @param fieldName A hint of the field name. Ignored for binary
62-
* serialization. The attribute name for xml serialization
63-
* @dflt The default value if there is no value.
72+
*
73+
* @param fieldName
74+
* A hint of the field name. Ignored for binary serialization. The
75+
* attribute name for xml serialization
76+
* @param dflt
77+
* The default value if there is no value.
6478
*/
6579
public long readLongField(String fieldName, long dflt);
6680

6781
/**
6882
* Reads a float.
69-
* @param fieldName A hint of the field name. Ignored for binary
70-
* serialization. The attribute name for xml serialization
71-
* @dflt The default value if there is no value.
83+
*
84+
* @param fieldName
85+
* A hint of the field name. Ignored for binary serialization. The
86+
* attribute name for xml serialization
87+
* @param dflt
88+
* The default value if there is no value.
7289
*/
7390
public float readFloatField(String fieldName, float dflt );
7491

7592
/**
7693
* Reads a Class.
77-
* @param fieldName A hint of the field name. Ignored for binary
78-
* serialization. The attribute name for xml serialization
79-
* @dflt The default value if there is no value.
94+
*
95+
* @param fieldName
96+
* A hint of the field name. Ignored for binary serialization. The
97+
* attribute name for xml serialization
98+
* @param dflt
99+
* The default value if there is no value.
80100
*/
81101
public Class<?> readClassField(String fieldName, Class<?> dflt );
82102

83103
/**
84104
* Reads a String.
85-
* @param fieldName A hint of the field name. Ignored for binary
86-
* serialization. The attribute name for xml serialization
87-
* @dflt The default value if there is no value.
105+
*
106+
* @param fieldName
107+
* A hint of the field name. Ignored for binary serialization. The
108+
* attribute name for xml serialization
109+
* @param dflt
110+
* The default value if there is no value.
88111
*/
89112
public String readStringField(String fieldName, String dflt );
90113

91114
/**
92115
* Reads a double.
93-
* @param fieldName A hint of the field name. Ignored for binary
94-
* serialization. The attribute name for xml serialization
95-
* @dflt The default value if there is no value.
116+
*
117+
* @param fieldName
118+
* A hint of the field name. Ignored for binary serialization. The
119+
* attribute name for xml serialization
120+
* @param dflt
121+
* The default value if there is no value.
96122
*/
97123
public double readDoubleField(String fieldName, double dflt );
98124

@@ -143,7 +169,6 @@ public Object readObjectField(String fieldName,
143169

144170
/**
145171
* Returns the number of anonymous sub-objects.
146-
* @return
147172
*/
148173
public int getNumSubObjects();
149174

connector-framework-internal/src/main/java/org/identityconnectors/framework/server/ConnectorServer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
44
*
55
* Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
6+
* Portions Copyright 2018 Wren Security.
67
*
78
* The contents of this file are subject to the terms of the Common Development
89
* and Distribution License("CDDL") (the "License"). You may not use this file
@@ -355,8 +356,6 @@ public void setBundleParentClassLoader(final ClassLoader bundleParentClassLoader
355356

356357
/**
357358
* Gets the time when the servers was started last time.
358-
* <p/>
359-
* {@code System.currentTimeMillis()}
360359
*
361360
* @return last start dateTime in milliseconds
362361
*/

connector-framework-osgi/src/main/java/org/forgerock/openicf/framework/impl/api/osgi/internal/OsgiConnectorInfoManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
44
* Copyright (c) 2010-2013 ForgeRock AS. All rights reserved.
5+
* Portions Copyright 2018 Wren Security.
56
*
67
* The contents of this file are subject to the terms
78
* of the Common Development and Distribution License
@@ -75,7 +76,6 @@
7576

7677
/**
7778
* The OSGi ConnectorInfoManager Implementation ...
78-
* <p/>
7979
*
8080
* @author Laszlo Hordos
8181
* @since 1.1

connector-framework-protobuf/src/main/java/org/forgerock/openicf/common/protobuf/package-info.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
44
* Copyright (c) 2015 ForgeRock AS. All rights reserved.
5+
* Portions Copyright 2018 Wren Security.
56
*
67
* The contents of this file are subject to the terms
78
* of the Common Development and Distribution License
@@ -23,10 +24,11 @@
2324
*/
2425

2526
/**
26-
* Provide the Google Protocol Buffer Messages required for the Remote OpenICF Server communication.
27-
* <p/>
28-
* The messages are extracted for easy extensibility in the future.
27+
* Provide the Google Protocol Buffer Messages required for the Remote OpenICF
28+
* Server communication.
29+
*
30+
* <p>The messages are extracted for easy extensibility in the future.
2931
*
3032
* @since 1.5
3133
*/
32-
package org.forgerock.openicf.common.protobuf;
34+
package org.forgerock.openicf.common.protobuf;

connector-framework-rpc/src/main/java/org/forgerock/openicf/common/rpc/LocalRequest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
44
* Copyright (c) 2015 ForgeRock AS. All rights reserved.
5+
* Portions Copyright 2018 Wren Security.
56
*
67
* The contents of this file are subject to the terms
78
* of the Common Development and Distribution License
@@ -29,10 +30,9 @@
2930

3031
/**
3132
* A LocalRequest represents a remotely requested procedure call locally.
32-
* <p/>
33-
* The {@link RemoteRequest} and LocalRequest are the representation of the same
34-
* call on caller and receiver side.
3533
*
34+
* <p>The {@link RemoteRequest} and LocalRequest are the representation of the
35+
* same call on caller and receiver side.
3636
*/
3737
public abstract class LocalRequest<V, E extends Exception, G extends RemoteConnectionGroup<G, H, P>, H extends RemoteConnectionHolder<G, H, P>, P extends RemoteConnectionContext<G, H, P>>
3838
implements ResultHandler<V>, ExceptionHandler<E> {
@@ -48,10 +48,12 @@ protected LocalRequest(final long requestId, final H socket) {
4848
}
4949

5050
/**
51-
* Check if this object was {@ref inconsistent}-ed and don't dispose.
51+
* Check if this object was marked inconsistent and should not be disposed.
5252
*
5353
* @return 'true' when object is still active or 'false' when this can be
5454
* disposed.
55+
*
56+
* @see #inconsistent()
5557
*/
5658
public abstract boolean check();
5759

0 commit comments

Comments
 (0)