diff --git a/src/main/java/com/fasterxml/jackson/core/Base64Variants.java b/src/main/java/com/fasterxml/jackson/core/Base64Variants.java index 4970c4e185..b2e978dc48 100644 --- a/src/main/java/com/fasterxml/jackson/core/Base64Variants.java +++ b/src/main/java/com/fasterxml/jackson/core/Base64Variants.java @@ -76,7 +76,7 @@ public final class Base64Variants * This non-standard variant is usually used when encoded data needs to be * passed via URLs (such as part of GET request). It differs from the * base {@link #MIME} variant in multiple ways. - * First, no padding is used: this also means that it generally can not + * First, no padding is used: this also means that it generally cannot * be written in multiple separate but adjacent chunks (which would not * be the usual use case in any case). Also, no linefeeds are used (max * line length set to infinite). And finally, two characters (plus and diff --git a/src/main/java/com/fasterxml/jackson/core/FormatFeature.java b/src/main/java/com/fasterxml/jackson/core/FormatFeature.java index 45c72ad6f2..795853dda7 100644 --- a/src/main/java/com/fasterxml/jackson/core/FormatFeature.java +++ b/src/main/java/com/fasterxml/jackson/core/FormatFeature.java @@ -4,7 +4,7 @@ /** * Marker interface that is to be implemented by data format - specific features. - * Interface used since Java Enums can not extend classes or other Enums, but + * Interface used since Java Enums cannot extend classes or other Enums, but * they can implement interfaces; and as such we may be able to use limited * amount of generic functionality. *

diff --git a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java index 73ec628d7e..d1f79654da 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java @@ -2308,7 +2308,7 @@ protected ContentReference _createContentReference(Object contentAccessor, * for JSON handling. Problem here is that when adding new functionality * via factory methods, it is not possible to leave these methods abstract * (because we are implementing them for JSON); but there is risk that - * sub-classes do not override them all (plus older version can not implement). + * sub-classes do not override them all (plus older version cannot implement). * So a work-around is to add a check to ensure that factory is still one * used for JSON; and if not, make base implementation of a factory method fail. * diff --git a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java index 42ff2a9d82..f640994164 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonGenerator.java @@ -176,7 +176,7 @@ public enum Feature { * One use case is to avoid problems with Javascript limitations: * since Javascript standard specifies that all number handling * should be done using 64-bit IEEE 754 floating point values, - * result being that some 64-bit integer values can not be + * result being that some 64-bit integer values cannot be * accurately represent (as mantissa is only 51 bit wide). *

* Feature is disabled by default. @@ -828,7 +828,7 @@ public int getOutputBuffered() { * Default implementation returns false; overridden by data formats * that do support native Object Ids. Caller is expected to either * use a non-native notation (explicit property or such), or fail, - * in case it can not use native object ids. + * in case it cannot use native object ids. * * @return {@code True} if this generator is capable of writing "native" Object Ids * (which is typically determined by capabilities of the underlying format), @@ -848,7 +848,7 @@ public int getOutputBuffered() { * Default implementation returns false; overridden by data formats * that do support native Type Ids. Caller is expected to either * use a non-native notation (explicit property or such), or fail, - * in case it can not use native type ids. + * in case it cannot use native type ids. * * @return {@code True} if this generator is capable of writing "native" Type Ids * (which is typically determined by capabilities of the underlying format), @@ -1299,7 +1299,7 @@ public void writeArray(String[] array, int offset, int length) throws IOExceptio * Otherwise, write only len characters. *

* Note: actual length of content available may exceed {@code len} but - * can not be less than it: if not enough content available, a + * cannot be less than it: if not enough content available, a * {@link JsonGenerationException} will be thrown. * * @param reader Reader to use for reading Text value to write @@ -1555,7 +1555,7 @@ public void writeRawValue(SerializableString raw) throws IOException { * encoded, as a complete String value (surrounded by double quotes). * This method defaults *

- * Note: because JSON Strings can not contain unescaped linefeeds, + * Note: because JSON Strings cannot contain unescaped linefeeds, * if linefeeds are included (as per last argument), they must be * escaped. This adds overhead for decoding without improving * readability. @@ -1769,7 +1769,7 @@ public abstract int writeBinary(Base64Variant bv, * Write method that can be used for custom numeric types that can * not be (easily?) converted to "standard" Java number types. * Because numbers are not surrounded by double quotes, regular - * {@link #writeString} method can not be used; nor + * {@link #writeString} method cannot be used; nor * {@link #writeRaw} because that does not properly handle * value separators needed in Array or Object contexts. *

@@ -1982,7 +1982,7 @@ public WritableTypeId writeTypePrefix(WritableTypeId typeIdDef) throws IOExcepti typeIdDef.wrapperWritten = true; Inclusion incl = typeIdDef.include; - // first: can not output "as property" if value not Object; if so, must do "as array" + // first: cannot output "as property" if value not Object; if so, must do "as array" if ((valueShape != JsonToken.START_OBJECT) && incl.requiresObjectContext()) { typeIdDef.include = incl = WritableTypeId.Inclusion.WRAPPER_ARRAY; diff --git a/src/main/java/com/fasterxml/jackson/core/JsonParser.java b/src/main/java/com/fasterxml/jackson/core/JsonParser.java index 5916d88a6f..a7d63c35bf 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonParser.java @@ -366,7 +366,7 @@ public enum Feature { * Most common reason for disabling this feature is to avoid leaking information about * internal information; this may be done for security reasons. * Note that even if source reference is included, only parts of contents are usually - * printed, and not the whole contents. Further, many source reference types can not + * printed, and not the whole contents. Further, many source reference types cannot * necessarily access contents (like streams), so only type is indicated, not contents. *

* Since 2.16 feature is disabled by default (before 2.16 it was enabled), @@ -888,12 +888,12 @@ public void setCurrentValue(Object v) { * done after reading all content of interest using parser. * Content is released by writing it to given stream if possible; * if underlying input is byte-based it can released, if not (char-based) - * it can not. + * it cannot. * * @param out OutputStream to which buffered, undecoded content is written to * * @return -1 if the underlying content source is not byte based - * (that is, input can not be sent to {@link OutputStream}; + * (that is, input cannot be sent to {@link OutputStream}; * otherwise number of bytes released (0 if there was nothing to release) * * @throws IOException if write to stream threw exception @@ -909,12 +909,12 @@ public int releaseBuffered(OutputStream out) throws IOException { * done after reading all content of interest using parser. * Content is released by writing it to given writer if possible; * if underlying input is char-based it can released, if not (byte-based) - * it can not. + * it cannot. * * @param w Writer to which buffered but unprocessed content is written to * * @return -1 if the underlying content source is not char-based - * (that is, input can not be sent to {@link Writer}; + * (that is, input cannot be sent to {@link Writer}; * otherwise number of chars released (0 if there was nothing to release) * * @throws IOException if write using Writer threw exception @@ -1926,7 +1926,7 @@ public short getShortValue() throws IOException /** * Numeric accessor that can be called when the current * token is of type {@link JsonToken#VALUE_NUMBER_INT} and - * it can not be used as a Java long primitive type due to its + * it cannot be used as a Java long primitive type due to its * magnitude. * It can also be called for {@link JsonToken#VALUE_NUMBER_FLOAT}; * if so, it is equivalent to calling {@link #getDecimalValue} @@ -2146,7 +2146,7 @@ public int readBinaryValue(Base64Variant bv, OutputStream out) throws IOExceptio * and 1 (true), and Strings are parsed using default Java language integer * parsing rules. *

- * If representation can not be converted to an int (including structured type + * If representation cannot be converted to an int (including structured type * markers like start/end Object/Array) * default value of 0 will be returned; no exceptions are thrown. * @@ -2167,7 +2167,7 @@ public int getValueAsInt() throws IOException { * and 1 (true), and Strings are parsed using default Java language integer * parsing rules. *

- * If representation can not be converted to an int (including structured type + * If representation cannot be converted to an int (including structured type * markers like start/end Object/Array) * specified def will be returned; no exceptions are thrown. * @@ -2187,7 +2187,7 @@ public int getValueAsInt() throws IOException { * and 1 (true), and Strings are parsed using default Java language integer * parsing rules. *

- * If representation can not be converted to a long (including structured type + * If representation cannot be converted to a long (including structured type * markers like start/end Object/Array) * default value of 0L will be returned; no exceptions are thrown. * @@ -2208,7 +2208,7 @@ public long getValueAsLong() throws IOException { * and 1 (true), and Strings are parsed using default Java language integer * parsing rules. *

- * If representation can not be converted to a long (including structured type + * If representation cannot be converted to a long (including structured type * markers like start/end Object/Array) * specified def will be returned; no exceptions are thrown. * @@ -2230,7 +2230,7 @@ public long getValueAsLong(long def) throws IOException { * and 1.0 (true), and Strings are parsed using default Java language floating * point parsing rules. *

- * If representation can not be converted to a double (including structured types + * If representation cannot be converted to a double (including structured types * like Objects and Arrays), * default value of 0.0 will be returned; no exceptions are thrown. * @@ -2251,7 +2251,7 @@ public double getValueAsDouble() throws IOException { * and 1.0 (true), and Strings are parsed using default Java language floating * point parsing rules. *

- * If representation can not be converted to a double (including structured types + * If representation cannot be converted to a double (including structured types * like Objects and Arrays), * specified def will be returned; no exceptions are thrown. * @@ -2273,7 +2273,7 @@ public double getValueAsDouble(double def) throws IOException { * 0 maps to false * and Strings 'true' and 'false' map to corresponding values. *

- * If representation can not be converted to a boolean value (including structured types + * If representation cannot be converted to a boolean value (including structured types * like Objects and Arrays), * default value of false will be returned; no exceptions are thrown. * @@ -2294,7 +2294,7 @@ public boolean getValueAsBoolean() throws IOException { * 0 maps to false * and Strings 'true' and 'false' map to corresponding values. *

- * If representation can not be converted to a boolean value (including structured types + * If representation cannot be converted to a boolean value (including structured types * like Objects and Arrays), * specified def will be returned; no exceptions are thrown. * @@ -2314,7 +2314,7 @@ public boolean getValueAsBoolean(boolean def) throws IOException { * {@link java.lang.String}. * JSON Strings map naturally; scalar values get converted to * their textual representation. - * If representation can not be converted to a String value (including structured types + * If representation cannot be converted to a String value (including structured types * like Objects and Arrays and {@code null} token), default value of * null will be returned; no exceptions are thrown. * @@ -2334,7 +2334,7 @@ public String getValueAsString() throws IOException { * {@link java.lang.String}. * JSON Strings map naturally; scalar values get converted to * their textual representation. - * If representation can not be converted to a String value (including structured types + * If representation cannot be converted to a String value (including structured types * like Objects and Arrays and {@code null} token), specified default value * will be returned; no exceptions are thrown. * @@ -2363,7 +2363,7 @@ public String getValueAsString() throws IOException { * Default implementation returns true; overridden by data formats * that do support native Object Ids. Caller is expected to either * use a non-native notation (explicit property or such), or fail, - * in case it can not use native object ids. + * in case it cannot use native object ids. * * @return {@code True} if the format being read supports native Object Ids; * {@code false} if not @@ -2380,7 +2380,7 @@ public String getValueAsString() throws IOException { * Default implementation returns true; overridden by data formats * that do support native Type Ids. Caller is expected to either * use a non-native notation (explicit property or such), or fail, - * in case it can not use native type ids. + * in case it cannot use native type ids. * * @return {@code True} if the format being read supports native Type Ids; * {@code false} if not @@ -2454,7 +2454,7 @@ public String getValueAsString() throws IOException { * Note: this method should NOT be used if the result type is a * container ({@link java.util.Collection} or {@link java.util.Map}. * The reason is that due to type erasure, key and value types - * can not be introspected when using this method. + * cannot be introspected when using this method. * * @param Nominal type parameter for value type * diff --git a/src/main/java/com/fasterxml/jackson/core/JsonToken.java b/src/main/java/com/fasterxml/jackson/core/JsonToken.java index 98c8d1f3ed..c0f76974d0 100644 --- a/src/main/java/com/fasterxml/jackson/core/JsonToken.java +++ b/src/main/java/com/fasterxml/jackson/core/JsonToken.java @@ -21,11 +21,11 @@ public enum JsonToken /** * NOT_AVAILABLE can be returned if {@link JsonParser} - * implementation can not currently return the requested + * implementation cannot currently return the requested * token (usually next one), or even if any will be * available, but that may be able to determine this in * future. This is the case with non-blocking parsers -- - * they can not block to wait for more data to parse and + * they cannot block to wait for more data to parse and * must return something. */ NOT_AVAILABLE(null, JsonTokenId.ID_NOT_AVAILABLE), diff --git a/src/main/java/com/fasterxml/jackson/core/ObjectCodec.java b/src/main/java/com/fasterxml/jackson/core/ObjectCodec.java index aa738929df..b781fa671e 100644 --- a/src/main/java/com/fasterxml/jackson/core/ObjectCodec.java +++ b/src/main/java/com/fasterxml/jackson/core/ObjectCodec.java @@ -44,7 +44,7 @@ protected ObjectCodec() { } * Note: this method should NOT be used if the result type is a * container ({@link java.util.Collection} or {@link java.util.Map}. * The reason is that due to type erasure, key and value types - * can not be introspected when using this method. + * cannot be introspected when using this method. * * @param Nominal parameter for target type * diff --git a/src/main/java/com/fasterxml/jackson/core/StreamReadFeature.java b/src/main/java/com/fasterxml/jackson/core/StreamReadFeature.java index eb22be4832..354c3634d2 100644 --- a/src/main/java/com/fasterxml/jackson/core/StreamReadFeature.java +++ b/src/main/java/com/fasterxml/jackson/core/StreamReadFeature.java @@ -82,7 +82,7 @@ public enum StreamReadFeature * Most common reason for disabling this feature is to avoid leaking * internal information; this may be done for security reasons. * Note that even if source reference is included, only parts of contents are usually - * printed, and not the whole contents. Further, many source reference types can not + * printed, and not the whole contents. Further, many source reference types cannot * necessarily access contents (like streams), so only type is indicated, not contents. *

* Feature is enabled by default, meaning that "source reference" information is passed diff --git a/src/main/java/com/fasterxml/jackson/core/TSFBuilder.java b/src/main/java/com/fasterxml/jackson/core/TSFBuilder.java index c255b59b47..ca10a8ded3 100644 --- a/src/main/java/com/fasterxml/jackson/core/TSFBuilder.java +++ b/src/main/java/com/fasterxml/jackson/core/TSFBuilder.java @@ -261,7 +261,7 @@ public B configure(StreamWriteFeature f, boolean state) { /* 26-Jun-2018, tatu: This should not be needed here, but due to 2.x limitations, * we do need to include it or require casting. * Specifically: since `JsonFactory` (and not `TokenStreamFactory`) is base class - * for all backends, it can not expose JSON-specific builder, but this. + * for all backends, it cannot expose JSON-specific builder, but this. * So let's select lesser evil(s). */ diff --git a/src/main/java/com/fasterxml/jackson/core/TokenStreamFactory.java b/src/main/java/com/fasterxml/jackson/core/TokenStreamFactory.java index 5d9648eaa5..d94bbaf23b 100644 --- a/src/main/java/com/fasterxml/jackson/core/TokenStreamFactory.java +++ b/src/main/java/com/fasterxml/jackson/core/TokenStreamFactory.java @@ -282,7 +282,7 @@ protected OutputStream _createDataOutputWrapper(DataOutput out) { */ protected InputStream _optimizedStreamFromURL(URL url) throws IOException { if ("file".equals(url.getProtocol())) { - /* Can not do this if the path refers + /* Cannot do this if the path refers * to a network drive on windows. This fixes the problem; * might not be needed on all platforms (NFS?), but should not * matter a lot: performance penalty of extra wrapping is more diff --git a/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java b/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java index 65f169badc..4cc4f3f213 100644 --- a/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java +++ b/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java @@ -463,7 +463,7 @@ public byte[] getBinaryValue(Base64Variant variant) throws IOException { if (_binaryValue == null) { if (_currToken != JsonToken.VALUE_STRING) { - _reportError("Current token ("+_currToken+") not VALUE_STRING, can not access as binary"); + _reportError("Current token ("+_currToken+") not VALUE_STRING, cannot access as binary"); } ByteArrayBuilder builder = _getByteArrayBuilder(); _decodeBase64(getText(), builder, variant); @@ -947,7 +947,7 @@ protected void _parseNumericValue(int expType) throws IOException _parseSlowFloat(expType); return; } - _reportError("Current token (%s) not numeric, can not use numeric value accessors", _currToken); + _reportError("Current token (%s) not numeric, cannot use numeric value accessors", _currToken); } // @since 2.6 diff --git a/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java b/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java index 759482a671..c6b7e4c3e0 100644 --- a/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java +++ b/src/main/java/com/fasterxml/jackson/core/filter/FilteringParserDelegate.java @@ -248,7 +248,7 @@ public void overrideCurrentName(String name) { // 14-Apr-2015, tatu: Not sure whether this can be supported, and if so, // what to do with it... Delegation won't work for sure, so let's for // now throw an exception - throw new UnsupportedOperationException("Can not currently override name during filtering read"); + throw new UnsupportedOperationException("Cannot currently override name during filtering read"); } /* diff --git a/src/main/java/com/fasterxml/jackson/core/format/InputAccessor.java b/src/main/java/com/fasterxml/jackson/core/format/InputAccessor.java index e00c67cf6f..113a93e7fc 100644 --- a/src/main/java/com/fasterxml/jackson/core/format/InputAccessor.java +++ b/src/main/java/com/fasterxml/jackson/core/format/InputAccessor.java @@ -103,7 +103,7 @@ public boolean hasMoreBytes() throws IOException return false; } int amount = _buffer.length - _ptr; - if (amount < 1) { // can not load any more + if (amount < 1) { // cannot load any more return false; } int count = _in.read(_buffer, _ptr, amount); diff --git a/src/main/java/com/fasterxml/jackson/core/format/MatchStrength.java b/src/main/java/com/fasterxml/jackson/core/format/MatchStrength.java index 0cce00eb34..eba5ebe2c5 100644 --- a/src/main/java/com/fasterxml/jackson/core/format/MatchStrength.java +++ b/src/main/java/com/fasterxml/jackson/core/format/MatchStrength.java @@ -10,15 +10,15 @@ public enum MatchStrength { /** - * Value that indicates that given data can not be in given format. + * Value that indicates that given data cannot be in given format. */ NO_MATCH, /** - * Value that indicates that detector can not find out whether could + * Value that indicates that detector cannot find out whether could * be a match or not. * This can occur for example for textual data formats t - * when there are so many leading spaces that detector can not + * when there are so many leading spaces that detector cannot * find the first data byte (because detectors typically limit lookahead * to some smallish value). */ @@ -26,7 +26,7 @@ public enum MatchStrength /** * Value that indicates that given data could be of specified format (i.e. - * it can not be ruled out). This can occur for example when seen data + * it cannot be ruled out). This can occur for example when seen data * is both not in canonical formats (for example: JSON data should be a JSON Array or Object * not a scalar value, as per JSON specification) and there are known use case * where a format detected is actually used (plain JSON Strings are actually used, even diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java index 2be42744c8..2e61716f74 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java +++ b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java @@ -173,7 +173,7 @@ private static String _getValueDesc(final char[] array, final int offset, final } private static String _generateExceptionMessage(final String valueToReport, final String desc) { - return String.format("Value %s can not be deserialized as `java.math.BigDecimal`, reason: %s" , + return String.format("Value %s cannot be deserialized as `java.math.BigDecimal`, reason: %s" , valueToReport, desc); } diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java index 777c3f450a..952916e30b 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java +++ b/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java @@ -23,7 +23,7 @@ public static BigInteger parseWithFastParser(final String valueStr) { final String reportNum = valueStr.length() <= MAX_CHARS_TO_REPORT ? valueStr : valueStr.substring(0, MAX_CHARS_TO_REPORT) + " [truncated]"; throw new NumberFormatException("Value \"" + reportNum - + "\" can not be represented as `java.math.BigInteger`, reason: " + nfe.getMessage()); + + "\" cannot be represented as `java.math.BigInteger`, reason: " + nfe.getMessage()); } } @@ -34,7 +34,7 @@ public static BigInteger parseWithFastParser(final String valueStr, final int ra final String reportNum = valueStr.length() <= MAX_CHARS_TO_REPORT ? valueStr : valueStr.substring(0, MAX_CHARS_TO_REPORT) + " [truncated]"; throw new NumberFormatException("Value \"" + reportNum - + "\" can not be represented as `java.math.BigInteger` with radix " + radix + + + "\" cannot be represented as `java.math.BigInteger` with radix " + radix + ", reason: " + nfe.getMessage()); } } diff --git a/src/main/java/com/fasterxml/jackson/core/io/IOContext.java b/src/main/java/com/fasterxml/jackson/core/io/IOContext.java index 41ffe23e76..4af721ae7f 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/IOContext.java +++ b/src/main/java/com/fasterxml/jackson/core/io/IOContext.java @@ -124,7 +124,7 @@ public class IOContext implements AutoCloseable /** * Reference temporary buffer Parser instances need if calling * app decides it wants to access name via 'getTextCharacters' method. - * Regular text buffer can not be used as it may contain textual + * Regular text buffer cannot be used as it may contain textual * representation of the value token. */ protected char[] _nameCopyBuffer; diff --git a/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java b/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java index 844692bf85..df538596d2 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java +++ b/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java @@ -553,7 +553,7 @@ private static int _full3(int t, byte[] b, int off) return off; } - // // // Special cases for where we can not flip the sign bit + // // // Special cases for where we cannot flip the sign bit private static int _outputSmallestL(char[] b, int off) { diff --git a/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java b/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java index f829171cff..35a2dfd876 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java +++ b/src/main/java/com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.java @@ -494,7 +494,7 @@ private boolean checkUTF32(int quad) throws IOException } else if ((quad & ~0x0000FF00) == 0) { // 0x0000??00 -> UTF32-in-order reportWeirdUCS4("2143"); } else { - // Can not be valid UTF-32 encoded JSON... + // Cannot be valid UTF-32 encoded JSON... return false; } // Not BOM (just regular content), nothing to skip past: diff --git a/src/main/java/com/fasterxml/jackson/core/json/JsonGeneratorImpl.java b/src/main/java/com/fasterxml/jackson/core/json/JsonGeneratorImpl.java index 04288ced6b..ae3360a035 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/JsonGeneratorImpl.java +++ b/src/main/java/com/fasterxml/jackson/core/json/JsonGeneratorImpl.java @@ -272,7 +272,7 @@ protected void _verifyPrettyValueWrite(String typeMsg, int status) throws IOExce protected void _reportCantWriteValueExpectName(String typeMsg) throws IOException { - _reportError(String.format("Can not %s, expecting field name (context: %s)", + _reportError(String.format("Cannot %s, expecting field name (context: %s)", typeMsg, _writeContext.typeDesc())); } } diff --git a/src/main/java/com/fasterxml/jackson/core/json/JsonWriteFeature.java b/src/main/java/com/fasterxml/jackson/core/json/JsonWriteFeature.java index 356a95f27e..230bb36fcb 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/JsonWriteFeature.java +++ b/src/main/java/com/fasterxml/jackson/core/json/JsonWriteFeature.java @@ -52,7 +52,7 @@ public enum JsonWriteFeature * One use case is to avoid problems with Javascript limitations: * since Javascript standard specifies that all number handling * should be done using 64-bit IEEE 754 floating point values, - * result being that some 64-bit integer values can not be + * result being that some 64-bit integer values cannot be * accurately represent (as mantissa is only 51 bit wide). *

* Feature is disabled by default. @@ -129,7 +129,7 @@ public enum JsonWriteFeature *

* Note that this feature only has effect for {@link JsonGenerator}s that directly encode * {@code byte}-based output, as UTF-8 (target {@link java.io.OutputStream}, {@code byte[]} - * and so on); it will not (can not) change handling of + * and so on); it will not (cannot) change handling of * {@code char}-based output (like {@link java.io.Writer} or {@link java.lang.String}). *

* Feature is disabled by default in 2.x for backwards-compatibility (will be enabled diff --git a/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java index 4e72b90fb6..5c0de8575d 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java @@ -466,7 +466,7 @@ public byte[] getBinaryValue(Base64Variant b64variant) throws IOException return _binaryValue; } if (_currToken != JsonToken.VALUE_STRING) { - _reportError("Current token ("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, can not access as binary"); + _reportError("Current token ("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, cannot access as binary"); } // To ensure that we won't see inconsistent data, better clear up state if (_tokenIncomplete) { diff --git a/src/main/java/com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.java index 57dc66b7ab..0bf9e0e460 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.java @@ -363,7 +363,7 @@ public byte[] getBinaryValue(Base64Variant b64variant) throws IOException { if (_currToken != JsonToken.VALUE_STRING && (_currToken != JsonToken.VALUE_EMBEDDED_OBJECT || _binaryValue == null)) { - _reportError("Current token ("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, can not access as binary"); + _reportError("Current token ("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, cannot access as binary"); } /* To ensure that we won't see inconsistent data, better clear up * state... @@ -737,7 +737,7 @@ public void finishToken() throws IOException { /********************************************************** */ - // Can not implement without look-ahead... + // Cannot implement without look-ahead... // public boolean nextFieldName(SerializableString str) throws IOException @Override diff --git a/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java index 31076e752b..c09a739c41 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java @@ -216,7 +216,7 @@ public void writeFieldName(String name) throws IOException } final int status = _writeContext.writeFieldName(name); if (status == JsonWriteContext.STATUS_EXPECT_VALUE) { - _reportError("Can not write a field name, expecting a value"); + _reportError("Cannot write a field name, expecting a value"); } if (status == JsonWriteContext.STATUS_OK_AFTER_COMMA) { // need comma if (_outputTail >= _outputEnd) { @@ -266,7 +266,7 @@ public void writeFieldName(SerializableString name) throws IOException } final int status = _writeContext.writeFieldName(name.getValue()); if (status == JsonWriteContext.STATUS_EXPECT_VALUE) { - _reportError("Can not write a field name, expecting a value"); + _reportError("Cannot write a field name, expecting a value"); } if (status == JsonWriteContext.STATUS_OK_AFTER_COMMA) { if (_outputTail >= _outputEnd) { @@ -435,7 +435,7 @@ protected final void _writePPFieldName(String name) throws IOException { int status = _writeContext.writeFieldName(name); if (status == JsonWriteContext.STATUS_EXPECT_VALUE) { - _reportError("Can not write a field name, expecting a value"); + _reportError("Cannot write a field name, expecting a value"); } if ((status == JsonWriteContext.STATUS_OK_AFTER_COMMA)) { _cfgPrettyPrinter.writeObjectEntrySeparator(this); @@ -475,7 +475,7 @@ protected final void _writePPFieldName(SerializableString name) throws IOExcepti { final int status = _writeContext.writeFieldName(name.getValue()); if (status == JsonWriteContext.STATUS_EXPECT_VALUE) { - _reportError("Can not write a field name, expecting a value"); + _reportError("Cannot write a field name, expecting a value"); } if (status == JsonWriteContext.STATUS_OK_AFTER_COMMA) { _cfgPrettyPrinter.writeObjectEntrySeparator(this); @@ -851,7 +851,7 @@ private final void _writeSegmentedRaw(char[] cbuf, int offset, int len) throws I * Helper method that is called for segmented write of raw content * when explicitly outputting a segment of longer thing. * Caller has to take care of ensuring there's no split surrogate - * pair at the end (that is, last char can not be first part of a + * pair at the end (that is, last char cannot be first part of a * surrogate char pair). * * @since 2.8.2 @@ -1403,7 +1403,7 @@ private final void _writeStringSegments(String text, int offset, int totalLen) t /** * This method called when the string content is already in * a char buffer, and its maximum total encoded and escaped length - * can not exceed size of the output buffer. + * cannot exceed size of the output buffer. * Caller must ensure that there is enough space in output buffer, * assuming case of all non-escaped ASCII characters, as well as * potentially enough space for other cases (but not necessarily flushed) diff --git a/src/main/java/com/fasterxml/jackson/core/json/UTF8StreamJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/UTF8StreamJsonParser.java index 5d4e7e870b..635dea201d 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/UTF8StreamJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/json/UTF8StreamJsonParser.java @@ -510,7 +510,7 @@ public byte[] getBinaryValue(Base64Variant b64variant) throws IOException { if (_currToken != JsonToken.VALUE_STRING && (_currToken != JsonToken.VALUE_EMBEDDED_OBJECT || _binaryValue == null)) { - _reportError("Current token ("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, can not access as binary"); + _reportError("Current token ("+_currToken+") not VALUE_STRING or VALUE_EMBEDDED_OBJECT, cannot access as binary"); } // To ensure that we won't see inconsistent data, better clear up state... if (_tokenIncomplete) { diff --git a/src/main/java/com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.java index 6bffd40e6b..fd1b54d4e8 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.java +++ b/src/main/java/com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.java @@ -150,7 +150,7 @@ public void writeFieldName(String name) throws IOException { int status = _writeContext.writeFieldName(name); if (status == JsonWriteContext.STATUS_EXPECT_VALUE) { - _reportError("Can not write a field name, expecting a value"); + _reportError("Cannot write a field name, expecting a value"); } _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA)); } @@ -161,7 +161,7 @@ public void writeFieldName(SerializableString name) throws IOException // Object is a value, need to verify it's allowed int status = _writeContext.writeFieldName(name.getValue()); if (status == JsonWriteContext.STATUS_EXPECT_VALUE) { - _reportError("Can not write a field name, expecting a value"); + _reportError("Cannot write a field name, expecting a value"); } _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA)); } diff --git a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingByteBufferJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingByteBufferJsonParser.java index 8d5c147dba..9281999d70 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingByteBufferJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingByteBufferJsonParser.java @@ -51,7 +51,7 @@ public void feedInput(final ByteBuffer byteBuffer) throws IOException { } // and shouldn't have been marked as end-of-input if (_endOfInput) { - _reportError("Already closed, can not feed more input"); + _reportError("Already closed, cannot feed more input"); } // Time to update pointers first _currInputProcessed += _origBufferLen; diff --git a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.java b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.java index 7de4ccf2ba..8caeb48d6a 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.java +++ b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.java @@ -43,7 +43,7 @@ public void feedInput(final byte[] buf, final int start, final int end) throws I } // and shouldn't have been marked as end-of-input if (_endOfInput) { - _reportError("Already closed, can not feed more input"); + _reportError("Already closed, cannot feed more input"); } // Time to update pointers first _currInputProcessed += _origBufferLen; diff --git a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.java b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.java index 46ca776907..ea533aab60 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.java +++ b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.java @@ -263,7 +263,7 @@ public NonBlockingJsonParserBase(IOContext ctxt, int parserFeatures, @Override public void setCodec(ObjectCodec c) { - throw new UnsupportedOperationException("Can not use ObjectMapper with non-blocking parser"); + throw new UnsupportedOperationException("Cannot use ObjectMapper with non-blocking parser"); } /* @@ -428,7 +428,7 @@ public int getText(Writer writer) throws IOException return _textBuffer.contentsToWriter(writer); } if (t == JsonToken.NOT_AVAILABLE) { - _reportError("Current token not available: can not call this method"); + _reportError("Current token not available: cannot call this method"); } char[] ch = t.asCharArray(); writer.write(ch); @@ -548,7 +548,7 @@ public int getTextOffset() throws IOException public byte[] getBinaryValue(Base64Variant b64variant) throws IOException { if (_currToken != JsonToken.VALUE_STRING) { - _reportError("Current token (%s) not VALUE_STRING or VALUE_EMBEDDED_OBJECT, can not access as binary", + _reportError("Current token (%s) not VALUE_STRING or VALUE_EMBEDDED_OBJECT, cannot access as binary", _currToken); } if (_binaryValue == null) { diff --git a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingUtf8JsonParserBase.java b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingUtf8JsonParserBase.java index 9194b15955..d3d65c0db6 100644 --- a/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingUtf8JsonParserBase.java +++ b/src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingUtf8JsonParserBase.java @@ -97,7 +97,7 @@ public void endOfInput() { // public long nextLongValue(long defaultValue) throws IOException // public Boolean nextBooleanValue() throws IOException - // Should never be called: can not be implemented quite as expected + // Should never be called: cannot be implemented quite as expected // due to non-blocking behavior @Override protected char _decodeEscaped() throws IOException { @@ -760,7 +760,7 @@ private final JsonToken _startValueExpectColon(int ch) throws IOException if (ch == INT_HASH) { return _finishHashComment(MINOR_VALUE_EXPECTING_COLON); } - // can not omit colon here + // cannot omit colon here _reportUnexpectedChar(ch, "was expecting a colon to separate field name and value"); } int ptr = _inputPtr; diff --git a/src/main/java/com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.java b/src/main/java/com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.java index e705ab7c18..f407a77845 100644 --- a/src/main/java/com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.java +++ b/src/main/java/com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.java @@ -1074,7 +1074,7 @@ private int _resizeAndFindOffsetForAdd(int hash) throws StreamConstraintsExcepti // First things first: we need to resize+rehash (or, if too big, nuke contents) rehash(); - // Copy of main _findOffsetForAdd except for checks to resize: can not be needed + // Copy of main _findOffsetForAdd except for checks to resize: cannot be needed int offset = _calcOffset(hash); final int[] hashArea = _hashArea; if (hashArea[offset+3] == 0) { diff --git a/src/main/java/com/fasterxml/jackson/core/util/Instantiatable.java b/src/main/java/com/fasterxml/jackson/core/util/Instantiatable.java index da03b411e5..b550438ed2 100644 --- a/src/main/java/com/fasterxml/jackson/core/util/Instantiatable.java +++ b/src/main/java/com/fasterxml/jackson/core/util/Instantiatable.java @@ -2,7 +2,7 @@ /** * Add-on interface used to indicate things that may be "blueprint" objects - * which can not be used as is, but are used for creating usable per-process + * which cannot be used as is, but are used for creating usable per-process * (serialization, deserialization) instances, using * {@link #createInstance} method. *

diff --git a/src/main/java/com/fasterxml/jackson/core/util/JacksonFeatureSet.java b/src/main/java/com/fasterxml/jackson/core/util/JacksonFeatureSet.java index 42b8780885..4f9548869a 100644 --- a/src/main/java/com/fasterxml/jackson/core/util/JacksonFeatureSet.java +++ b/src/main/java/com/fasterxml/jackson/core/util/JacksonFeatureSet.java @@ -42,7 +42,7 @@ public static JacksonFeatureSet fromDefaults(F[] a if (allFeatures.length > 31) { final String desc = allFeatures[0].getClass().getName(); throw new IllegalArgumentException(String.format( -"Can not use type `%s` with JacksonFeatureSet: too many entries (%d > 31)", +"Cannot use type `%s` with JacksonFeatureSet: too many entries (%d > 31)", desc, allFeatures.length)); } diff --git a/src/moditect/module-info.java b/src/moditect/module-info.java index 566ec0c97f..9f1b31f5a5 100644 --- a/src/moditect/module-info.java +++ b/src/moditect/module-info.java @@ -1,6 +1,6 @@ // Generated 08-Mar-2019 using Moditect maven plugin module com.fasterxml.jackson.core { - // 08-Mar-2019, tatu: Ugh. Can not use wildcards, stupid ass JDK 9+ module system... + // 08-Mar-2019, tatu: Ugh. Cannot use wildcards, stupid ass JDK 9+ module system... // So, for 2.x core need to make sure we manually include everything. // Worse, there is only syntactic validation, not contents, so we can both miss // AND add bogus packages. diff --git a/src/test/java/com/fasterxml/jackson/core/base64/Base64BinaryParsingTest.java b/src/test/java/com/fasterxml/jackson/core/base64/Base64BinaryParsingTest.java index fae04c8a56..ed1f2bd8cf 100644 --- a/src/test/java/com/fasterxml/jackson/core/base64/Base64BinaryParsingTest.java +++ b/src/test/java/com/fasterxml/jackson/core/base64/Base64BinaryParsingTest.java @@ -83,7 +83,7 @@ void invalidTokenForBase64() throws IOException fail("Should not pass"); } catch (JsonParseException e) { verifyException(e, "current token"); - verifyException(e, "can not access as binary"); + verifyException(e, "cannot access as binary"); } p.close(); } diff --git a/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailFromReaderTest.java b/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailFromReaderTest.java index dae9063103..24d48befa5 100644 --- a/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailFromReaderTest.java +++ b/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailFromReaderTest.java @@ -69,7 +69,7 @@ private void _testFailOnWritingStringNotFieldName(JsonFactory f, boolean useRead String json = bout.toString("UTF-8"); fail("Should not have let "+gen.getClass().getName()+".writeString() be used in place of 'writeFieldName()': output = "+json); } catch (JsonProcessingException e) { - verifyException(e, "can not write a String"); + verifyException(e, "cannot write a String"); } gen.close(); } diff --git a/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailTest.java b/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailTest.java index c3f895b870..7fbe87af02 100644 --- a/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailTest.java +++ b/src/test/java/com/fasterxml/jackson/core/json/GeneratorFailTest.java @@ -70,7 +70,7 @@ private void _testDupFieldNameWrites(JsonFactory f, boolean useReader) throws Ex String json = bout.toString("UTF-8"); fail("Should not have let two consecutive field name writes succeed: output = "+json); } catch (JsonProcessingException e) { - verifyException(e, "can not write a field name, expecting a value"); + verifyException(e, "cannot write a field name, expecting a value"); } gen.close(); } @@ -92,7 +92,7 @@ private void _testFailOnWritingStringNotFieldName(JsonFactory f, boolean useRead String json = bout.toString("UTF-8"); fail("Should not have let "+gen.getClass().getName()+".writeString() be used in place of 'writeFieldName()': output = "+json); } catch (JsonProcessingException e) { - verifyException(e, "can not write a String"); + verifyException(e, "cannot write a String"); } gen.close(); } @@ -113,7 +113,7 @@ private void _testFailOnWritingFieldNameInRoot(JsonFactory f, boolean useReader) String json = bout.toString("UTF-8"); fail("Should not have let "+gen.getClass().getName()+".writeFieldName() be used in root context: output = "+json); } catch (JsonProcessingException e) { - verifyException(e, "can not write a field name"); + verifyException(e, "cannot write a field name"); } gen.close(); } diff --git a/src/test/java/com/fasterxml/jackson/core/json/TestRootValues.java b/src/test/java/com/fasterxml/jackson/core/json/TestRootValues.java index 743af059c8..89fe0cd620 100644 --- a/src/test/java/com/fasterxml/jackson/core/json/TestRootValues.java +++ b/src/test/java/com/fasterxml/jackson/core/json/TestRootValues.java @@ -82,7 +82,7 @@ public int read(char[] b, int off, int len) throws IOException { @Test void simpleNumbers() throws Exception { - // DataInput can not detect EOF so: + // DataInput cannot detect EOF so: _testSimpleNumbers(MODE_INPUT_STREAM); _testSimpleNumbers(MODE_INPUT_STREAM_THROTTLED); _testSimpleNumbers(MODE_READER); diff --git a/src/test/java/com/fasterxml/jackson/core/json/async/AsyncNaNHandlingTest.java b/src/test/java/com/fasterxml/jackson/core/json/async/AsyncNaNHandlingTest.java index e54828c2f4..9d6f158407 100644 --- a/src/test/java/com/fasterxml/jackson/core/json/async/AsyncNaNHandlingTest.java +++ b/src/test/java/com/fasterxml/jackson/core/json/async/AsyncNaNHandlingTest.java @@ -67,7 +67,7 @@ private void _testAllowNaN(JsonFactory f, String doc, int readBytes) throws Exce /*BigDecimal dec =*/ p.getDecimalValue(); fail("Should fail when trying to access NaN as BigDecimal"); } catch (NumberFormatException e) { - verifyException(e, "can not be deserialized as `java.math.BigDecimal`"); + verifyException(e, "cannot be deserialized as `java.math.BigDecimal`"); } assertToken(JsonToken.END_ARRAY, p.nextToken()); diff --git a/src/test/java/com/fasterxml/jackson/core/json/async/AsyncSimpleObjectTest.java b/src/test/java/com/fasterxml/jackson/core/json/async/AsyncSimpleObjectTest.java index 468495001b..c5536ad37d 100644 --- a/src/test/java/com/fasterxml/jackson/core/json/async/AsyncSimpleObjectTest.java +++ b/src/test/java/com/fasterxml/jackson/core/json/async/AsyncSimpleObjectTest.java @@ -98,7 +98,7 @@ private void _testBooleans(JsonFactory f, fail("Should not pass"); } catch (JsonProcessingException e) { verifyException(e, "Current token (VALUE_TRUE) not"); - verifyException(e, "can not access as binary"); + verifyException(e, "cannot access as binary"); } assertToken(JsonToken.END_OBJECT, r.nextToken()); diff --git a/src/test/java/com/fasterxml/jackson/core/read/NonStandardParserFeaturesTest.java b/src/test/java/com/fasterxml/jackson/core/read/NonStandardParserFeaturesTest.java index b5884eb004..b75a2a74d9 100644 --- a/src/test/java/com/fasterxml/jackson/core/read/NonStandardParserFeaturesTest.java +++ b/src/test/java/com/fasterxml/jackson/core/read/NonStandardParserFeaturesTest.java @@ -196,7 +196,7 @@ private void _testAllowNaN(int mode) throws Exception /*BigDecimal dec =*/ p.getDecimalValue(); fail("Should fail when trying to access NaN as BigDecimal"); } catch (NumberFormatException e) { - verifyException(e, "can not be deserialized as `java.math.BigDecimal`"); + verifyException(e, "cannot be deserialized as `java.math.BigDecimal`"); } assertToken(JsonToken.END_ARRAY, p.nextToken()); diff --git a/src/test/java/com/fasterxml/jackson/core/read/NumberParsingTest.java b/src/test/java/com/fasterxml/jackson/core/read/NumberParsingTest.java index 198e7da089..1e832269df 100644 --- a/src/test/java/com/fasterxml/jackson/core/read/NumberParsingTest.java +++ b/src/test/java/com/fasterxml/jackson/core/read/NumberParsingTest.java @@ -938,7 +938,7 @@ private void _testInvalidIntAccess(int mode) throws Exception p.getIntValue(); fail("Expected error trying to call getIntValue on non-numeric value"); } catch (JsonParseException e) { - verifyException(e, "can not use numeric value accessors"); + verifyException(e, "cannot use numeric value accessors"); } p.close(); } @@ -960,7 +960,7 @@ private void _testInvalidLongAccess(int mode) throws Exception p.getLongValue(); fail("Expected error trying to call getLongValue on non-numeric value"); } catch (JsonParseException e) { - verifyException(e, "can not use numeric value accessors"); + verifyException(e, "cannot use numeric value accessors"); } p.close(); } diff --git a/src/test/java/com/fasterxml/jackson/core/read/ParserClosingTest.java b/src/test/java/com/fasterxml/jackson/core/read/ParserClosingTest.java index d2c17778ab..ba348e3df4 100644 --- a/src/test/java/com/fasterxml/jackson/core/read/ParserClosingTest.java +++ b/src/test/java/com/fasterxml/jackson/core/read/ParserClosingTest.java @@ -119,7 +119,7 @@ void releaseContentBytes() throws Exception // theoretically could have only read subset; but current impl is more greedy assertEquals(6, jp.releaseBuffered(out)); assertArrayEquals("foobar".getBytes("UTF-8"), out.toByteArray()); - // also will "drain" so can not release twice + // also will "drain" so cannot release twice assertEquals(0, jp.releaseBuffered(out)); jp.close(); } @@ -135,7 +135,7 @@ void releaseContentChars() throws Exception // theoretically could have only read subset; but current impl is more greedy assertEquals(3, jp.releaseBuffered(sw)); assertEquals("xyz", sw.toString()); - // also will "drain" so can not release twice + // also will "drain" so cannot release twice assertEquals(0, jp.releaseBuffered(sw)); jp.close(); } diff --git a/src/test/java/com/fasterxml/jackson/core/read/loc/LocationOffsetsTest.java b/src/test/java/com/fasterxml/jackson/core/read/loc/LocationOffsetsTest.java index 9177e8a6c6..2de3d5e0d4 100644 --- a/src/test/java/com/fasterxml/jackson/core/read/loc/LocationOffsetsTest.java +++ b/src/test/java/com/fasterxml/jackson/core/read/loc/LocationOffsetsTest.java @@ -124,7 +124,7 @@ void withLazyStringReadStreaming() throws Exception @Test void withLazyStringReadDataInput() throws Exception { - // DataInput-backed reader does not track column, so can not + // DataInput-backed reader does not track column, so cannot // verify much; but force finishToken() regardless JsonParser p = createParser(JSON_F, MODE_DATA_INPUT, "[\"text\"]"); assertToken(JsonToken.START_ARRAY, p.nextToken()); diff --git a/src/test/java/com/fasterxml/jackson/core/sym/TestSymbolTables.java b/src/test/java/com/fasterxml/jackson/core/sym/TestSymbolTables.java index 6c7be74da8..42394bb69f 100644 --- a/src/test/java/com/fasterxml/jackson/core/sym/TestSymbolTables.java +++ b/src/test/java/com/fasterxml/jackson/core/sym/TestSymbolTables.java @@ -107,7 +107,7 @@ void thousandsOfSymbolsWithChars() throws IOException assertEquals(exp, symbolsCRoot.size()); } - // Note: can not validate root instance, is not set up same way + // Note: cannot validate root instance, is not set up same way } // Since 2.6