瀏覽代碼

gigasecond: revert parameter name change

Stuart Kent 9 年之前
父節點
當前提交
581761deee

+ 6
- 6
exercises/gigasecond/src/example/java/Gigasecond.java 查看文件

@@ -3,18 +3,18 @@ import java.time.LocalDate;
3 3
 
4 4
 class Gigasecond {
5 5
 
6
-    private LocalDateTime initialDateTime;
6
+    private LocalDateTime birthDateTime;
7 7
 
8
-    Gigasecond(LocalDate initialDate) {
9
-        this.initialDateTime = initialDate.atTime(0, 0);
8
+    Gigasecond(LocalDate birthDate) {
9
+        this.birthDateTime = birthDate.atTime(0, 0);
10 10
     }
11 11
 
12
-    Gigasecond(LocalDateTime initialDateTime) {
13
-        this.initialDateTime = initialDateTime;
12
+    Gigasecond(LocalDateTime birthDateTime) {
13
+        this.birthDateTime = birthDateTime;
14 14
     }
15 15
 
16 16
     LocalDateTime getDate() {
17
-        return initialDateTime.plusSeconds(1000000000);
17
+        return birthDateTime.plusSeconds(1000000000);
18 18
     }
19 19
 
20 20
 }

+ 2
- 2
exercises/gigasecond/src/main/java/Gigasecond.java 查看文件

@@ -3,11 +3,11 @@ import java.time.LocalDateTime;
3 3
 
4 4
 class Gigasecond {
5 5
 
6
-    Gigasecond(LocalDate initialDate) {
6
+    Gigasecond(LocalDate birthDate) {
7 7
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
8 8
     }
9 9
 
10
-    Gigasecond(LocalDateTime initialDateTime) {
10
+    Gigasecond(LocalDateTime birthDateTime) {
11 11
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
12 12
     }
13 13