Skip to content

Commit

Permalink
Don't initialize an instance variable to its default value
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 27, 2023
1 parent d1a1dbb commit f366c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ abstract static class CologneBuffer {

protected final char[] data;

protected int length = 0;
protected int length;

public CologneBuffer(final char[] data) {
this.data = data;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/codec/net/QCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class QCodec extends RFC1522Codec implements StringEncoder, StringDecoder
*/
private final Charset charset;

private boolean encodeBlanks = false;
private boolean encodeBlanks;

/**
* Default constructor.
Expand Down

0 comments on commit f366c00

Please sign in to comment.