自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 静态代码检查工具对比 lint checkStyles findbugs PMD

都优先在开发过程中本地使用 ,推荐程度 : lint > checkStyles > findbugs > PMD将lint配置到jenkins ,打包前检查 ,主要检查未使用资源区别 :findbug :检查JAVA类和JAR 包,发现如NPE 等问题PMD : 检查源代码,发现如无用代码等问题checkStyles : 按照规则,检查不符合代码规范的问题Lint :Andr...

2018-04-12 20:59:29 1561

原创 Throwable Error Exception RuntimeException 解析

ThrowableThe  Throwable class is the superclass of all errors and exceptions in the Java language. Only objects that are instances of this class (or one of its subclasses) are thrown by the Java Vir

2017-12-12 13:28:07 935

原创 混淆出错 proguard.ParseException Unexpected keyword

cWarning: Exception while processing task java.io.IOException: proguard.ParseException: Unexpected keyword 'com.xx.**' in line 289 of file '/opt2/jenkins/workspace/MyApplication/app/proguard-rules.p

2017-11-17 17:44:01 4605 1

原创 Bitmap 解析大图时 OOM 解决办法

options.inJustDecodeBounds 在decode时的使用

2017-09-12 20:33:23 1185

原创 Android 与 设计模式(2)——工厂模式

工厂模式不会对使用者暴露创建逻辑,并且是通过使用一个共同的接口来指向新创建的对象。 以简单工厂为例// 提供统一的抽象接口供子类实现public interface Factory { void create();}// 子类实现抽象接口public class Computer implements Factory{ @Override public void c

2017-08-15 20:46:10 454

原创 Android与设计模式(1)—— 单例模式(8.12)

单例模式只有一个实例化对象,适用于资源管理类,配置相关类以及有统一需求的类。

2017-08-15 20:31:38 243

原创 一个demo掌握Android Manifest文件的android:supportsRtl="true"属性(7.22)

supportsRtl ==>  supports right to lift  是否支持 从右到左的布局(主要是方便从右到左的阅读习惯)官网注解 :Declares whether your application is willing to support right-to-left (RTL) layouts

2017-07-19 10:39:55 738

原创 java Object 全解析(未完待续)

简介Objects 是Java所有类的基类(即使没有显示继承 extend Object) 除构造方法分为以下几类 : 1)getClass() 2)hashcode(),eques(),clone(),internalClone() 3)notify() ,notifyAll() ,wait(),wait(long),wait(long,int) 4)finalize()源码

2017-07-04 20:33:08 274

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除