This is an automated email from the ASF dual-hosted git repository. pkarwasz pushed a commit to branch fix/git-identifiers in repository https://gitbox.apache.org/repos/asf/commons-codec.git
commit 508bfc576eb48b8a655fbce7f63a20a1ab8f64c1 Author: Piotr P. Karwasz <[email protected]> AuthorDate: Sun Apr 12 17:26:01 2026 +0200 Remove `FileMode.getMode()` The octal value associated to `FileMode` is not very useful to users, since it is only used internally, when generating the tree id. Therefore we can probably remove the getter for now. --- .../org/apache/commons/codec/digest/GitIdentifiers.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/java/org/apache/commons/codec/digest/GitIdentifiers.java b/src/main/java/org/apache/commons/codec/digest/GitIdentifiers.java index bd02afe2..4e2b54f4 100644 --- a/src/main/java/org/apache/commons/codec/digest/GitIdentifiers.java +++ b/src/main/java/org/apache/commons/codec/digest/GitIdentifiers.java @@ -180,29 +180,14 @@ public class GitIdentifiers { return REGULAR; } - /** - * The octal mode as used by Git. - */ - private final String mode; - /** * Serialized {@code mode}: since this is mutable, it must remain private. */ private final byte[] modeBytes; FileMode(final String mode) { - this.mode = mode; this.modeBytes = mode.getBytes(StandardCharsets.US_ASCII); } - - /** - * Gets the octal mode as used by Git. - * - * @return The octal mode. - */ - public String getMode() { - return mode; - } } /**
