Skip to content

Commit eb235a0

Browse files
committed
add formatter pipeline
1 parent 74296e0 commit eb235a0

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/format.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: format and commit all java files
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'steffen'
8+
9+
jobs:
10+
formatting:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: axel-op/googlejavaformat-action@v3

java2/generics/genericteam/Team.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void printTeamName() {
2020

2121
public void printPlayerNames() {
2222
for (T player : players) {
23-
System.out.println(player.name) // Problem
23+
System.out.println(player.name); // Problem
2424
}
2525
}
2626

0 commit comments

Comments
 (0)