我先来,引用别人的 jar 包时,看到源码还能这么玩。。。
if (deviceInfoModel == null || (deviceInfoModel.getDevices() == null || deviceInfoModel.getDevices().size() == 0)) {
try {
throw new DeviceNotFoundException("Android Device Not Found !!!");
} catch (DeviceNotFoundException e) {
System.err.println(e.toString());
}
}
这 throw 了又 catch,秀操作呢?!
大伙说说遇到过的惊艳代码,任何语言都可以