Skip to content

Commit 2e59f17

Browse files
committed
Fixing JavaDocs for #91.
1 parent 37227ed commit 2e59f17

File tree

4 files changed

+40
-22
lines changed

4 files changed

+40
-22
lines changed

runtime/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>com.sun.activation</groupId>
3232
<artifactId>javax.activation</artifactId>
33-
<scope>test</scope>
33+
<scope>provided</scope>
3434
</dependency>
3535
<dependency>
3636
<groupId>junit</groupId>

runtime/src/main/java/org/jvnet/jaxb2_commons/lang/DefaultToStringStrategy.java

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,14 @@ protected void appendNullText(StringBuilder buffer) {
217217
* Append to the <code>toString</code> the field start.
218218
* </p>
219219
*
220+
* @param parentLocator
221+
* locator of the parent object.
222+
* @param parent
223+
* parent object.
224+
* @param fieldName
225+
* name of the field.
220226
* @param buffer
221227
* the <code>StringBuilder</code> to populate
222-
* @param propertyName
223-
* the field name
224228
*/
225229
protected void appendFieldStart(ObjectLocator parentLocator, Object parent,
226230
String fieldName, StringBuilder buffer) {
@@ -235,10 +239,16 @@ protected void appendFieldStart(ObjectLocator parentLocator, Object parent,
235239
* Append to the <code>toString</code> the field start.
236240
* </p>
237241
*
242+
* @param parentLocator
243+
* locator of the parent object.
244+
* @param parent
245+
* parent object.
246+
* @param fieldName
247+
* name of the field.
238248
* @param buffer
239249
* the <code>StringBuilder</code> to populate
240-
* @param propertyName
241-
* the field name
250+
* @param valueSet
251+
* whether or not the field is set.
242252
*/
243253
protected void appendFieldStart(ObjectLocator parentLocator, Object parent,
244254
String fieldName, StringBuilder buffer, boolean valueSet) {
@@ -250,13 +260,17 @@ protected void appendFieldStart(ObjectLocator parentLocator, Object parent,
250260

251261
/**
252262
* <p>
253-
* Append to the <code>toString<code> the field end.
263+
* Append to the <code>toString</code> the field end.
254264
* </p>
255265
*
266+
* @param parentLocator
267+
* locator of the parent object.
268+
* @param parent
269+
* parent object.
270+
* @param fieldName
271+
* name of the field.
256272
* @param buffer
257273
* the <code>StringBuilder</code> to populate
258-
* @param propertyName
259-
* the field name, typically not used as already appended
260274
*/
261275
protected void appendFieldEnd(ObjectLocator parentLocator, Object parent,
262276
String fieldName, StringBuilder buffer) {
@@ -265,13 +279,19 @@ protected void appendFieldEnd(ObjectLocator parentLocator, Object parent,
265279

266280
/**
267281
* <p>
268-
* Append to the <code>toString<code> the field end.
282+
* Append to the <code>toString</code> the field end.
269283
* </p>
270284
*
285+
* @param parentLocator
286+
* locator of the parent object.
287+
* @param parent
288+
* parent object.
289+
* @param fieldName
290+
* name of the field.
271291
* @param buffer
272292
* the <code>StringBuilder</code> to populate
273-
* @param propertyName
274-
* the field name, typically not used as already appended
293+
* @param valueSet
294+
* whether or not the field is set.
275295
*/
276296
protected void appendFieldEnd(ObjectLocator parentLocator, Object parent,
277297
String fieldName, StringBuilder buffer, boolean valueSet) {
@@ -314,15 +334,15 @@ protected void appendDefaultFieldValueMarker(StringBuilder buffer) {
314334
* </p>
315335
*
316336
* <p>
317-
* The default format is <code>'&lt;size=n&gt;'<code>.
337+
* The default format is <code>'&lt;size=n&gt;'</code>.
318338
* </p>
319339
*
340+
* @param locator
341+
* locator.
320342
* @param buffer
321-
* the <code>StringBuilder</code> to populate
322-
* @param propertyName
323-
* the field name, typically not used as already appended
343+
* the <code>StringBuilder</code> to populate.
324344
* @param size
325-
* the size to append
345+
* the size to append.
326346
*/
327347
protected void appendSummarySize(ObjectLocator locator,
328348
StringBuilder buffer, int size) {

runtime/src/main/java/org/jvnet/jaxb2_commons/locator/AbstractObjectLocator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public abstract class AbstractObjectLocator implements ObjectLocator {
2929
* parent location (may be <code>null</code>).
3030
* @param object
3131
* object.
32-
* @param propertyName
33-
* field name.
3432
*/
3533
protected AbstractObjectLocator(final ObjectLocator parentLocator,
3634
final Object object) {

runtime/src/main/java/org/jvnet/jaxb2_commons/locator/DefaultPropertyObjectLocator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public final class DefaultPropertyObjectLocator extends AbstractObjectLocator
1919
* Constructs a new validation event locator.
2020
*
2121
* @param parentLocator
22-
* parent location (may be <code>null</code>).
23-
* @param object
24-
* object.
22+
* locator of the parent object.
2523
* @param propertyName
26-
* field name.
24+
* name of the property.
25+
* @param propertyValue
26+
* value of the property.
2727
*/
2828
protected DefaultPropertyObjectLocator(final ObjectLocator parentLocator,
2929
final String propertyName, final Object propertyValue) {

0 commit comments

Comments
 (0)