Can we remove the @Nullable annotation on the return value of Grid.cache(String name) in Grid.java?
@Nullable public <K, V> GridCache<K, V> cache(@Nullable String name);
If a cache cannot be found by the given name an exception should be thrown. If this type of test is often needed then lets add a Grid.cacheExists(String name) call. Returning @Nullable generates warnings in IntelliJ that can only be satisfied by either disabling the inspection or asserting that the cache != null. Both are ugly.
Can we remove the @Nullable annotation on the return value of Grid.cache(String name) in Grid.java?
If a cache cannot be found by the given name an exception should be thrown. If this type of test is often needed then lets add a Grid.cacheExists(String name) call. Returning @Nullable generates warnings in IntelliJ that can only be satisfied by either disabling the inspection or asserting that the cache != null. Both are ugly.