Skip to content

Commit

Permalink
add null annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 17, 2024
1 parent 9f47a92 commit f0126f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.io.JSONWriter;
import org.jetbrains.annotations.NotNull;
import org.osgi.annotation.versioning.ProviderType;

import com.day.cq.wcm.api.components.DropTarget;
Expand Down Expand Up @@ -52,7 +53,7 @@ public final class DropTargetImpl implements DropTarget {
* @param name drop target name
* @param propertyName property name
*/
public DropTargetImpl(String name, String propertyName) {
public DropTargetImpl(@NotNull String name, @NotNull String propertyName) {
this.name = name;
this.id = CSS_CLASS_PREFIX + this.name;
this.propertyName = propertyName;
Expand Down Expand Up @@ -99,7 +100,7 @@ public String[] getGroups() {
* @param values the DD groups.
* @return this
*/
public DropTargetImpl setGroups(String[] values) {
public DropTargetImpl setGroups(String @NotNull [] values) {
this.groups = values;
return this;
}
Expand All @@ -117,7 +118,7 @@ public String[] getAccept() {
* @param values the accept patterns
* @return this
*/
public DropTargetImpl setAccept(String[] values) {
public DropTargetImpl setAccept(String @NotNull [] values) {
this.accept = values;
return this;
}
Expand All @@ -135,7 +136,7 @@ public Map<String, String> getParameters() {
* @param value a map of additional parameters.
* @return this
*/
public DropTargetImpl setParameters(Map<String, String> value) {
public DropTargetImpl setParameters(@NotNull Map<String, String> value) {
this.parameters = value;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
/**
* Helper classes for AEM edit context.
*/
@org.osgi.annotation.versioning.Version("1.0.0")
@org.osgi.annotation.versioning.Version("1.0.1")
package io.wcm.handler.commons.editcontext;

0 comments on commit f0126f4

Please sign in to comment.