diff options
author | James Moger <james.moger@gitblit.com> | 2011-05-26 17:11:38 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-05-26 17:11:38 -0400 |
commit | 2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa (patch) | |
tree | b9bc648068b0af5cbbbc3e2e0ad707e0c59d4db2 /src/com/gitblit/utils/GitWebDiffFormatter.java | |
parent | f13c4c5a35a18d8478b276cc44570bbc3398aa73 (diff) | |
download | gitblit-2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa.tar.gz gitblit-2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa.zip |
Findbugs. CodePro Audit. Checkstyle. Unit test refactoring.
Diffstat (limited to 'src/com/gitblit/utils/GitWebDiffFormatter.java')
-rw-r--r-- | src/com/gitblit/utils/GitWebDiffFormatter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/gitblit/utils/GitWebDiffFormatter.java b/src/com/gitblit/utils/GitWebDiffFormatter.java index 97d6bf81..b998259b 100644 --- a/src/com/gitblit/utils/GitWebDiffFormatter.java +++ b/src/com/gitblit/utils/GitWebDiffFormatter.java @@ -47,7 +47,8 @@ public class GitWebDiffFormatter extends DiffFormatter { * @throws IOException
*/
@Override
- protected void writeHunkHeader(int aStartLine, int aEndLine, int bStartLine, int bEndLine) throws IOException {
+ protected void writeHunkHeader(int aStartLine, int aEndLine, int bStartLine, int bEndLine)
+ throws IOException {
os.write("<div class=\"diff hunk_header\"><span class=\"diff hunk_info\">".getBytes());
os.write('@');
os.write('@');
@@ -93,7 +94,8 @@ public class GitWebDiffFormatter extends DiffFormatter { }
@Override
- protected void writeLine(final char prefix, final RawText text, final int cur) throws IOException {
+ protected void writeLine(final char prefix, final RawText text, final int cur)
+ throws IOException {
switch (prefix) {
case '+':
os.write("<span class=\"diff add\">".getBytes());
|