Skip to content

Commit

Permalink
Replace type wrappers with primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
ullenius authored and Johannestegner committed Jun 25, 2020
1 parent ec15236 commit 82e0cb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main/java/dev/personnummer/Personnummer.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package dev.personnummer;

import java.time.LocalDate;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.*;

/**
* Class used to validate Swedish personal identity numbers.
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/PersonnummerData.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
public class PersonnummerData {

public PersonnummerData(Long integer, String longFormat, String shortFormat, String separatedFormat, String separatedLong, Boolean valid, String type, Boolean isMale, Boolean isFemale) {
public PersonnummerData(long integer, String longFormat, String shortFormat, String separatedFormat, String separatedLong, boolean valid, String type, boolean isMale, boolean isFemale) {
this.integer = integer;
this.longFormat = longFormat;
this.shortFormat = shortFormat;
Expand All @@ -12,14 +12,14 @@ public PersonnummerData(Long integer, String longFormat, String shortFormat, Str
this.isFemale = isFemale;
}

public Long integer;
public long integer;
public String longFormat;
public String shortFormat;
public String separatedFormat;
public String separatedLong;
public Boolean valid;
public boolean valid;
public String type;
public Boolean isMale;
public boolean isMale;
public boolean isFemale;

}

0 comments on commit 82e0cb2

Please sign in to comment.