Преглед на файлове

DirCacheEditor: Fix formatting to avoid , at start of line

Change-Id: I1b1d614470c67fe4736fdc9c26ae26fb38dd58b5
tags/v4.2.0.201601211800-r
Shawn Pearce преди 8 години
родител
ревизия
110d3ca595
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5
    3
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEditor.java

+ 5
- 3
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEditor.java Целия файл

@@ -149,9 +149,11 @@ public class DirCacheEditor extends BaseDirCacheEditor {
if (missing) {
final DirCacheEntry ent = new DirCacheEntry(e.path);
e.apply(ent);
if (ent.getRawMode() == 0)
throw new IllegalArgumentException(MessageFormat.format(JGitText.get().fileModeNotSetForPath
, ent.getPathString()));
if (ent.getRawMode() == 0) {
throw new IllegalArgumentException(MessageFormat.format(
JGitText.get().fileModeNotSetForPath,
ent.getPathString()));
}
fastAdd(ent);
} else {
// Apply to all entries of the current path (different stages)

Loading…
Отказ
Запис