diff --git a/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java b/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java index 4d8194780..87f3567c3 100644 --- a/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java +++ b/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java @@ -435,6 +435,7 @@ private Map loadFilesWithLocations() { * to Linux/Unix-style forward slashes (`/`) when the application is running on a Windows OS. * On other operating systems, the input path is returned unchanged.

* This is needed because imports in Protobuf use forward slashes (`/`) for the imports + * which causes a conflict with Windows paths. Ie: `language/language.proto` is converted to `language\language.proto` * * @param path the file path to standardize; must not be {@code null}. * @return the standardized file path with forward slashes if running on Windows, or the original path otherwise.