Changeset 6908 in josm for trunk/src/org
- Timestamp:
- 2014-03-12T15:20:34+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r6899 r6908 571 571 572 572 /** 573 * Calculate the CRC32 checksum from a string573 * Calculates the CRC32 checksum from a string (based on RFC 1952). 574 574 * @param s the string 575 575 * @return long value from 0 to 2^32-1 … … 577 577 public static long CRC32_checksum(String s) { 578 578 CRC32 cs = new CRC32(); 579 cs.update(s.getBytes( ));579 cs.update(s.getBytes(Utils.UTF_8)); 580 580 return cs.getValue(); 581 581 }
Note:
See TracChangeset
for help on using the changeset viewer.