fix a minor flaw in allocation handling
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java
index b15be34..15d26d4 100644
--- a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java
+++ b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java
@@ -818,10 +818,7 @@
             return createParser(new StringReader(content));
         }
         IOContext ctxt = _createContext(content, true);
-        char[] buf = ctxt.allocTokenBuffer();
-        if (buf.length < strLen) { // sanity check; should never occur
-            buf = new char[strLen];
-        }
+        char[] buf = ctxt.allocTokenBuffer(strLen);
         content.getChars(0, strLen, buf, 0);
         return _createParser(buf, 0, strLen, ctxt, true);
     }