摘要: @SuppressWarnings注解用法详解 今天来谈谈@SuppressWarnings注解的作用。 J2SE 提供的最后一个批注是 @SuppressWarnings。该批注的作用是给编译器一条指令,告诉它对被批注的代码元素内部的某些警告保持静默。 @SuppressWarnings 批注允许 阅读全文
posted @ 2017-02-16 19:19 山清水秀ysu 阅读(11430) 评论(0) 推荐(1) 编辑
摘要: 1、 ClassLoader.getResourceAsStream() 与Class.getResourceAsStream()的区别 例如你写了一个MyTest类在包com.test.mycode 下,那么MyTest.class.getResourceAsStream("name") 会在co 阅读全文
posted @ 2017-02-16 15:55 山清水秀ysu 阅读(264) 评论(0) 推荐(0) 编辑