-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Apply page pattern for consuming collections of external gr…
…oups
- Loading branch information
1 parent
20dd034
commit 8fef802
Showing
4 changed files
with
46 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.kohsuke.github; | ||
|
||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
|
||
/** | ||
* A list of external groups. | ||
* | ||
* @author Miguel Esteban Gutiérrez | ||
*/ | ||
public class GHExternalGroupPage { | ||
|
||
private static final GHExternalGroup[] GH_EXTERNAL_GROUPS = new GHExternalGroup[0]; | ||
|
||
private GHExternalGroup[] groups; | ||
|
||
GHExternalGroupPage() { | ||
this(GH_EXTERNAL_GROUPS); | ||
} | ||
|
||
GHExternalGroupPage(GHExternalGroup[] groups) { | ||
this.groups = groups; | ||
} | ||
|
||
/** | ||
* Gets the groups. | ||
* | ||
* @return the groups | ||
*/ | ||
@SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected behavior") | ||
public GHExternalGroup[] getGroups() { | ||
return groups; | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters