Skip to content

Commit 7ce20ac

Browse files
authored
Merge pull request #33 from kishida/java_braces_position
Change the position of braces on Java
2 parents ffe8a46 + 7b253c6 commit 7ce20ac

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

java/class-naming.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
- Avoid acronyms and abbreviations
77

88
```java
9-
public class Company
10-
{  
9+
public class Company {  
1110
...
1211
}  
13-
```
12+
```

java/constant-naming.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
- It may contain digits but not as the first letter
77

88
```java
9-
class Product
10-
{   
9+
class Product {   
1110
static final int MAX_TEMPERATURE = 36;  
1211
...
1312
14-
```
13+
```

java/interface-naming.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
- Avoid acronyms and abbreviations
66

77
```java
8-
interface Bookable
9-
{  
8+
interface Bookable {  
109
...
1110
}  
12-
```
11+
```

java/method-naming.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
- If the name contains multiple words, start it with a lowercase letter followed by an uppercase letter e.g. getJsonParser()
77

88
```java
9-
public class Company
10-
{  
11-
void getEmployee()
12-
{
9+
public class Company {  
10+
void getEmployee() {
1311
...
1412
}
1513
}  
16-
```
14+
```

java/package-naming.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
```java
88
package java.awt.event;
9-
class Car  
10-
{  
9+
class Car {  
1110
...
1211
}
13-
```
12+
```

java/variable-naming.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99

1010
```java
11-
class Student
12-
{  
11+
class Student {  
1312
int age;
1413
...
1514
}  
16-
```
15+
```

0 commit comments

Comments
 (0)