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 9821c35 commit dee9ac8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private static boolean canConvertToInfoZipExtendedTimestamp(

private long diskNumberStart;

private boolean lastModifiedDateSet = false;
private boolean lastModifiedDateSet;

private long time = -1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ protected static int countArgs(final String descriptor) {

private TempParamAnnotation tempMethodRVPA;
private TempParamAnnotation tempMethodRIPA;
private boolean anySyntheticClasses = false;
private boolean anySyntheticFields = false;
private boolean anySyntheticClasses;
private boolean anySyntheticFields;

private boolean anySyntheticMethods = false;
private boolean anySyntheticMethods;
private final Segment segment;

private final Map<CPClass, Set<CPClass>> classReferencesInnerClass = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ protected Attribute read(final ClassReader cr, final int off, final int len, fin
return null;
}
}
private boolean contextClass = false;
private boolean contextClass;

private boolean contextMethod = false;
private boolean contextField = false;
private boolean contextCode = false;
private boolean contextMethod;
private boolean contextField;
private boolean contextCode;
private final String layout;
private byte[] contents;
private int codeOff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public class Reference extends LayoutElement {

private List<ConstantPoolEntry> band;

private boolean nullsAllowed = false;
private boolean nullsAllowed;

public Reference(final String tag) {
this.tag = tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class PackingUtils {

private static final class PackingLogger extends Logger {

private boolean verbose = false;
private boolean verbose;

protected PackingLogger(final String name, final String resourceBundleName) {
super(name, resourceBundleName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
public class MultiReadOnlySeekableByteChannelTest {

private static final class ThrowingSeekableByteChannel implements SeekableByteChannel {
private boolean closed = false;
private boolean closed;
@Override
public void close() throws IOException {
closed = true;
Expand Down

0 comments on commit dee9ac8

Please sign in to comment.