Skip to content

Commit

Permalink
default IVewIndexStorage.setViewsRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Nov 9, 2017
1 parent 2912fd8 commit 79d5fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ public WindowId getWindowId()
throw new UnsupportedOperationException("windowId not available");
}

@Override
public void setViewsRepository(final IViewsRepository viewsRepository)
{
// nothing
}

private final void onViewRemoved(final RemovalNotification<Object, Object> notification)
{
final IView view = (IView)notification.getValue();
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/de/metas/ui/web/view/IViewsIndexStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public interface IViewsIndexStorage
WindowId getWindowId();

/** Don't call it directly. Will be called by API. */
void setViewsRepository(IViewsRepository viewsRepository);
default void setViewsRepository(IViewsRepository viewsRepository)
{
}

/** Adds given view to the index. If the view already exists, it will be overridden. */
void put(IView view);
Expand Down

0 comments on commit 79d5fc8

Please sign in to comment.