Java Code Examples for org.eclipse.lsp4j.util.Preconditions#checkNotNull()
The following examples show how to use
org.eclipse.lsp4j.util.Preconditions#checkNotNull() .
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
Source File: ScalaMainClass.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setClassName(@NonNull final String className) { this.className = Preconditions.checkNotNull(className, "className"); }
Example 2
Source File: BspConnectionDetails.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setBspVersion(@NonNull final String bspVersion) { this.bspVersion = Preconditions.checkNotNull(bspVersion, "bspVersion"); }
Example 3
Source File: ScalaTestClassesItem.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setClasses(@NonNull final List<String> classes) { this.classes = Preconditions.checkNotNull(classes, "classes"); }
Example 4
Source File: ScalaTestClassesResult.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setItems(@NonNull final List<ScalaTestClassesItem> items) { this.items = Preconditions.checkNotNull(items, "items"); }
Example 5
Source File: SourcesResult.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setItems(@NonNull final List<SourcesItem> items) { this.items = Preconditions.checkNotNull(items, "items"); }
Example 6
Source File: DependencySourcesParams.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) { this.targets = Preconditions.checkNotNull(targets, "targets"); }
Example 7
Source File: DiagnosticRelatedInformation.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setMessage(@NonNull final String message) { this.message = Preconditions.checkNotNull(message, "message"); }
Example 8
Source File: SourceItem.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setKind(@NonNull final SourceItemKind kind) { this.kind = Preconditions.checkNotNull(kind, "kind"); }
Example 9
Source File: SourceItem.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setGenerated(@NonNull final Boolean generated) { this.generated = Preconditions.checkNotNull(generated, "generated"); }
Example 10
Source File: CompileTask.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setTarget(@NonNull final BuildTargetIdentifier target) { this.target = Preconditions.checkNotNull(target, "target"); }
Example 11
Source File: ScalaMainClassesResult.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setItems(@NonNull final List<ScalaMainClassesItem> items) { this.items = Preconditions.checkNotNull(items, "items"); }
Example 12
Source File: InverseSourcesParams.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setTextDocument(@NonNull final TextDocumentIdentifier textDocument) { this.textDocument = Preconditions.checkNotNull(textDocument, "textDocument"); }
Example 13
Source File: JvmTestEnvironmentResult.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setItems(@NonNull final List<JvmEnvironmentItem> items) { this.items = Preconditions.checkNotNull(items, "items"); }
Example 14
Source File: Range.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setEnd(@NonNull final Position end) { this.end = Preconditions.checkNotNull(end, "end"); }
Example 15
Source File: CompileParams.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) { this.targets = Preconditions.checkNotNull(targets, "targets"); }
Example 16
Source File: TextDocumentIdentifier.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setUri(@NonNull final String uri) { this.uri = Preconditions.checkNotNull(uri, "uri"); }
Example 17
Source File: CompileReport.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setTarget(@NonNull final BuildTargetIdentifier target) { this.target = Preconditions.checkNotNull(target, "target"); }
Example 18
Source File: SourcesItem.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setTarget(@NonNull final BuildTargetIdentifier target) { this.target = Preconditions.checkNotNull(target, "target"); }
Example 19
Source File: CompileReport.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setErrors(@NonNull final Integer errors) { this.errors = Preconditions.checkNotNull(errors, "errors"); }
Example 20
Source File: BuildTarget.java From build-server-protocol with Apache License 2.0 | 4 votes |
public void setLanguageIds(@NonNull final List<String> languageIds) { this.languageIds = Preconditions.checkNotNull(languageIds, "languageIds"); }