Skip to content

Commit c47ebdd

Browse files
committed
typo fixes
1 parent 8bd8918 commit c47ebdd

24 files changed

+58
-58
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public final class JBBPParser {
138138
*
139139
* @param source the source script to parse binary blocks and streams, must
140140
* not be null
141-
* @param bitOrder the bit order for bit reading operations, must not be null
141+
* @param bitOrder the bit order for a bit reading operations, must not be null
142142
* @param customFieldTypeProcessor custom field type processor for the parser instance, it can be null
143143
* @param flags special flags for parsing process
144144
* @see #FLAG_SKIP_REMAINING_FIELDS_IF_EOF
@@ -185,7 +185,7 @@ public static JBBPParser prepare(final String script, final JBBPBitOrder bitOrde
185185
}
186186

187187
/**
188-
* Prepare a parser for a script with defined bit order and special flags.
188+
* Prepare a parser for a script with defined a bit order and special flags.
189189
*
190190
* @param script a text script contains field order and types reference, it
191191
* must not be null
@@ -203,7 +203,7 @@ public static JBBPParser prepare(final String script, final JBBPBitOrder bitOrde
203203
}
204204

205205
/**
206-
* Prepare a parser for a script with defined bit order and special flags.
206+
* Prepare a parser for a script with defined a bit order and special flags.
207207
*
208208
* @param script a text script contains field order and types reference, it
209209
* must not be null
@@ -297,7 +297,7 @@ public JBBPParser setExpressionArraySizeController(
297297
* @param inStream the input stream, must not be null
298298
* @param positionAtCompiledBlock the current position in the compiled script
299299
* block
300-
* @param varFieldProcessor a processor to process var fields, it can be null
300+
* @param varFieldProcessor a processor to process var fields, it can be null,
301301
* but it will thrown NPE if a var field is met
302302
* @param namedNumericFieldMap the named numeric field map
303303
* @param positionAtNamedFieldList the current position at the named field

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ public final class JBBPCompiler {
114114
*/
115115
public static final int FLAG_NAMED = 0x10;
116116
/**
117-
* The Byte-Code Flag shows that the field is an array but it must be omitted
117+
* The Byte-Code Flag shows that the field is an array, but it must be omitted
118118
* for unlimited field arrays.
119119
*/
120120
public static final int FLAG_ARRAY = 0x20;
121121
/**
122-
* The Byte-Code Flag shows that a multi-byte field must be decoded as
122+
* The Byte-Code Flag shows that a multibyte field must be decoded as
123123
* Little-endian one.
124124
*/
125125
public static final int FLAG_LITTLE_ENDIAN = 0x40;
@@ -726,7 +726,7 @@ private static final class StructStackItem {
726726
* start
727727
* @param startStructureOffset the offset of the start structure byte-code
728728
* instruction
729-
* @param arrayToReadTillEnd if true then it is array to read till end
729+
* @param arrayToReadTillEnd if true then it is an array to read till end
730730
* @param code the start byte code
731731
* @param token the token
732732
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static JBBPNamedFieldInfo findForFieldPath(final String fieldPath,
7474
}
7575

7676
/**
77-
* Check a field in a compiled list defined by its named field info, that the field is not an array and it is not inside a structure array.
77+
* Check a field in a compiled list defined by it's named field info, that the field is not an array and it is not inside a structure array.
7878
*
7979
* @param fieldToCheck a named field info to be checked, must not be null
8080
* @param namedFieldList a named field info list, must not be null.

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

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

2222
/**
2323
* The Class describes a named field info item. Such objects are presented
24-
* inside of compiled blocks only for fields which have names.
24+
* inside compiled blocks only for fields which have names.
2525
*
2626
* @since 1.0
2727
*/

jbbp/src/main/java/com/igormaznitsa/jbbp/compiler/conversion/CompiledBlockVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public void visitValField(int offsetInCompiledBlock,
252252
* @param primitiveType the primitive type
253253
* @param nullableNameFieldInfo field info, null if the field is anonymous one
254254
* @param byteOrder byte order for the field, must not be null
255-
* @param readWholeStreamAsArray if true then it is array with unknown size till the stream end
255+
* @param readWholeStreamAsArray if true then it is an array with unknown size till the stream end
256256
* @param altFieldType flag shows that field type is alternative one, INT should be recognized as FLOAT and LONG as DOUBLE and BOOL as STRING
257257
* @param nullableArraySize array size if the field is array, null if the field is not array or variable length array
258258
* @see JBBPCompiler#CODE_BYTE

jbbp/src/main/java/com/igormaznitsa/jbbp/compiler/conversion/JBBPToJavaConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ public Builder setHeadComment(final String text) {
16891689
/**
16901690
* Disable generate fields, useful if some super class extended and its
16911691
* fields should be used instead of generated ones. If disable then all code
1692-
* will be generated but without class fields. By default field generate is
1692+
* will be generated but without class fields. By default, field generate is
16931693
* enabled.
16941694
*
16951695
* @return the builder instance, must not be null
@@ -1701,7 +1701,7 @@ public Builder disableGenerateFields() {
17011701
}
17021702

17031703
/**
1704-
* Build converter with provided parameters. NB! It locks builder parameters
1704+
* Build converter with provided parameters. NB! It locks builder parameters,
17051705
* and they can't be changed in future.
17061706
*
17071707
* @return a converter instance.

jbbp/src/main/java/com/igormaznitsa/jbbp/compiler/tokenizer/JBBPTokenizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ public JBBPTokenizer(final String str,
126126
}
127127

128128
/**
129-
* Case sensitive check that the name is among global reserved ones.
129+
* Case-sensitive check that the name is among global reserved ones.
130130
*
131131
* @param name the name to check, must not be null
132-
* @return true if the name is global reserved one, false otherwise.
132+
* @return true if the name is globally reserved one, false otherwise.
133133
*/
134134
public static boolean isGlobalReservedName(final String name) {
135135
return GLOBAL_RESERVED_TYPE_NAMES.contains(name);

jbbp/src/main/java/com/igormaznitsa/jbbp/compiler/varlen/JBBPExpressionEvaluator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public final class JBBPExpressionEvaluator implements JBBPIntegerValueEvaluator
9494
*/
9595
private static final int CODE_MOD = 11;
9696
/**
97-
* Code for bit OR '|' operator.
97+
* Code for a bit OR '|' operator.
9898
*/
9999
private static final int CODE_OR = 12;
100100
/**
@@ -446,7 +446,7 @@ private static int getParsed(String number, int unaryOperatorCode) {
446446
* Encode code of an operator to code of similar unary operator.
447447
*
448448
* @param code a code of operator.
449-
* @return code of an unary similar operator if it exists, the same code otherwise
449+
* @return code of a unary similar operator if it exists, the same code otherwise
450450
*/
451451
private static int codeToUnary(final int code) {
452452
final int result;

jbbp/src/main/java/com/igormaznitsa/jbbp/exceptions/JBBPFinderException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class JBBPFinderException extends JBBPException {
3232
private final String nameOrPath;
3333

3434
/**
35-
* The Field type of a field to be searched. It may contain null.
35+
* The Field type of field to be searched. It may contain null.
3636
*/
3737
private final Class<? extends JBBPAbstractField> fieldType;
3838

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public float[] readFloatArray(
756756
/**
757757
* Read a unsigned short value from the stream.
758758
*
759-
* @param byteOrder he order of bytes to be used to decode the read value
759+
* @param byteOrder the order of bytes to be used to decode the read value
760760
* @return the unsigned short value read from stream
761761
* @throws IOException it will be thrown for any transport problem during the
762762
* operation
@@ -943,7 +943,7 @@ public byte readBitField(final JBBPBitNumber numOfBitsToRead) throws IOException
943943
/**
944944
* Read number of bits from the input stream. It reads bits from input stream
945945
* since 0 bit and make reversion to return bits in the right order when 0 bit
946-
* is 0 bit. if the stream is completed early than the data read then reading
946+
* is 0 bit. if the stream is completed earlier than the data read then reading
947947
* is just stopped and read value returned. The First read bit is placed as
948948
* 0th bit.
949949
*

0 commit comments

Comments
 (0)