This is an automated email from the ASF dual-hosted git repository.
papegaaij pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push:
new 1ece296 WICKET-6730: remove public from methods in interface, in line
with other interfaces
1ece296 is described below
commit 1ece296d1b7d068d08a2579c06b139d60b534048
Author: Emond Papegaaij <[email protected]>
AuthorDate: Fri Jan 17 16:29:01 2020 +0100
WICKET-6730: remove public from methods in interface, in line with other
interfaces
---
.../java/org/apache/wicket/core/random/ISecureRandomSupplier.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/wicket-core/src/main/java/org/apache/wicket/core/random/ISecureRandomSupplier.java
b/wicket-core/src/main/java/org/apache/wicket/core/random/ISecureRandomSupplier.java
index ed8d131..270a15c 100644
---
a/wicket-core/src/main/java/org/apache/wicket/core/random/ISecureRandomSupplier.java
+++
b/wicket-core/src/main/java/org/apache/wicket/core/random/ISecureRandomSupplier.java
@@ -31,7 +31,7 @@ public interface ISecureRandomSupplier
*
* @return The {@code SecureRandom}.
*/
- public SecureRandom getRandom();
+ SecureRandom getRandom();
/**
* Returns a byte array with random bytes of the given length.
@@ -40,7 +40,7 @@ public interface ISecureRandomSupplier
* The number of bytes to return.
* @return A byte array with random bytes of the given length.
*/
- public default byte[] getRandomBytes(int length)
+ default byte[] getRandomBytes(int length)
{
byte[] ret = new byte[length];
getRandom().nextBytes(ret);
@@ -55,7 +55,7 @@ public interface ISecureRandomSupplier
* The number of random bytes to use as input.
* @return A string with random base64 data.
*/
- public default String getRandomBase64(int length)
+ default String getRandomBase64(int length)
{
return
Base64.getUrlEncoder().encodeToString(getRandomBytes(length));
}