소스 검색

Move DiffFormatter default initialization to fields

Other fields in this class are initialized in their declaration, make
the code consistent with itself and use only one style.

Change-Id: I49a007e97ba52faa6b89f7e4b1eec85dccac0fa4
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
tags/v0.9.1
Shawn O. Pearce 13 년 전
부모
커밋
1ea356b346
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    4
      org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java

+ 2
- 4
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java 파일 보기

@@ -82,9 +82,9 @@ public class DiffFormatter {

private Repository db;

private int context;
private int context = 3;

private int abbreviationLength;
private int abbreviationLength = 7;

private RawText.Factory rawTextFactory = RawText.FACTORY;

@@ -100,8 +100,6 @@ public class DiffFormatter {
*/
public DiffFormatter(OutputStream out) {
this.out = out;
setContext(3);
setAbbreviationLength(7);
}

/** @return the stream we are outputting data to. */

Loading…
취소
저장