Skip to content

Commit e4d17a9

Browse files
authored
Add javadocs as required to publish to Maven central (#49)
1 parent 4965c59 commit e4d17a9

File tree

8 files changed

+35
-18
lines changed

8 files changed

+35
-18
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ bin
22
dist
33
build
44
doc/apidoc
5+
release.properties
56
target
7+
.DS_Store
68
.settings
79
.classpath
810
.project
911
.flattened-pom.xml
1012

13+
*.releaseBackup
14+
1115
# IntelliJ IDEA
1216
*.iml
1317
.idea/*

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,23 @@
119119
</execution>
120120
</executions>
121121
</plugin>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-javadoc-plugin</artifactId>
125+
<version>3.3.1</version>
126+
<executions>
127+
<execution>
128+
<id>attach-javadocs</id>
129+
<goals>
130+
<goal>jar</goal>
131+
</goals>
132+
<configuration>
133+
<failOnWarnings>false</failOnWarnings>
134+
<failOnError>false</failOnError>
135+
</configuration>
136+
</execution>
137+
</executions>
138+
</plugin>
122139
</plugins>
123140
</build>
124141

src/main/java/org/tinyradius/attribute/RadiusAttribute.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ public void setAttributeValue(String value) {
9696
* Gets the value of this attribute as a string.
9797
*
9898
* @return value
99-
* @exception RadiusException
100-
* if the value is invalid
10199
*/
102100
public String getAttributeValue() {
103101
return RadiusUtil.getHexString(getAttributeData());
@@ -167,8 +165,10 @@ public byte[] writeAttribute() {
167165

168166
/**
169167
* Reads in this attribute from the passed byte array.
170-
*
171-
* @param data
168+
* @param data data buffer
169+
* @param offset the offset to read
170+
* @param length the amount of data to read
171+
* @throws RadiusException when length is less than 2
172172
*/
173173
public void readAttribute(byte[] data, int offset, int length) throws RadiusException {
174174
if (length < 2)

src/main/java/org/tinyradius/packet/CoaRequest.java

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

77
/**
88
* CoA packet. Thanks to Michael Krastev.
9-
* @author Michael Krastev <[email protected]>
9+
* @author Michael Krastev
1010
*/
1111
public class CoaRequest extends RadiusPacket {
1212

src/main/java/org/tinyradius/proxy/RadiusProxy.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ public void setProxyPort(int proxyPort) {
105105
* Sets the socket timeout.
106106
*
107107
* @param socketTimeout
108-
* socket timeout, >0 ms
109-
* @throws SocketException
108+
* @throws SocketException when socket timeout, >0 ms
110109
*/
111110
public void setSocketTimeout(int socketTimeout) throws SocketException {
112111
super.setSocketTimeout(socketTimeout);
@@ -214,7 +213,7 @@ protected void proxyPacketReceived(RadiusPacket packet, InetSocketAddress remote
214213
*
215214
* @param packet
216215
* the packet to proxy
217-
* @param proxyCon
216+
* @param proxyConnection
218217
* the RadiusProxyConnection for this packet
219218
* @throws IOException
220219
*/

src/main/java/org/tinyradius/test/TestClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public class TestClient {
1818

1919
/**
2020
* Radius command line client.
21-
* <br/>Usage: TestClient <i>hostName sharedSecret userName password</i>
21+
*
22+
* Usage: TestClient <i>hostName sharedSecret userName password</i>
2223
* @param args arguments
2324
* @throws Exception
2425
*/

src/main/java/org/tinyradius/util/RadiusClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public int getRetryCount() {
207207
* Sets the retry count for failed transmissions.
208208
*
209209
* @param retryCount
210-
* retry count, >0
210+
* @throws IllegalArgumentException when retry count is not positive
211211
*/
212212
public void setRetryCount(int retryCount) {
213213
if (retryCount < 1)

src/main/java/org/tinyradius/util/RadiusServer.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,12 @@ public int getSocketTimeout() {
224224
/**
225225
* Sets the socket timeout.
226226
*
227-
* @param socketTimeout
228-
* socket timeout, >0 ms
229-
* @throws SocketException
227+
* @param socketTimeout when socket timeout, >0 ms
228+
* @throws SocketException when socketTime is not positive
230229
*/
231230
public void setSocketTimeout(int socketTimeout) throws SocketException {
232231
if (socketTimeout < 1)
233-
throw new IllegalArgumentException("socket tiemout must be positive");
232+
throw new IllegalArgumentException("socket timeout must be positive");
234233
this.socketTimeout = socketTimeout;
235234
if (authSocket != null)
236235
authSocket.setSoTimeout(socketTimeout);
@@ -279,7 +278,7 @@ public long getDuplicateInterval() {
279278
* same address.
280279
*
281280
* @param duplicateInterval
282-
* duplicate interval (ms), >0
281+
* @throws IllegalArgumentException when duplicateInterval (ms), >0
283282
*/
284283
public void setDuplicateInterval(long duplicateInterval) {
285284
if (duplicateInterval <= 0)
@@ -341,8 +340,6 @@ protected void copyProxyState(RadiusPacket request, RadiusPacket answer) {
341340
* Returns when stop() is called.
342341
*
343342
* @throws SocketException
344-
* @throws InterruptedException
345-
*
346343
*/
347344
protected void listenAuth() throws SocketException {
348345
listen(getAuthSocket());
@@ -353,7 +350,6 @@ protected void listenAuth() throws SocketException {
353350
* Returns when stop() is called.
354351
*
355352
* @throws SocketException
356-
* @throws InterruptedException
357353
*/
358354
protected void listenAcct() throws SocketException {
359355
listen(getAcctSocket());

0 commit comments

Comments
 (0)