Too long field comment becomes log field name fix #4716
This commit is contained in:
parent
54cea0119a
commit
de122de978
Binary file not shown.
|
@ -21,7 +21,7 @@ public class OutputChannelWriter {
|
||||||
|
|
||||||
private int cumulativeSize = 0;
|
private int cumulativeSize = 0;
|
||||||
|
|
||||||
public void writeOutputChannels(ParseState parser, String namePrefix) throws FileNotFoundException {
|
public void writeOutputChannels(ParseState parser, String namePrefix) {
|
||||||
// Assume the last struct is the one we want...
|
// Assume the last struct is the one we want...
|
||||||
Struct s = parser.getStructs().get(parser.getStructs().size() - 1);
|
Struct s = parser.getStructs().get(parser.getStructs().size() - 1);
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,8 @@ public class TsOutput {
|
||||||
// we might have detailed long comment for header javadoc but need a short field name for logs/rusEFI online
|
// we might have detailed long comment for header javadoc but need a short field name for logs/rusEFI online
|
||||||
commentContent = commentContent.substring(0, newLineIndex);
|
commentContent = commentContent.substring(0, newLineIndex);
|
||||||
}
|
}
|
||||||
// if (!isConstantsSection && commentContent.length() > MSQ_LENGTH_LIMIT)
|
if (!isConstantsSection && commentContent.length() > MSQ_LENGTH_LIMIT)
|
||||||
// throw new IllegalStateException("[" + commentContent + "] is too long for rusEFI online");
|
throw new IllegalStateException("[" + commentContent + "] is too long for rusEFI online at " + commentContent.length());
|
||||||
settingContextHelp.append("\t" + nameWithPrefix + " = " + quote(commentContent) + EOL);
|
settingContextHelp.append("\t" + nameWithPrefix + " = " + quote(commentContent) + EOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue