Skip to content

Commit 932bdd1

Browse files
committed
Reformat code
1 parent 42db58d commit 932bdd1

8 files changed

Lines changed: 28 additions & 28 deletions

File tree

src/assembly/bin.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</formats>
66
<dependencySets>
77
<dependencySet>
8-
<unpack>false</unpack>
9-
<scope>runtime</scope>
10-
<outputDirectory>lib</outputDirectory>
8+
<unpack>false</unpack>
9+
<scope>runtime</scope>
10+
<outputDirectory>lib</outputDirectory>
1111
</dependencySet>
1212
</dependencySets>
1313
<fileSets>

src/main/java/com/maxmind/minfraud/request/CreditCard.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public CreditCard.Builder cvvResult(Character code) {
137137
* token with a fixed string, e.g., "token-".
138138
* @return The builder object.
139139
* @throws IllegalArgumentException when the token is invalid.
140-
*
141140
*/
142141
public CreditCard.Builder token(String token) {
143142
if (!TOKEN_PATTERN.matcher(token).matches()) {

src/main/java/com/maxmind/minfraud/request/CustomInputs.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public static class Builder {
3333
/**
3434
* Add a string custom input.
3535
*
36-
* @param key The key for the custom input as defined on your account
37-
* portal.
36+
* @param key The key for the custom input as defined on your account
37+
* portal.
3838
* @param value The custom input value. Must be less than 256 characters
3939
* and must not contain new lines.
4040
* @return The builder object.
@@ -44,17 +44,17 @@ public Builder put(String key, String value) {
4444
validateKey(key);
4545
if (value.length() > 255 || value.contains("\n"))
4646
throw new IllegalArgumentException("The custom input string " +
47-
value + " is invalid. The string be less than" +
48-
"256 characters and the string must not contain a newline.");
47+
value + " is invalid. The string be less than" +
48+
"256 characters and the string must not contain a newline.");
4949
inputs.put(key, value);
5050
return this;
5151
}
5252

5353
/**
5454
* Add a numeric custom input.
5555
*
56-
* @param key The key for the custom input as defined on your account
57-
* portal.
56+
* @param key The key for the custom input as defined on your account
57+
* portal.
5858
* @param value The custom input value. Must be between -2^53 and 2^53,
5959
* exclusive.
6060
* @return The builder object.
@@ -75,8 +75,8 @@ public Builder put(String key, Number value) {
7575
/**
7676
* Add a boolean custom input.
7777
*
78-
* @param key The key for the custom input as defined on your account
79-
* portal.
78+
* @param key The key for the custom input as defined on your account
79+
* portal.
8080
* @param value The custom input value.
8181
* @return The builder object.
8282
* @throws IllegalArgumentException when the key or value are invalid.

src/main/java/com/maxmind/minfraud/request/Device.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@ public Device.Builder acceptLanguage(String acceptLanguage) {
7474
* Note that session_age is not the duration of the
7575
* current visit, but the time since the start of the
7676
* first visit.
77-
* @return The builder object.
77+
* @return The builder object.
7878
*/
79-
public Device.Builder sessionAge(Double sessionAge) { this.sessionAge =
80-
sessionAge; return this; }
79+
public Device.Builder sessionAge(Double sessionAge) {
80+
this.sessionAge =
81+
sessionAge;
82+
return this;
83+
}
8184

8285
/**
8386
* @param sessionId A string up to 255 characters in length. This is

src/main/java/com/maxmind/minfraud/response/Email.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public Email(
2525
Boolean isFree,
2626
Boolean isHighRisk
2727
) {
28-
this(isFree,isHighRisk,null);
28+
this(isFree, isHighRisk, null);
2929
}
3030

3131
public Email() {
@@ -50,8 +50,8 @@ public Boolean isHighRisk() {
5050

5151
/**
5252
* @return A date string (e.g. 2017-04-24) to identify the date an email
53-
* address was first seen by MaxMind. This is expressed using the
54-
* ISO 8601 date format.
53+
* address was first seen by MaxMind. This is expressed using the
54+
* ISO 8601 date format.
5555
*/
5656
@JsonProperty("first_seen")
5757
public String getFirstSeen() {

src/test/java/com/maxmind/minfraud/request/RequestTestHelper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ public static Transaction fullTransaction() throws Exception {
118118
.build()
119119
).customInputs(
120120
new CustomInputs.Builder()
121-
.put("float_input", 12.1)
122-
.put("integer_input", 3123)
123-
.put("string_input", "This is a string input.")
124-
.put("boolean_input", true)
125-
.build()
121+
.put("float_input", 12.1)
122+
.put("integer_input", 3123)
123+
.put("string_input", "This is a string input.")
124+
.put("boolean_input", true)
125+
.build()
126126
).build();
127127
}
128128

src/test/java/com/maxmind/minfraud/request/TransactionTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public void testCreditCard() throws Exception {
2929
Transaction request = this.builder().creditCard(new CreditCard.Builder().bankName("name").build()).build();
3030
assertEquals("name", request.getCreditCard().getBankName());
3131
}
32+
3233
@Test
3334
public void testCustomInputs() throws Exception {
3435
Transaction request = this.builder().customInputs(

src/test/java/com/maxmind/minfraud/response/EmailTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
import com.fasterxml.jackson.jr.ob.JSON;
44
import org.junit.Test;
55

6-
import static org.junit.Assert.assertEquals;
7-
import static org.junit.Assert.assertFalse;
8-
import static org.junit.Assert.assertTrue;
9-
import static org.junit.Assert.assertNull;
6+
import static org.junit.Assert.*;
107

118
public class EmailTest extends AbstractOutputTest {
129

@@ -26,7 +23,7 @@ public void testEmail() throws Exception {
2623

2724
assertFalse(email.isFree());
2825
assertTrue(email.isHighRisk());
29-
assertEquals(email.getFirstSeen(),"2017-01-02");
26+
assertEquals(email.getFirstSeen(), "2017-01-02");
3027
}
3128

3229
@Test

0 commit comments

Comments
 (0)