Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errorprone :: MemberName - FastStringBuffer #855

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/main/java/emissary/util/io/FastStringBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ public FastStringBuffer appendEscaped(@Nullable final String s, final String cha
}

/** Appends constant string literals only!!!!! */
public FastStringBuffer appendCLS(final String s) throws IOException {
return appendCLS(s, StandardCharsets.ISO_8859_1.name());
public FastStringBuffer appendCls(final String s) throws IOException {
return appendCls(s, StandardCharsets.ISO_8859_1.name());
}

/** Appends constant string literals only!!!!! */
public FastStringBuffer appendCLS(@Nullable final String s, final String charset) throws IOException {
public FastStringBuffer appendCls(@Nullable final String s, final String charset) throws IOException {
if (s == null) {
return this;
}
Expand All @@ -118,11 +118,11 @@ public FastStringBuffer appendCLS(@Nullable final String s, final String charset
return append(tmp);
}

public FastStringBuffer appendCR() throws IOException {
public FastStringBuffer appendCr() throws IOException {
return append(CRBYTES);
}

public FastStringBuffer appendCRLF() throws IOException {
public FastStringBuffer appendCrLf() throws IOException {
return append(CRLFBYTES);
}

Expand Down Expand Up @@ -228,21 +228,21 @@ public String toString() {
/**
* Write UTF8 data to the output page buffer without specifying a start or end position, defaults to 0,-1
*/
public FastStringBuffer appendUTF8(final byte[] data, final String charset) throws IOException {
return appendUTF8(data, charset, 0, -1);
public FastStringBuffer appendUtf8(final byte[] data, final String charset) throws IOException {
return appendUtf8(data, charset, 0, -1);
}

/**
* Write UTF8 data to the output page buffer without specifying a start position, defaults to 0
*/
public FastStringBuffer appendUTF8(final byte[] data, final String charset, final int end) throws IOException {
return appendUTF8(data, charset, 0, end);
public FastStringBuffer appendUtf8(final byte[] data, final String charset, final int end) throws IOException {
return appendUtf8(data, charset, 0, end);
}

/**
* Write UTF8 data to the output page buffer Pass in 0 and -1 for start and end to do the whole thing
*/
public FastStringBuffer appendUTF8(final byte[] data, @Nullable final String charset, final int start, final int end) throws IOException {
public FastStringBuffer appendUtf8(final byte[] data, @Nullable final String charset, final int start, final int end) throws IOException {
final int actualEnd;
if (end < 0) {
actualEnd = data.length;
Expand Down Expand Up @@ -276,7 +276,7 @@ public FastStringBuffer appendUTF8(final byte[] data, @Nullable final String cha
return append(data, actualStart, actualEnd - actualStart);
}

public FastStringBuffer appendEscapedUTF8(final byte[] data, @Nullable final String charset, final int start, final int end) throws IOException {
public FastStringBuffer appendEscapedUtf8(final byte[] data, @Nullable final String charset, final int start, final int end) throws IOException {
final int actualEnd;
if (end < 0) {
actualEnd = data.length;
Expand Down