Skip to content

Commit

Permalink
Merge pull request #867 from scireum/feature/mke/de-deprecations
Browse files Browse the repository at this point in the history
Undo page and facet deprecations
  • Loading branch information
mkeckmkeck authored Jun 28, 2021
2 parents 4afe06c + 7cd5df9 commit 6ff90e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/sirius/web/controller/Facet.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,12 @@ public Facet withValues(List<String> values) {

/**
* Returns the used facet range.
* <p>
* Note: This will be deprecated soon.
*
* @return the facet range
* @deprecated FacetRange has been deprecated.
*/
@Deprecated
@SuppressWarnings("deprecation")
public FacetRange getRange() {
return facetRange;
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/sirius/web/controller/Page.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@ public Page<E> addFacet(Facet facet) {

/**
* Calculates the current page number
* <p>
* Note: This will be deprecated soon as we prefer pagination
* by indices over page number and size.
*
* @return number of the current page
*/
@Deprecated
public int getCurrentPageNumber() {
return (this.start / this.pageSize) + 1;
}
Expand Down

0 comments on commit 6ff90e3

Please sign in to comment.