Skip to content

Commit

Permalink
Formatting and naming cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
esocode committed Jan 20, 2024
1 parent 7650d33 commit 6e65b75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/de/esoco/lib/property/Alignment.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ public int calcAlignedPosition(int start, int freeSpace,
* character.
* The character must be the first letter of the instance name.
*
* @param cChar The alignment character (case-sensitive)
* @param c The alignment character (case-sensitive)
* @return The matching alignment instance
* @throws IllegalArgumentException If the character doesn't represent an
* alignment instance
*/
public static Alignment valueOf(char cChar) {
public static Alignment valueOf(char c) {
for (Alignment a : values()) {
if (a.getCharacter() == cChar) {
if (a.getCharacter() == c) {
return a;
}
}

throw new IllegalArgumentException("No valid Alignment char: " + cChar);
throw new IllegalArgumentException("No valid Alignment char: " + c);
}

/**
Expand Down

0 comments on commit 6e65b75

Please sign in to comment.