* Remove unnecessary type specifiers (use Java 7 <>)
* Remove unnecessary "extends Object" declarations
* Remove unnecessary semi-colons
* Merge identical catch blocks
* Remove redundant modifiers:
- enum constructors are private by default
- interface properties are public static final by default
- interface methods are public abstract by default
- interfaces are abstract by default
- inner interfaces are static by default
- inner classes in interfaces are public static by default
Change-Id: I88c96965215d2f5dbf60967afe4a4ddbaed0072f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener);
ListenerRegistration<MountProvisionListener> registerProvisionListener(MountProvisionListener listener);
- public interface DOMMountPointBuilder {
+ interface DOMMountPointBuilder {
<T extends DOMService> DOMMountPointBuilder addService(Class<T> type,T impl);
<T extends DOMService> DOMMountPointBuilder addService(Class<T> type,T impl);
* @throws InterruptedException if interrupted while waiting
* @throws NullPointerException if notification is null.
*/
* @throws InterruptedException if interrupted while waiting
* @throws NullPointerException if notification is null.
*/
- @Nonnull ListenableFuture<? extends Object> putNotification(@Nonnull DOMNotification notification) throws InterruptedException;
+ @Nonnull ListenableFuture<?> putNotification(@Nonnull DOMNotification notification) throws InterruptedException;
/**
* Attempt to publish a notification. The result of this method is a {@link ListenableFuture}
/**
* Attempt to publish a notification. The result of this method is a {@link ListenableFuture}
* the implementation from accepting the notification for delivery.
* @throws NullPointerException if notification is null.
*/
* the implementation from accepting the notification for delivery.
* @throws NullPointerException if notification is null.
*/
- @Nonnull ListenableFuture<? extends Object> offerNotification(@Nonnull DOMNotification notification);
+ @Nonnull ListenableFuture<?> offerNotification(@Nonnull DOMNotification notification);
/**
* Attempt to publish a notification. The result of this method is a {@link ListenableFuture}
/**
* Attempt to publish a notification. The result of this method is a {@link ListenableFuture}
* @throws NullPointerException if notification or unit is null.
* @throws IllegalArgumentException if timeout is negative.
*/
* @throws NullPointerException if notification or unit is null.
* @throws IllegalArgumentException if timeout is negative.
*/
- @Nonnull ListenableFuture<? extends Object> offerNotification(@Nonnull DOMNotification notification,
+ @Nonnull ListenableFuture<?> offerNotification(@Nonnull DOMNotification notification,
@Nonnegative long timeout, @Nonnull TimeUnit unit) throws InterruptedException;
}
@Nonnegative long timeout, @Nonnull TimeUnit unit) throws InterruptedException;
}
- public interface ConsumerSession {
+ interface ConsumerSession {
* functionality provided by other {@link Provider}s.
*
*/
* functionality provided by other {@link Provider}s.
*
*/
- public interface ProviderSession extends ConsumerSession {
+ interface ProviderSession extends ConsumerSession {
/**
* Closes a session between provider and SAL.
*
/**
* Closes a session between provider and SAL.
*
* @param session
* Unique session between consumer and SAL.
*/
* @param session
* Unique session between consumer and SAL.
*/
- public void onSessionInitiated(ConsumerSession session);
+ void onSessionInitiated(ConsumerSession session);
/**
* @deprecated - no longer used or needed
/**
* @deprecated - no longer used or needed
- public Collection<ConsumerFunctionality> getConsumerFunctionality();
+ Collection<ConsumerFunctionality> getConsumerFunctionality();
/**
* @deprecated - no longer used or needed
*/
@Deprecated
/**
* @deprecated - no longer used or needed
*/
@Deprecated
- public interface ConsumerFunctionality {
+ interface ConsumerFunctionality {
* @param session
* Unique session between provider and SAL.
*/
* @param session
* Unique session between provider and SAL.
*/
- public void onSessionInitiated(ProviderSession session);
+ void onSessionInitiated(ProviderSession session);
/**
* @deprecated - No longer used or needed
/**
* @deprecated - No longer used or needed
- public Collection<ProviderFunctionality> getProviderFunctionality();
+ Collection<ProviderFunctionality> getProviderFunctionality();
/**
* @deprecated - no longer used or needed
*/
@Deprecated
/**
* @deprecated - no longer used or needed
*/
@Deprecated
- public interface ProviderFunctionality {
+ interface ProviderFunctionality {