UiAction: Annotate #getDescription as @Nullable

As mentioned in the Javadoc, implementations of getDescription may
return null. Annotate it as @Nullable.

Change-Id: Id5ed1e18a8971550e02adf87e7ce1761d8d149b7
This commit is contained in:
David Pursehouse
2017-08-29 04:25:22 +00:00
parent 9b8bb464b1
commit 34e50ffd34

View File

@@ -14,6 +14,7 @@
package com.google.gerrit.extensions.webui;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.extensions.conditions.BooleanCondition;
import com.google.gerrit.extensions.restapi.RestResource;
import com.google.gerrit.extensions.restapi.RestView;
@@ -28,6 +29,7 @@ public interface UiAction<R extends RestResource> extends RestView<R> {
* properties. If null the action will assumed unavailable and not presented. This is usually
* the same as {@code setVisible(false)}.
*/
@Nullable
Description getDescription(R resource);
/** Describes an action invokable through the web interface. */