Using @NonNullByDefault limits usability, remove it again.
JIRA: YANGTOOLS-1170
Change-Id: I656c04203f48406142977fb6aaa2cab8bb435f78
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
88a74a9c6ff86c58f80455a8327acb235ab7a60f)
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.Collection;
import java.util.List;
import java.util.Set;
-import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
/**
import org.eclipse.jdt.annotation.Nullable;
/**
* @param <T> Item order type
*/
@Beta
* @param <T> Item order type
*/
@Beta
public interface ItemOrder<T extends ItemOrder<T>> {
/**
* Items are ordered and their order is significant. A {@link List} is an example of a collection which conforms to
public interface ItemOrder<T extends ItemOrder<T>> {
/**
* Items are ordered and their order is significant. A {@link List} is an example of a collection which conforms to
* {@link List#equals(Object)}.
*/
@Override
* {@link List#equals(Object)}.
*/
@Override
- boolean equals(@Nullable Object obj);
+ boolean equals(Object obj);
* This contract is also exposed through {@link #itemOrder()}.
*/
@Override
* This contract is also exposed through {@link #itemOrder()}.
*/
@Override
- boolean equals(@Nullable Object obj);
+ boolean equals(Object obj);
*
* @return Item order class.
*/
*
* @return Item order class.
*/
+ @NonNull Class<T> itemOrder();
/**
* {@link ItemOrder} has impact on {@link #hashCode()}.
/**
* {@link ItemOrder} has impact on {@link #hashCode()}.