Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtjeferreira committed Feb 9, 2022
1 parent 98867e2 commit 80eeb68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private Stream<File> handleMessage(
String javaPackage
) {
String filePath = javaPackage.replace(".", DIR_SEPARATOR) + DIR_SEPARATOR + fileName + JAVA_EXTENSION;
String fullMethodName = protoPackage + "." + messageDescriptor.getName();
String fullMethodName = (protoPackage.isEmpty() ? "" : (protoPackage + ".")) + messageDescriptor.getName();

return Stream.concat(
handleSingleMessage(messageDescriptor, filePath, fullMethodName),
Expand Down

0 comments on commit 80eeb68

Please sign in to comment.