mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Remove trailing space for code blocks
This commit is contained in:
@@ -129,7 +129,8 @@ public final class BugPatternInstance {
|
||||
sampleCode = StringEscapeUtils.unescapeJava(sampleCode);
|
||||
|
||||
try {
|
||||
return FORMATTER.formatSource(sampleCode);
|
||||
// Trim to remove trailing line-break.
|
||||
return FORMATTER.formatSource(sampleCode).trim();
|
||||
} catch (FormatterException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user