aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2015-09-03 13:59:44 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-03 14:42:33 +0000
commit54733f93471af0cbe63e9f32a522971dbd193a3e (patch)
treed7ae030fd727d129f80dd137cf6df3f5ba4fba41 /src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
parent31d6bba4ec2041926063d26c7b53befcb647e8d5 (diff)
Code cleanup
-- MOS_MIGRATED_REVID=102239051
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java b/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
index 011ccbc249..829f69ed60 100644
--- a/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
+++ b/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
@@ -108,7 +108,7 @@ public class LinuxSandboxedStrategy implements SpawnActionContext {
FileOutErr outErr = actionExecutionContext.getFileOutErr();
// The execId is a unique ID just for this invocation of "exec".
- String execId = uuid + "-" + Integer.toString(execCounter.getAndIncrement());
+ String execId = uuid + "-" + execCounter.getAndIncrement();
// Each invocation of "exec" gets its own sandbox.
Path sandboxPath =
@@ -216,7 +216,7 @@ public class LinuxSandboxedStrategy implements SpawnActionContext {
Path target = mount.getValue();
// The source must exist.
- Preconditions.checkArgument(source.exists(), source.toString() + " does not exist");
+ Preconditions.checkArgument(source.exists(), "%s does not exist", source.toString());
// We cannot mount two different things onto the same target.
if (!mounts.containsEntry(source, target) && mounts.containsValue(target)) {