Skip to content

Commit df586c5

Browse files
committed
try new java formatter
1 parent 38e90d3 commit df586c5

File tree

137 files changed

+53731
-46102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+53731
-46102
lines changed

src/main/java/com/xero/api/client/AccountingApi.java

Lines changed: 33557 additions & 25434 deletions
Large diffs are not rendered by default.

src/main/java/com/xero/models/accounting/Account.java

Lines changed: 515 additions & 472 deletions
Large diffs are not rendered by default.

src/main/java/com/xero/models/accounting/AccountType.java

Lines changed: 48 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -9,115 +9,67 @@
99
* Do not edit the class manually.
1010
*/
1111

12-
1312
package com.xero.models.accounting;
14-
import java.util.Objects;
15-
import java.util.Arrays;
16-
import io.swagger.annotations.ApiModel;
17-
import java.io.IOException;
18-
19-
import org.threeten.bp.OffsetDateTime;
20-
import org.threeten.bp.LocalDateTime;
21-
import org.threeten.bp.ZoneId;
22-
import org.threeten.bp.Instant;
23-
import org.threeten.bp.LocalDate;
24-
import com.xero.api.StringUtil;
13+
14+
2515
import com.fasterxml.jackson.annotation.JsonCreator;
2616
import com.fasterxml.jackson.annotation.JsonValue;
2717

