@SneakyThrows 注解
来源:互联网 发布:天猫魔盒网络无法连接 编辑:程序博客网 时间:2024/06/05 05:44
package org.digdata.swustoj;import lombok.Cleanup;import lombok.SneakyThrows;import java.io.IOException;import java.io.InputStream;/** * Created by hongfei.whf on 2016/8/31. */public class Main { @SneakyThrows public static void test() { @Cleanup InputStream in=new InputStream() { @Override public void close() throws IOException { super.close(); System.out.println("this is close"); } @Override public int read() throws IOException { return 0; } }; System.out.println("haha1"); if (1 == 1) { Integer.valueOf("s"); } System.out.println("haha2"); } public static void main(String args[]) { try { test(); System.out.println("hshs3"); } catch (Exception e) { System.out.println("haha3"); } }}
0 0
- @SneakyThrows 注解
- Lombok知识点记录 - @SneakyThrows
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解
- 注解。
- 注解
- 注解
- C/C++面试题(2)——查找链表中倒数第k个数
- 倒计时
- java设计模式之工厂方法模式
- activemq中多个consumer引起接收不到信息
- 关于用JAX-WS调用webservice异常:Server did not recognize the value of HTTP Header SOAPAction: .
- @SneakyThrows 注解
- 控制Shader只写入深度值
- GDT,LDT,GDTR,LDTR 详解,包你理解透彻
- 怎样从user版本中提取应用数据
- new和malloc
- php下ftp扩展安装
- Python 代码获取对应的网址
- YARN的内存和CPU配置
- Find the Difference --LeetCode