소스 검색

new changes

Xcuello 5 년 전
부모
커밋
ecd74bff4a

+ 4
- 0
src/main/java/com/zipcodewilmington/phone/PhoneNumber.java 파일 보기

@@ -23,19 +23,23 @@ public final class PhoneNumber {
23 23
     }
24 24
 
25 25
     public String getAreaCode() {
26
+
26 27
         return toString().substring(1, 4);
27 28
     }
28 29
 
29 30
     public String getCentralOfficeCode() {
31
+
30 32
         return toString().substring(6, 9);
31 33
     }
32 34
 
33 35
     public String getPhoneLineCode() {
36
+
34 37
         return toString().substring(10, 14);
35 38
 }
36 39
 
37 40
     @Override
38 41
     public String toString() {
42
+
39 43
         return phoneNumberString;
40 44
     }
41 45
 }

+ 1
- 1
src/main/java/com/zipcodewilmington/phone/PhoneNumberFactory.java 파일 보기

@@ -66,7 +66,7 @@ public final class PhoneNumberFactory {
66 66
 
67 67
         } catch (InvalidPhoneNumberFormatException ipnfe) {
68 68
 
69
-            logger.info(phoneNumberStr + " is not a valid phone number." );
69
+            logger.info(phoneNumberStr + " is not a valid phone number.");
70 70
 
71 71
             return null;
72 72
         }

+ 1
- 1
src/test/java/com/zipcodewilmington/CreatePhoneNumberArray.java 파일 보기

@@ -11,7 +11,7 @@ public class CreatePhoneNumberArray {
11 11
     public void testCreateRandomPhoneNumberArrayCorrectLength() {
12 12
 
13 13
         //Given
14
-        PhoneNumber [] phoneNumbers = PhoneNumberFactory.createRandomPhoneNumberArray(5);
14
+        PhoneNumber[] phoneNumbers = PhoneNumberFactory.createRandomPhoneNumberArray(5);
15 15
 
16 16
         //When
17 17
         int expected = 5;