Skip to content

Commit

Permalink
Code style changes suggested by Andrey Turbanov
Browse files Browse the repository at this point in the history
  • Loading branch information
ferakocz committed Aug 27, 2024
1 parent 394e6f1 commit 1d9e03e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/java.base/share/classes/sun/security/provider/SHA3.java
Original file line number Diff line number Diff line change
Expand Up @@ -438,25 +438,25 @@ public SHA512() {
}
}

public static abstract class SHA3XOF extends SHA3 {
public abstract static class SHA3XOF extends SHA3 {
public SHA3XOF(String name, int digestLength, byte offset, int c) {
super(name, digestLength, offset, c);
}
public void update(byte in) {
if (squeezeOffset != -1) {
if (squeezeOffset != -1) {
throw new ProviderException("update() after squeeze() is not allowed.");
}
engineUpdate(in);
}
public void update(byte[] in, int off, int len) {
if (squeezeOffset != -1) {
if (squeezeOffset != -1) {
throw new ProviderException("update() after squeeze() is not allowed.");
}
engineUpdate(in, off, len);
}

public void update(byte[] in) {
if (squeezeOffset != -1) {
if (squeezeOffset != -1) {
throw new ProviderException("update() after squeeze() is not allowed.");
}
engineUpdate(in, 0, in.length);
Expand Down

0 comments on commit 1d9e03e

Please sign in to comment.