esthervidal78 / json-smart

Automatically exported from code.google.com/p/json-smart
0 stars 0 forks source link

escape4web minor change #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
can we please change a small line of code here?

JStylerObj.java

public void escape(String s, Appendable sb) {
      try {

                           for (int i = 0; i < s.length(); i++) {
}
     }
}

can we replace s.lenght() with int l = s.length() and use this var?
i think that there will be a little improve of performance, will avoid the 
continuous call to an external object method

Original issue reported on code.google.com by ramarr...@gmail.com on 28 Nov 2012 at 1:27

GoogleCodeExporter commented 8 years ago
Fixed on GIT.

Original comment by uriel.chemouni on 3 Jan 2013 at 10:44

GoogleCodeExporter commented 8 years ago

Original comment by uriel.chemouni on 3 Jan 2013 at 10:46