Changeset 13650 in josm
- Timestamp:
- 2018-04-19T23:04:48+02:00 (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/protocols/data/Handler.java
r13647 r13650 6 6 import java.net.URLConnection; 7 7 import java.net.URLStreamHandler; 8 import java.util.Optional; 8 9 9 10 import org.openstreetmap.josm.tools.Utils; … … 31 32 32 33 String protocolHandlers = Utils.getSystemProperty("java.protocol.handler.pkgs"); 33 if (protocolHandlers != null &&!protocolHandlers.contains(pkg)) {34 StringBuilder sb = new StringBuilder( protocolHandlers);34 if (protocolHandlers == null || !protocolHandlers.contains(pkg)) { 35 StringBuilder sb = new StringBuilder(Optional.ofNullable(protocolHandlers).orElse("")); 35 36 if (sb.length() > 0) { 36 37 sb.append('|'); -
trunk/tools/checkstyle/josm_checks.xml
r13227 r13650 113 113 <module name="FileLength"> 114 114 <property name="fileExtensions" value=".java"/> 115 <property name="max" value="2500"/> 115 116 </module> 116 117 <module name="FileTabCharacter"/>
Note:
See TracChangeset
for help on using the changeset viewer.