Java Code Examples for org.eclipse.lsp4j.util.Preconditions

The following examples show how to use org.eclipse.lsp4j.util.Preconditions. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public void setItems(@NonNull final List<ScalaMainClassesItem> items) {
  this.items = Preconditions.checkNotNull(items, "items");
}
 
Example 2
Source Project: build-server-protocol   Source File: ShowMessageParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setMessage(@NonNull final String message) {
  this.message = Preconditions.checkNotNull(message, "message");
}
 
Example 3
Source Project: build-server-protocol   Source File: JvmEnvironmentItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setWorkingDirectory(@NonNull final String workingDirectory) {
  this.workingDirectory = Preconditions.checkNotNull(workingDirectory, "workingDirectory");
}
 
Example 4
Source Project: build-server-protocol   Source File: TestParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example 5
public void setItems(@NonNull final List<DependencySourcesItem> items) {
  this.items = Preconditions.checkNotNull(items, "items");
}
 
Example 6
Source Project: build-server-protocol   Source File: JvmEnvironmentItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setClasspath(@NonNull final List<String> classpath) {
  this.classpath = Preconditions.checkNotNull(classpath, "classpath");
}
 
Example 7
Source Project: build-server-protocol   Source File: ShowMessageParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setType(@NonNull final MessageType type) {
  this.type = Preconditions.checkNotNull(type, "type");
}
 
Example 8
Source Project: build-server-protocol   Source File: TestResult.java    License: Apache License 2.0 4 votes vote down vote up
public void setStatusCode(@NonNull final StatusCode statusCode) {
  this.statusCode = Preconditions.checkNotNull(statusCode, "statusCode");
}
 
Example 9
Source Project: build-server-protocol   Source File: ResourcesResult.java    License: Apache License 2.0 4 votes vote down vote up
public void setItems(@NonNull final List<ResourcesItem> items) {
  this.items = Preconditions.checkNotNull(items, "items");
}
 
Example 10
Source Project: build-server-protocol   Source File: ScalacOptionsItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example 11
public void setVersion(@NonNull final String version) {
  this.version = Preconditions.checkNotNull(version, "version");
}
 
Example 12
Source Project: build-server-protocol   Source File: ScalacOptionsItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setClasspath(@NonNull final List<String> classpath) {
  this.classpath = Preconditions.checkNotNull(classpath, "classpath");
}
 
Example 13
public void setCapabilities(@NonNull final BuildServerCapabilities capabilities) {
  this.capabilities = Preconditions.checkNotNull(capabilities, "capabilities");
}
 
Example 14
public void setLocation(@NonNull final Location location) {
  this.location = Preconditions.checkNotNull(location, "location");
}
 
Example 15
public void setMessage(@NonNull final String message) {
  this.message = Preconditions.checkNotNull(message, "message");
}
 
Example 16
Source Project: build-server-protocol   Source File: TaskFinishParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setStatus(@NonNull final StatusCode status) {
  this.status = Preconditions.checkNotNull(status, "status");
}
 
Example 17
public void setItems(@NonNull final List<ScalaTestClassesItem> items) {
  this.items = Preconditions.checkNotNull(items, "items");
}
 
Example 18
Source Project: build-server-protocol   Source File: SbtBuildTarget.java    License: Apache License 2.0 4 votes vote down vote up
public void setClasspath(@NonNull final List<String> classpath) {
  this.classpath = Preconditions.checkNotNull(classpath, "classpath");
}
 
Example 19
public void setUri(@NonNull final String uri) {
  this.uri = Preconditions.checkNotNull(uri, "uri");
}
 
Example 20
Source Project: build-server-protocol   Source File: SbtBuildTarget.java    License: Apache License 2.0 4 votes vote down vote up
public void setChildren(@NonNull final List<BuildTargetIdentifier> children) {
  this.children = Preconditions.checkNotNull(children, "children");
}
 
Example 21
public void setTextDocument(@NonNull final TextDocumentIdentifier textDocument) {
  this.textDocument = Preconditions.checkNotNull(textDocument, "textDocument");
}
 
Example 22
Source Project: build-server-protocol   Source File: TestTask.java    License: Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example 23
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example 24
Source Project: build-server-protocol   Source File: ResourcesItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example 25
Source Project: build-server-protocol   Source File: ResourcesItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setResources(@NonNull final List<String> resources) {
  this.resources = Preconditions.checkNotNull(resources, "resources");
}
 
Example 26
Source Project: build-server-protocol   Source File: CompileReport.java    License: Apache License 2.0 4 votes vote down vote up
public void setWarnings(@NonNull final Integer warnings) {
  this.warnings = Preconditions.checkNotNull(warnings, "warnings");
}
 
Example 27
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example 28
public void setClasses(@NonNull final List<ScalaMainClass> classes) {
  this.classes = Preconditions.checkNotNull(classes, "classes");
}
 
Example 29
Source Project: build-server-protocol   Source File: LogMessageParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setType(@NonNull final MessageType type) {
  this.type = Preconditions.checkNotNull(type, "type");
}
 
Example 30
public void setName(@NonNull final String name) {
  this.name = Preconditions.checkNotNull(name, "name");
}