mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
optimize style
This commit is contained in:
@@ -36,7 +36,7 @@ public class UrlResource implements Resource, Serializable{
|
||||
*/
|
||||
public UrlResource(URL url, String name) {
|
||||
this.url = url;
|
||||
this.name = ObjectUtil.defaultIfNull(name, () -> (null != url) ? FileUtil.getName(url.getPath()) : null);
|
||||
this.name = ObjectUtil.defaultIfNull(name, () -> (null != url ? FileUtil.getName(url.getPath()) : null));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user