Commit Graph

41 Commits

Author SHA1 Message Date
Yongqiang Wei
7cb03aebfb
Merge pull request #1 from Jueee/dependabot/maven/ch04/ClassesAndInterfaces/junit-junit-4.13.1
Bump junit from 3.8.1 to 4.13.1 in /ch04类和接口/ClassesAndInterfaces
2020-10-15 14:16:26 +08:00
Yongqiang Wei
7e73a354d5
Merge pull request #2 from Jueee/dependabot/maven/ch03/MethodsCommonToAllObjects/junit-junit-4.13.1
Bump junit from 3.8.1 to 4.13.1 in /ch03所有对象的通用方法/MethodsCommonToAllObjects
2020-10-15 14:16:14 +08:00
Yongqiang Wei
17c7de22a0
Merge pull request #3 from Jueee/dependabot/maven/ch02/CreatingAndDestroyingObjects/junit-junit-4.13.1
Bump junit from 3.8.1 to 4.13.1 in /ch02创建和销毁对象/CreatingAndDestroyingObjects
2020-10-15 14:16:02 +08:00
Yongqiang Wei
013cccec14
Merge pull request #4 from Jueee/dependabot/maven/ch05/Generics/junit-junit-4.13.1
Bump junit from 3.8.1 to 4.13.1 in /ch05泛型/Generics
2020-10-15 14:15:48 +08:00
Yongqiang Wei
34a57e0126
Merge pull request #5 from Jueee/dependabot/maven/ch06/EnumsAnnotations/junit-junit-4.13.1
Bump junit from 3.8.1 to 4.13.1 in /ch06枚举和注解/EnumsAnnotations
2020-10-15 14:15:13 +08:00
尉勇强2
b135998a7c Merge branch 'master' of https://github.com/Jueee/effective-Java.git 2020-10-15 14:12:07 +08:00
尉勇强2
fef315148d 使用标记接口定义类型 2020-10-15 14:11:12 +08:00
尉勇强2
2edf799df1 枚举和注解 2020-10-15 14:10:53 +08:00
dependabot[bot]
17b52291a2
Bump junit from 3.8.1 to 4.13.1 in /ch06枚举和注解/EnumsAnnotations
Bumps [junit](https://github.com/junit-team/junit4) from 3.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/commits/r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 23:17:03 +00:00
dependabot[bot]
dba6b5c137
Bump junit from 3.8.1 to 4.13.1 in /ch05泛型/Generics
Bumps [junit](https://github.com/junit-team/junit4) from 3.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/commits/r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 20:30:09 +00:00
dependabot[bot]
3f63d1e578
Bump junit in /ch02创建和销毁对象/CreatingAndDestroyingObjects
Bumps [junit](https://github.com/junit-team/junit4) from 3.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/commits/r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 16:57:44 +00:00
dependabot[bot]
b92f3efb02
Bump junit in /ch03所有对象的通用方法/MethodsCommonToAllObjects
Bumps [junit](https://github.com/junit-team/junit4) from 3.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/commits/r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 16:57:42 +00:00
dependabot[bot]
a89f3ac80d
Bump junit from 3.8.1 to 4.13.1 in /ch04类和接口/ClassesAndInterfaces
Bumps [junit](https://github.com/junit-team/junit4) from 3.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/commits/r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 16:57:38 +00:00
Yongqiang Wei
33480f92ea Set theme jekyll-theme-cayman 2020-07-03 18:44:58 +08:00
尉勇强2
85d02fd51a 使用接口模拟可扩展的枚举 2020-04-16 20:14:52 +08:00
尉勇强2
242c7c8d58 使用 EnumSet 替代位属性 2020-04-15 20:16:11 +08:00
尉勇强2
3a137f7013 使用枚举类型替代整型常量 2020-04-01 20:16:17 +08:00
尉勇强2
1f4172cbe7 优先考虑类型安全的异构容器 2020-03-20 16:55:44 +08:00
尉勇强2
65d6670592 合理地结合泛型和可变参数 2020-03-20 09:41:47 +08:00
尉勇强2
7d60d049ce 使用限定通配符来增加 API 的灵活性 2019-12-18 20:06:36 +08:00
尉勇强2
7731ede3aa 优先使用泛型方法 2019-12-18 19:17:22 +08:00
尉勇强2
a17ea15649 优先考虑泛型 2019-11-26 20:16:56 +08:00
尉勇强2
714400aaf0 列表优于数组 2019-11-26 19:45:04 +08:00
尉勇强2
35b55d1c36 消除非检查警告 2019-11-21 19:59:07 +08:00
尉勇强2
e3a1234bb2 消除非检查警告 2019-11-21 19:55:41 +08:00
尉勇强2
8bd23ac892 将源文件限制为单个顶级类 2019-11-19 20:05:42 +08:00
尉勇强2
69043c55bc 接口仅用来定义类型 2019-11-14 20:15:19 +08:00
尉勇强2
2379035c3e 为后代设计接口 2019-11-13 19:14:34 +08:00
尉勇强2
1fc032d97d 接口优于抽象类 2019-11-07 19:47:40 +08:00
尉勇强2
52e5d7165a 接口和类 2019-10-24 20:11:14 +08:00
尉勇强2
9aded46fe5 在公共类中使用访问方法而不是公共属性 2019-10-14 19:47:17 +08:00
尉勇强2
070028eb93 使类和成员的可访问性最小化 2019-10-11 20:05:38 +08:00
尉勇强2
879b096a9d 考虑实现 Comparable 接口 2019-10-10 20:10:34 +08:00
尉勇强2
24d84af4a2 重写equals方法时遵守通用约定 2019-09-27 18:46:58 +08:00
尉勇强2
ca0267cf95 使用try-with-resources语句替代try-finally语句 2019-09-24 15:34:52 +08:00
尉勇强2
f74869667a 避免使用Finalizer和Cleaner机制 2019-09-17 20:17:31 +08:00
尉勇强2
d6857ddc4c 使用依赖注入取代硬连接资源 2019-09-16 20:17:17 +08:00
尉勇强2
f1df6a3327 用私有构造方法或枚类实现Singleton属性 2019-09-11 20:18:37 +08:00
尉勇强2
3e9b73708f 当构造方法参数过多时使用builder模式 2019-09-11 20:00:34 +08:00
尉勇强2
b50e2ad14e 使用静态工厂方法替代构造方法 2019-09-11 18:56:22 +08:00
尉勇强2
e0558ec5d9 first commit 2019-09-11 18:46:57 +08:00