Ignore:
Timestamp:
2016-08-06T16:52:01+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390, see #11924 - replace javax.xml.bind.DatatypeConverter (not visible by default in Java 9) by java.util.Base64 (new in Java 8)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10741 r10746  
    3232import java.util.ArrayList;
    3333import java.util.Arrays;
     34import java.util.Base64;
    3435import java.util.Collection;
    3536import java.util.HashMap;
     
    5556import javax.imageio.stream.ImageInputStream;
    5657import javax.swing.ImageIcon;
    57 import javax.xml.bind.DatatypeConverter;
    5858import javax.xml.parsers.ParserConfigurationException;
    5959
     
    951951            byte[] bytes;
    952952            if (";base64".equals(base64)) {
    953                 bytes = DatatypeConverter.parseBase64Binary(data);
     953                bytes = Base64.getDecoder().decode(data);
    954954            } else {
    955955                try {
Note: See TracChangeset for help on using the changeset viewer.