Format all files with google-java-format
Change-Id: I27e8e1d16ad5f127c8634b22a8ec949bb34a3008
This commit is contained in:
@@ -542,15 +542,23 @@ public class EditScreen extends Screen {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Configuration cfg = Configuration.create().set("autoCloseBrackets", prefs.autoCloseBrackets())
|
Configuration cfg =
|
||||||
.set("cursorBlinkRate", prefs.cursorBlinkRate()).set("cursorHeight", 0.85)
|
Configuration.create()
|
||||||
|
.set("autoCloseBrackets", prefs.autoCloseBrackets())
|
||||||
|
.set("cursorBlinkRate", prefs.cursorBlinkRate())
|
||||||
|
.set("cursorHeight", 0.85)
|
||||||
.set("indentUnit", prefs.indentUnit())
|
.set("indentUnit", prefs.indentUnit())
|
||||||
.set("keyMap", prefs.keyMapType().name().toLowerCase())
|
.set("keyMap", prefs.keyMapType().name().toLowerCase())
|
||||||
.set("lineNumbers", prefs.hideLineNumbers()).set("lineWrapping", false)
|
.set("lineNumbers", prefs.hideLineNumbers())
|
||||||
.set("matchBrackets", prefs.matchBrackets()).set("mode", mode != null ? mode.mime() : null)
|
.set("lineWrapping", false)
|
||||||
.set("origLeft", editContent).set("scrollbarStyle", "overlay")
|
.set("matchBrackets", prefs.matchBrackets())
|
||||||
.set("showTrailingSpace", prefs.showWhitespaceErrors()).set("styleSelectedText", true)
|
.set("mode", mode != null ? mode.mime() : null)
|
||||||
.set("tabSize", prefs.tabSize()).set("theme", prefs.theme().name().toLowerCase())
|
.set("origLeft", editContent)
|
||||||
|
.set("scrollbarStyle", "overlay")
|
||||||
|
.set("showTrailingSpace", prefs.showWhitespaceErrors())
|
||||||
|
.set("styleSelectedText", true)
|
||||||
|
.set("tabSize", prefs.tabSize())
|
||||||
|
.set("theme", prefs.theme().name().toLowerCase())
|
||||||
.set("value", "");
|
.set("value", "");
|
||||||
|
|
||||||
if (editContent.contains("\r\n")) {
|
if (editContent.contains("\r\n")) {
|
||||||
|
@@ -25,7 +25,6 @@ import com.google.inject.Singleton;
|
|||||||
import java.util.concurrent.ArrayBlockingQueue;
|
import java.util.concurrent.ArrayBlockingQueue;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
||||||
import java.util.concurrent.ThreadPoolExecutor;
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import org.eclipse.jgit.lib.Config;
|
import org.eclipse.jgit.lib.Config;
|
||||||
|
@@ -282,8 +282,7 @@ public class RefControl {
|
|||||||
String msg =
|
String msg =
|
||||||
String.format(
|
String.format(
|
||||||
"RevWalk(%s) for pushing tag %s:",
|
"RevWalk(%s) for pushing tag %s:",
|
||||||
projectControl.getProject().getNameKey(),
|
projectControl.getProject().getNameKey(), tag.name());
|
||||||
tag.name());
|
|
||||||
log.error(msg, e);
|
log.error(msg, e);
|
||||||
|
|
||||||
return "I/O exception for revwalk";
|
return "I/O exception for revwalk";
|
||||||
@@ -333,8 +332,8 @@ public class RefControl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the user is allowed to create a new commit object if this introduces a new commit
|
* Check if the user is allowed to create a new commit object if this introduces a new commit to
|
||||||
* to the project. If not allowed, returns a string describing why it's not allowed.
|
* the project. If not allowed, returns a string describing why it's not allowed.
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
private String canCreateCommit(Repository repo, RevCommit commit) {
|
private String canCreateCommit(Repository repo, RevCommit commit) {
|
||||||
|
Reference in New Issue
Block a user