28-
/**
29-
* See Account Types
30-
*/
18+
/** See Account Types */
3119
public enum AccountType {
32-
33-
/**
34-
* BANK
35-
*/
20+
21+
/** BANK */
3622
BANK("BANK"),
37-
38-
/**
39-
* CURRENT
40-
*/
23+
24+
/** CURRENT */
4125
CURRENT("CURRENT"),
42-
43-
/**
44-
* CURRLIAB
45-
*/
26+
27+
/** CURRLIAB */
4628
CURRLIAB("CURRLIAB"),
47-
48-
/**
49-
* DEPRECIATN
50-
*/
29+
30+
/** DEPRECIATN */
5131
DEPRECIATN("DEPRECIATN"),
52-
53-
/**
54-
* DIRECTCOSTS
55-
*/
32+
33+
/** DIRECTCOSTS */
5634
DIRECTCOSTS("DIRECTCOSTS"),
57-
58-
/**
59-
* EQUITY
60-
*/
35+
36+
/** EQUITY */
6137
EQUITY("EQUITY"),
62-
63-
/**
64-
* EXPENSE
65-
*/
38+
39+
/** EXPENSE */
6640
EXPENSE("EXPENSE"),
67-
68-
/**
69-
* FIXED
70-
*/
41+
42+
/** FIXED */
7143
FIXED("FIXED"),
72-
73-
/**
74-
* INVENTORY
75-
*/
44+
45+
/** INVENTORY */
7646
INVENTORY("INVENTORY"),
77-
78-
/**
79-
* LIABILITY
80-
*/
47+
48+
/** LIABILITY */
8149
LIABILITY("LIABILITY"),
82-
83-
/**
84-
* NONCURRENT
85-
*/
50+
51+
/** NONCURRENT */
8652
NONCURRENT("NONCURRENT"),
87-
88-
/**
89-
* OTHERINCOME
90-
*/
53+
54+
/** OTHERINCOME */
9155
OTHERINCOME("OTHERINCOME"),
92-
93-
/**
94-
* OVERHEADS
95-
*/
56+
57+
/** OVERHEADS */
9658
OVERHEADS("OVERHEADS"),
97-
98-
/**
99-
* PREPAYMENT
100-
*/
59+
60+
/** PREPAYMENT */
10161
PREPAYMENT("PREPAYMENT"),
102-
103-
/**
104-
* REVENUE
105-
*/
62+
63+
/** REVENUE */
10664
REVENUE("REVENUE"),
107-
108-
/**
109-
* SALES
110-
*/
65+
66+
/** SALES */
11167
SALES("SALES"),
112-
113-
/**
114-
* TERMLIAB
115-
*/
68+
69+
/** TERMLIAB */
11670
TERMLIAB("TERMLIAB"),
117-
118-
/**
119-
* PAYG
120-
*/
71+
72+
/** PAYG */
12173
PAYG("PAYG");
12274

12375
private String value;
@@ -134,16 +86,20 @@ public String getValue() {
13486
return value;
13587
}
13688

137-
/** toString
138-
* @return String value
139-
*/
89+
/**
90+
* toString
91+
*
92+
* @return String value
93+
*/
14094
@Override
14195
public String toString() {
14296
return String.valueOf(value);
14397
}
14498

145-
/** fromValue
146-
* @param value String
99+
/**
100+
* fromValue
101+
*
102+
* @param value String
147103
*/
148104
@JsonCreator
149105
public static AccountType fromValue(String value) {
@@ -155,4 +111,3 @@ public static AccountType fromValue(String value) {
155111
throw new IllegalArgumentException("Unexpected value '" + value + "'");
156112
}
157113
}
158-

src/main/java/com/xero/models/accounting/Accounts.java

Lines changed: 25 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,39 @@
99
* Do not edit the class manually.
1010
*/
1111

12-
1312
package com.xero.models.accounting;
14-
import java.util.Objects;
15-
import java.util.Arrays;
16-
import com.fasterxml.jackson.annotation.JsonInclude;
13+
1714
import com.fasterxml.jackson.annotation.JsonProperty;
18-
import com.fasterxml.jackson.annotation.JsonCreator;
19-
import com.fasterxml.jackson.annotation.JsonTypeName;
20-
import com.fasterxml.jackson.annotation.JsonValue;
21-
import com.xero.models.accounting.Account;
22-
import io.swagger.annotations.ApiModel;
15+
import com.xero.api.StringUtil;
2316
import io.swagger.annotations.ApiModelProperty;
2417
import java.util.ArrayList;
2518
import java.util.List;
26-
import java.io.IOException;
27-
28-
import org.threeten.bp.OffsetDateTime;
29-
import org.threeten.bp.LocalDateTime;
30-
import org.threeten.bp.ZoneId;
31-
import org.threeten.bp.Instant;
32-
import org.threeten.bp.LocalDate;
33-
import com.xero.api.StringUtil;
34-
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
35-
36-
/**
37-
* Accounts
38-
*/
19+
import java.util.Objects;
3920

21+
/** Accounts */
4022
public class Accounts {
4123
StringUtil util = new StringUtil();
4224

4325
@JsonProperty("Accounts")
4426
private List<Account> accounts = new ArrayList<Account>();
27+
4528
/**
46-
* accounts
47-
* @param accounts List&lt;Account&gt;
48-
* @return Accounts
49-
**/
29+
* accounts
30+
*
31+
* @param accounts List&lt;Account&gt;
32+
* @return Accounts
33+
*/
5034
public Accounts accounts(List<Account> accounts) {
5135
this.accounts = accounts;
5236
return this;
5337
}
5438

5539
/**
5640
* accounts
57-
* @param accountsItem Account
41+
*
42+
* @param accountsItem Account
5843
* @return Accounts
59-
**/
44+
*/
6045
public Accounts addAccountsItem(Account accountsItem) {
6146
if (this.accounts == null) {
6247
this.accounts = new ArrayList<Account>();
@@ -65,29 +50,30 @@ public Accounts addAccountsItem(Account accountsItem) {
6550
return this;
6651
}
6752

68-
/**
53+
/**
6954
* Get accounts
55+
*
7056
* @return accounts
71-
**/
57+
*/
7258
@ApiModelProperty(value = "")
73-
/**
59+
/**
7460
* accounts
61+
*
7562
* @return accounts List<Account>
76-
**/
63+
*/
7764
public List<Account> getAccounts() {
7865
return accounts;
7966
}
8067

81-
/**
82-
* accounts
83-
* @param accounts List&lt;Account&gt;
84-
**/
85-
68+
/**
69+
* accounts
70+
*
71+
* @param accounts List&lt;Account&gt;
72+
*/
8673
public void setAccounts(List<Account> accounts) {
8774
this.accounts = accounts;
8875
}
8976

90-
9177
@Override
9278
public boolean equals(java.lang.Object o) {
9379
if (this == o) {
@@ -105,7 +91,6 @@ public int hashCode() {
10591
return Objects.hash(accounts);
10692
}
10793

108-
10994
@Override
11095
public String toString() {
11196
StringBuilder sb = new StringBuilder();
@@ -116,15 +101,12 @@ public String toString() {
116101
}
117102

118103
/**
119-
* Convert the given object to string with each line indented by 4 spaces
120-
* (except the first line).
104+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
121105
*/
122106
private String toIndentedString(java.lang.Object o) {
123107
if (o == null) {
124108
return "null";
125109
}
126110
return o.toString().replace("\n", "\n ");
127111
}
128-
129112
}
130-

0 commit comments

Comments
 (0)