Skip to content

Commit fff5828

Browse files
committed
fixes in javadoc
1 parent 115e759 commit fff5828

File tree

7 files changed

+16
-13
lines changed

7 files changed

+16
-13
lines changed

src/main/java/com/igormaznitsa/jbbp/JBBPVarFieldProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public interface JBBPVarFieldProcessor {
5252
* be null, it can be used for access to already read values of another
5353
* numeric fields.
5454
* @return a read field object, it must not return null
55-
* @throws IOException
55+
* @throws IOException it should be thrown for transport errors
5656
*/
5757
JBBPAbstractField readVarField(JBBPBitInputStream inStream, JBBPNamedFieldInfo fieldName, int extraValue, JBBPByteOrder byteOrder, JBBPNamedNumericFieldMap numericFieldMap) throws IOException;
5858
}

src/main/java/com/igormaznitsa/jbbp/compiler/JBBPCompiledBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Builder setNamedFieldData(final List<JBBPNamedFieldInfo> namedFields) {
125125
/**
126126
* Set the variable size array evaluators
127127
*
128-
* @param evaluators
128+
* @param evaluators list of evaluators, it can be null
129129
* @return this object
130130
*/
131131
public Builder setArraySizeEvaluators(final List<JBBPIntegerValueEvaluator> evaluators) {

src/main/java/com/igormaznitsa/jbbp/io/JBBPOut.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ public JBBPOut Short(final int value) throws IOException {
629629
* @param str the string which chars will be written, must not be null
630630
* @return the DSL session
631631
* @throws IOException it will be thrown for transport errors
632-
* @sine 1.1
632+
* @since 1.1
633633
*/
634634
public JBBPOut Short(final String str) throws IOException {
635635
assertNotEnded();

src/main/java/com/igormaznitsa/jbbp/io/JBBPOutVarProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface JBBPOutVarProcessor {
2929
* @param outStream the output stream for the context, must not be null
3030
* @param args optional arguments, can be null
3131
* @return true is to continue processing of DSL commands, false skip all commands till the End()
32-
* @throws IOException
32+
* @throws IOException it should be thrown for transport errors
3333
*/
3434
boolean processVarOut(JBBPOut context, JBBPBitOutputStream outStream, Object ... args) throws IOException;
3535
}

src/main/java/com/igormaznitsa/jbbp/mapper/Bin.java

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

109109
/**
110110
* Just either description of the field or some remark.
111-
* @return
111+
* @return the comment as String
112112
* @see JBBPTextWriter#Bin(java.lang.Object...)
113113
* @since 1.1
114114
*/

src/main/java/com/igormaznitsa/jbbp/model/JBBPFieldStruct.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
*/
1616
package com.igormaznitsa.jbbp.model;
1717

18+
import com.igormaznitsa.jbbp.JBBPParser;
1819
import com.igormaznitsa.jbbp.compiler.JBBPNamedFieldInfo;
1920
import com.igormaznitsa.jbbp.exceptions.JBBPFinderException;
2021
import com.igormaznitsa.jbbp.exceptions.JBBPTooManyFieldsFoundException;
22+
import com.igormaznitsa.jbbp.io.JBBPOut;
2123
import com.igormaznitsa.jbbp.mapper.JBBPMapper;
2224
import com.igormaznitsa.jbbp.mapper.JBBPMapperCustomFieldProcessor;
2325
import com.igormaznitsa.jbbp.model.finder.JBBPFieldFinder;
@@ -287,7 +289,7 @@ public <T> T mapTo(final String path, final Class<T> mappingClass) {
287289
* must not be null and must have the default constructor
288290
* @param flags special flags to tune mapping process
289291
* @return a mapped instance of the class, must not be null
290-
* @see #FLAG_IGNORE_MISSING_VALUES
292+
* @see JBBPMapper#FLAG_IGNORE_MISSING_VALUES
291293
* @since 1.1
292294
*/
293295
public <T> T mapTo(final String path, final Class<T> mappingClass, final int flags) {
@@ -320,7 +322,7 @@ public <T> T mapTo(final String path, final Class<T> mappingClass, final JBBPMap
320322
* @param customFieldProcessor a custom field processor to provide values for custom mapping fields, it can be null if there is not any custom field
321323
* @param flags special flags to tune mapping process
322324
* @return a mapped instance of the class, must not be null
323-
* @see #FLAG_IGNORE_MISSING_VALUES
325+
* @see JBBPMapper#FLAG_IGNORE_MISSING_VALUES
324326
* @since 1.1
325327
*/
326328
public <T> T mapTo(final String path, final Class<T> mappingClass, final JBBPMapperCustomFieldProcessor customFieldProcessor, final int flags) {
@@ -347,7 +349,7 @@ public Object mapTo(final Object objectToMap) {
347349
* @param flags special flags to tune mapping process
348350
* @return the same object from the arguments but with filled fields by values
349351
* of the structure
350-
* @see #FLAG_IGNORE_MISSING_VALUES
352+
* @see JBBPMapper#FLAG_IGNORE_MISSING_VALUES
351353
* @since 1.1
352354
*/
353355
public Object mapTo(final Object objectToMap, final int flags) {
@@ -378,7 +380,7 @@ public Object mapTo(final Object objectToMap, final JBBPMapperCustomFieldProcess
378380
* @param flags special flags to tune mapping process
379381
* @return the same object from the arguments but with filled fields by values
380382
* of the structure
381-
* @see #FLAG_IGNORE_MISSING_VALUES
383+
* @see JBBPMapper#FLAG_IGNORE_MISSING_VALUES
382384
* @since 1.1
383385
*/
384386
public Object mapTo(final Object objectToMap, final JBBPMapperCustomFieldProcessor customFieldProcessor, final int flags) {

src/main/java/com/igormaznitsa/jbbp/utils/JBBPTextWriter.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ public interface Extra {
371371
* @param context the context, must not be null
372372
* @param id an optional object id
373373
* @param obj an object to be converted into string, must not be null
374-
* @return
375-
* @throws IOException
374+
* @return string representation of the object
375+
* @throws IOException it can be thrown for transport error
376376
*/
377377
String doConvertObjToStr(JBBPTextWriter context, int id, Object obj) throws IOException;
378378

@@ -624,6 +624,7 @@ public JBBPTextWriter(final Writer out, final JBBPByteOrder byteOrder) {
624624
* @param startValueLinePrefix prefix before the first value on line, can be
625625
* null.
626626
* @param commentPrefix prefix before comments, can be null.
627+
* @param hrPrefix prefix for horizontal rule
627628
* @param valueDelimiter delimiter between values, can be null
628629
*/
629630
public JBBPTextWriter(
@@ -1390,7 +1391,7 @@ public JBBPTextWriter SetHR(final String prefix, final int length, final char ch
13901391
*
13911392
* @return the context
13921393
* @throws IOException it will be thrown for transport errors
1393-
* @see #EnableComments()t
1394+
* @see #EnableComments()
13941395
* @see #DisableComments()
13951396
*/
13961397
public JBBPTextWriter HR() throws IOException {
@@ -1509,7 +1510,7 @@ public JBBPTextWriter Obj(final int objId, final Object[] array, int off, int le
15091510
*
15101511
* @param objs array of object marked by Bin annotation
15111512
* @return the context
1512-
* @throws IOException
1513+
* @throws IOException it will be thrown if transport errors
15131514
*/
15141515
public JBBPTextWriter Bin(final Object... objs) throws IOException {
15151516
if (this.mappedClassObserver == null) {

0 commit comments

Comments
 (0)