output: #fixed code
                                  @Deprecated
      protected JsonGenerator _createJsonGenerator(Writer out, IOContext ctxt)
          throws IOException
      {
          /* NOTE: MUST call the deprecated method until it is deleted, just so
           * that override still works as expected, for now.
           */
          return _createGenerator(out, ctxt);
      }
input: #vulnerable code 
                                  @Deprecated
      protected JsonGenerator _createJsonGenerator(Writer out, IOContext ctxt)
          throws IOException
      {
          WriterBasedJsonGenerator gen = new WriterBasedJsonGenerator(ctxt,
                  _generatorFeatures, _objectCodec, out);
          if (_characterEscapes != null) {
              gen.setCharacterEscapes(_characterEscapes);
          }
          SerializableString rootSep = _rootValueSeparator;
          if (rootSep != DEFAULT_ROOT_VALUE_SEPARATOR) {
              gen.setRootValueSeparator(rootSep);
          }
          return gen;
      } 
                              #location 5 
                              #vulnerability type RESOURCE_LEAK