diff --git a/.circleci/whitelist.txt b/.circleci/whitelist.txt index 9ef5c13..9c07242 100644 --- a/.circleci/whitelist.txt +++ b/.circleci/whitelist.txt @@ -1 +1 @@ -src/main/java/my/cute/Cat.java +src/main/java/my/cute/my.cute.Cat.java diff --git a/README.md b/README.md index e28018f..41156dc 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Java程序的基本结构练习:在指定的包中创建一个类 -请在`my.cute`包中(即`src/main/java/my/cute`目录中)创建一个名为`Cat`的公开类public class。在提交Pull Request之前,你应当在本地确保所有代码已经编译通过,并且通过了测试(`mvn clean test`) +请在`my.cute`包中(即`src/main/java/my/cute`目录中)创建一个名为`my.cute.Cat`的公开类public class。在提交Pull Request之前,你应当在本地确保所有代码已经编译通过,并且通过了测试(`mvn clean test`) ----- 注意!我们只允许你修改以下文件,对其他文件的修改会被拒绝: -- [src/main/java/my/cute/Cat.java](https://github.com/hcsp/create-an-empty-class-in-package/blob/master/src/main/java/my/cute/Cat.java) +- [src/main/java/my/cute/my.cute.Cat.java](https://github.com/hcsp/create-an-empty-class-in-package/blob/master/src/main/java/my/cute/Cat.java) ----- diff --git a/src/main/java/my/cute/Cat.java b/src/main/java/my/cute/Cat.java new file mode 100644 index 0000000..547c777 --- /dev/null +++ b/src/main/java/my/cute/Cat.java @@ -0,0 +1,4 @@ +package my.cute; + +public class Cat { +}