AS使用lombok注解报错:Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotat ...
分类:
其他好文 时间:
2018-05-08 19:19:24
阅读次数:
160
Rebuild时报错信息如下所示: Error:Execution failed for task ':app:javaPreCompileDebug'.> Annotation processors must be explicitly declared now. The following de ...
1.先来介绍它的第一条也是最重要的一条:// global variable void msg() { printf("Hello\n"); } //main.c int main() { extern char a; // extern variable must be declared befo ...
分类:
编程语言 时间:
2018-05-07 13:36:23
阅读次数:
160
应用场景: 在开发中经常遇到要对List<Object>集合进行排序,并且是根据集合中的对象的某个属性来进行排序 以下就此做出的解决方案 以下代码原理: sort方法是对List集合中对象某个属性来进行排序的,例如: 运行结果 》 欢迎路过的哥们提好建议 ...
分类:
编程语言 时间:
2018-05-04 01:33:00
阅读次数:
189
想在python代码中输出汉字。但是老是出现SyntaxError: Non-ASCII character '\xe4' in file test.py on line , but no encoding declared。 (test.py是我自己的文件,提示错误出现在第4行, 你的文件也会得到 ...
分类:
编程语言 时间:
2018-04-16 14:34:33
阅读次数:
176
getFields()与getDeclaredFields()区别: getFields()只能访问类中声明为公有的字段,私有的字段它无法访问,能访问从其它类继承来的公有方法. getDeclaredFields()能访问类中所有的字段,与public,private,protect无关,不能访问从 ...
分类:
编程语言 时间:
2018-03-31 21:28:22
阅读次数:
219
在java中,偶尔会报下面的error Error: class X is public, should be declared in a file named X.java. 解决这种问题的方法是:简单的重命名类文件名,以匹配java代码中的类名称 要注意的是: 注意大小写也应该一致 ...
分类:
其他好文 时间:
2018-03-11 11:51:20
阅读次数:
144
6.3. Scope of a Declaration The scope of a declaration of a member m declared in or inherited by an interface type I (§9.1.4) is the entire body of I, ...
分类:
其他好文 时间:
2018-03-09 16:14:20
阅读次数:
180
/home/zhanghu/catkin_ws/src/map_img_proccess/src/main.cpp:9:3: error:‘key_data_collect’ has not been declared key_data_collect::collect my_collect("/l ...
分类:
其他好文 时间:
2018-03-02 23:55:31
阅读次数:
321
1.不要将class文件名设置成与系统类相同,否则导包容易出现错误2.如果集合中存储的是类的话,那么使用contains方法的话需要对位使用,不能直接对整个集合使用,否则将没效果(需要拆进去)(day09:LessionCode)3.extend继承父类,用super调用父类方法,protected ...
分类:
其他好文 时间:
2018-02-12 23:40:10
阅读次数:
200