Skip to content

Commit 125f438

Browse files
Merge pull request #18409 from yabetancourt/BAEL-9197-naming-conventions
BAEL-9197 Java naming conventions
2 parents 4d80b0c + fa1bc19 commit 125f438

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.namingconventions;
2+
3+
@interface Auditable {
4+
String action();
5+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.baeldung.namingconventions;
2+
3+
class CustomerAccount {
4+
private String accountNumber;
5+
private double balance;
6+
7+
public static final double MAX_BALANCE = 1000000.00;
8+
9+
public void deposit(double amount) {
10+
if (balance + amount > MAX_BALANCE) {
11+
System.out.println("Deposit exceeds max balance limit.");
12+
} else {
13+
this.balance += amount;
14+
}
15+
}
16+
}
17+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.baeldung.namingconventions;
2+
3+
enum DayOfWeek {
4+
SUNDAY,
5+
MONDAY,
6+
TUESDAY,
7+
WEDNESDAY,
8+
THURSDAY,
9+
FRIDAY,
10+
SATURDAY
11+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.namingconventions;
2+
3+
interface Printable {
4+
void print();
5+
}

0 commit comments

Comments
 (0)