Changeset 16643 in josm for trunk/src/com/kitfox


Ignore:
Timestamp:
2020-06-14T20:19:59+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/StringSplitter

Location:
trunk/src/com/kitfox/svg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/kitfox/svg/Text.java

    r14346 r16643  
    268268    {
    269269        //Get font
    270         String[] families = fontFamily.split(",");
     270        String[] families = fontFamily.split(",", -1);
    271271        Font font = null;
    272272        for (int i = 0; i < families.length; ++i)
  • trunk/src/com/kitfox/svg/util/FontSystem.java

    r14331 r16643  
    7878    public static FontSystem createFont(String fontFamily, int fontStyle, int fontWeight, int fontSize)
    7979    {
    80         String[] families = fontFamily.split(",");
     80        String[] families = fontFamily.split(",", -1);
    8181        for (String fontName: families)
    8282        {
Note: See TracChangeset for help on using the changeset viewer.