Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
968c12a
Fix warnings from new ErrorProne rules
uhafner Aug 21, 2025
4a263ad
Improve README
uhafner Aug 21, 2025
1972bb9
Merge branch 'main' into fix-warnings
uhafner Aug 21, 2025
2834870
Merge branch 'main' into fix-warnings
uhafner Aug 21, 2025
18c9655
Merge branch 'main' into fix-warnings
uhafner Aug 21, 2025
d04f8f4
Merge branch 'main' into fix-warnings
uhafner Aug 21, 2025
feddb3c
Merge branch 'main' into fix-warnings
uhafner Aug 21, 2025
4869472
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
47cc037
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
b973a9d
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
9c1f0d6
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
f606186
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
8133ede
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
5afc439
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
f3542f0
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
052a040
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
b4a5c11
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
bea6bab
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
0f18ac6
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
bc1de59
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
1c7877a
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
41eac38
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
7d0806a
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
82b21ea
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
e02d4a8
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
0065791
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
f1a1c41
Merge branch 'main' into fix-warnings
uhafner Aug 22, 2025
2e49a78
Merge branch 'main' into fix-warnings
uhafner Aug 24, 2025
71156b3
Merge branch 'main' into fix-warnings
uhafner Aug 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Bugs](https://raw.githubusercontent.com/uhafner/codingstyle/main/badges/bugs.svg)](https://github.com/uhafner/codingstyle/actions/workflows/quality-monitor-pit.yml)

Each Java project should follow a consistent coding style.
I.e., all contributions to the source code should use the same formatting rules, design principles, code patterns, idioms, etc.
All contributions should follow the same formatting rules, design principles, code patterns, and idioms.
This coding style provides the set of rules that I am using in my lectures about software development at Munich University of Applied Sciences.

This project describes the coding style in detail (currently only available in German) and serves as a template project.
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/edu/hm/hafner/util/LineRangeList.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private void write(final LineRange r) {
*
* @return {@code true} if the read value is equal to the specified range
*/
public boolean compare(final LineRange other) {
private boolean compare(final LineRange other) {
int s = read();
int d = read();
return other.getStart() == s && other.getEnd() == s + d;
Expand Down Expand Up @@ -366,7 +366,7 @@ public int previousIndex() {
throw new UnsupportedOperationException("previousIndex is not supported");
}

public Cursor copy() {
private Cursor copy() {
return new Cursor(position);
}

Expand All @@ -389,7 +389,7 @@ private void adjust(final int diff) {
*
* @return the changed line range
*/
public LineRange rewrite(final LineRange other) {
private LineRange rewrite(final LineRange other) {
var c = copy();
var old = c.next();
int oldSize = c.position - position;
Expand Down Expand Up @@ -419,7 +419,7 @@ public void add(final LineRange v) {
*
* @return the deleted element
*/
public LineRange delete() {
private LineRange delete() {
var c = copy();
var old = c.next();
adjust(position - c.position);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/hm/hafner/util/TreeStringBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static final class Child {
*
* @return the node
*/
public Child intern(final String string) {
private Child intern(final String string) {
if (string.isEmpty()) {
return this;
}
Expand Down
Loading