Kaynağa Gözat

gigasecond: revert parameter name change

Stuart Kent 9 yıl önce
ebeveyn
işleme
581761deee

+ 6
- 6
exercises/gigasecond/src/example/java/Gigasecond.java Dosyayı Görüntüle

3
 
3
 
4
 class Gigasecond {
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
     LocalDateTime getDate() {
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 Dosyayı Görüntüle

3
 
3
 
4
 class Gigasecond {
4
 class Gigasecond {
5
 
5
 
6
-    Gigasecond(LocalDate initialDate) {
6
+    Gigasecond(LocalDate birthDate) {
7
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
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
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
11
         throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
12
     }
12
     }
13
 
13