Git Product home page Git Product logo

Comments (9)

sockeqwe avatar sockeqwe commented on June 25, 2024

Thanks for the hint. Does that makes any difference regarding performance?

Jake Wharton [email protected] schrieb am Mi., 1. Juni 2016, 16:56:

For example, this can be replaced with

private static final ByteString CDATA_CLOSE = ByteString.decodeUtf8("]]>");// ...long index = source.indexOf(CDATA_CLOSE);if (index == -1) throw ...return index;


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#25, or mute the thread
https://github.com/notifications/unsubscribe/AAjnrge7qhP1NcmGlZZSP6kbWWfsqubrks5qHZ2UgaJpZM4Iro3S
.

from tikxml.

JakeWharton avatar JakeWharton commented on June 25, 2024

No. Just code reduction on your part.

from tikxml.

sockeqwe avatar sockeqwe commented on June 25, 2024

👍

from tikxml.

FabianTerhorst avatar FabianTerhorst commented on June 25, 2024

this could fix the issue with a json array inside cdata.

from tikxml.

iNoles avatar iNoles commented on June 25, 2024

Is this bug is still good?

from tikxml.

sockeqwe avatar sockeqwe commented on June 25, 2024

It is, although it is not a bug. It's just for better code readability.

from tikxml.

iNoles avatar iNoles commented on June 25, 2024

What does need to be change from https://github.com/Tickaroo/tikxml/blob/master/core/src/main/java/com/tickaroo/tikxml/XmlReader.java#L663

from tikxml.

FabianTerhorst avatar FabianTerhorst commented on June 25, 2024

Its already replaced on this place.

from tikxml.

FabianTerhorst avatar FabianTerhorst commented on June 25, 2024

https://github.com/Tickaroo/tikxml/blob/master/core/src/main/java/com/tickaroo/tikxml/XmlReader.java#L305 and https://github.com/Tickaroo/tikxml/blob/master/core/src/main/java/com/tickaroo/tikxml/XmlReader.java#L790 can be simplified.

from tikxml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.