Skip to content

Commit 647f907

Browse files
committed
Formatter
1 parent 43b86c9 commit 647f907

7 files changed

Lines changed: 19 additions & 18 deletions

File tree

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/Account.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
* @author Dominik Schadow
2626
*/
2727
public class Account implements Serializable {
28-
private static final long serialVersionUID = 4793967348395291417L;
28+
private static final long serialVersionUID = 4793967348395291417L;
2929

30-
private int accountId;
30+
private int accountId;
3131
private String name;
3232
private String type;
3333
private int ownerId;

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/AccountIntegerController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@
2525
import java.util.List;
2626

2727
/**
28-
* Managed bean to access an account by account reference (IntegerAccessReferenceMap). Only accounts belonging to the current user are contained in this map.
28+
* Managed bean to access an account by account reference (IntegerAccessReferenceMap). Only accounts belonging to the
29+
* current user are contained in this map.
2930
*
3031
* @author Dominik Schadow
3132
*/
3233
@ManagedBean(name = "accountInteger")
3334
@SessionScoped
3435
public class AccountIntegerController implements Serializable {
35-
private static final long serialVersionUID = -7028823778341291008L;
36+
private static final long serialVersionUID = -7028823778341291008L;
3637

37-
private List<String> accountReferences = new ArrayList<>();
38+
private List<String> accountReferences = new ArrayList<>();
3839
private int iaAccountId = 1;
3940
private int userId = 42;
4041
private transient AccountsIntegerDAO dao;

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/AccountRandomController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@
2525
import java.util.List;
2626

2727
/**
28-
* Managed bean to access an account by account reference (RandomAccessReferenceMap). Only accounts belonging to the current user are contained in this map.
28+
* Managed bean to access an account by account reference (RandomAccessReferenceMap). Only accounts belonging to the
29+
* current user are contained in this map.
2930
*
3031
* @author Dominik Schadow
3132
*/
3233
@ManagedBean(name = "accountRandom")
3334
@SessionScoped
3435
public class AccountRandomController implements Serializable {
35-
private static final long serialVersionUID = -1993232852833249965L;
36+
private static final long serialVersionUID = -1993232852833249965L;
3637

37-
private List<String> accountReferences = new ArrayList<>();
38+
private List<String> accountReferences = new ArrayList<>();
3839
private String raAccountId = "";
3940
private int userId = 42;
4041
private transient AccountsRandomDAO dao;

Ch05_AccessReferenceMaps/src/main/java/de/dominikschadow/webappsecurity/User.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
* @author Dominik Schadow
2626
*/
2727
public class User implements Serializable {
28-
private static final long serialVersionUID = 2867611705549340780L;
28+
private static final long serialVersionUID = 2867611705549340780L;
2929

30-
private int userId;
30+
private int userId;
3131
private String name;
3232

3333
public int getUserId() {

Ch06_SQLInjection/src/main/java/de/dominikschadow/webappsecurity/domain/Customer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public int getOrderLimit() {
5454
public void setOrderLimit(int orderLimit) {
5555
this.orderLimit = orderLimit;
5656
}
57-
57+
5858
@Override
5959
public String toString() {
6060
StringBuilder customer = new StringBuilder();
6161
customer.append("ID ").append(custId);
6262
customer.append(", Name ").append(name);
6363
customer.append(", Status ").append(status);
6464
customer.append(", Order Limit ").append(orderLimit);
65-
65+
6666
return customer.toString();
6767
}
6868
}

Ch07_XSS/src/main/java/de/dominikschadow/webappsecurity/daos/HibernateUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
import org.hibernate.service.ServiceRegistryBuilder;
2525

2626
/**
27-
*
2827
* @author Dominik Schadow
2928
*/
3029
public class HibernateUtil {
3130
public static SessionFactory getSessionFactory() throws HibernateException {
3231
Configuration configuration = new Configuration();
3332
configuration.configure();
34-
ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();
33+
ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties())
34+
.buildServiceRegistry();
3535
return configuration.buildSessionFactory(serviceRegistry);
3636
}
3737
}

Ch07_XSS/src/main/java/de/dominikschadow/webappsecurity/domain/Customer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@
2424
import java.io.Serializable;
2525

2626
/**
27-
*
2827
* @author Dominik Schadow
2928
*/
3029
@Entity
3130
public class Customer implements Serializable {
32-
private static final long serialVersionUID = -7895805439708336685L;
31+
private static final long serialVersionUID = -7895805439708336685L;
3332

34-
@Id
33+
@Id
3534
@GeneratedValue(strategy = GenerationType.AUTO)
3635
private int custId;
3736
private String name;
@@ -87,7 +86,7 @@ public String toString() {
8786
customer.append(", Status ").append(status);
8887
customer.append(", Order Limit ").append(orderLimit);
8988
customer.append(", Comment ").append(comment);
90-
89+
9190
return customer.toString();
9291
}
9392
}

0 commit comments

Comments
 (0)