Skip to content

Commit

Permalink
Merge pull request #369 from ThrawnCA/github-367-fix-build
Browse files Browse the repository at this point in the history
fix build
  • Loading branch information
mebigfatguy committed Sep 7, 2019
2 parents 62cb975 + d2706b0 commit 72bd492
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -143,10 +143,10 @@ public void visitClassContext(ClassContext classContext) {
&& !fieldSig.startsWith("Ljava/util/")) {
heStatus = HEStatus.NOT_NEEDED;
} else {
heStatus = (fieldSig.equals("Ljava/lang/Double;") || fieldSig.equals("Ljava/lang/Float;")) ? HEStatus.NOT_NEEDED : HEStatus.NEEDED;
heStatus = ("Ljava/lang/Double;".equals(fieldSig) || "Ljava/lang/Float;".equals(fieldSig)) ? HEStatus.NOT_NEEDED : HEStatus.NEEDED;
}
} else if (!fieldSig.startsWith(Values.SIG_ARRAY_PREFIX)) {
heStatus = fieldSig.equals("D") || fieldSig.equals("F") ? HEStatus.NOT_NEEDED : HEStatus.NEEDED;
heStatus = SignatureUtils.classToSignature("double").equals(fieldSig) || SignatureUtils.classToSignature("float").equals(fieldSig) ? HEStatus.NOT_NEEDED : HEStatus.NEEDED;
}
}
} else {
Expand Down Expand Up @@ -177,12 +177,12 @@ public void visitClassContext(ClassContext classContext) {

@Override
public void visitField(Field f) {

if ("var".equals(f.getName())) {
bugReporter.reportBug(new BugInstance(this, BugType.IMC_IMMATURE_CLASS_VAR_NAME.name(), NORMAL_PRIORITY)
.addClass(this).addField(this));
}

if (!f.isSynthetic() && (f.getName().indexOf(Values.SYNTHETIC_MEMBER_CHAR) < 0)) {
switch (fieldStatus) {
case NONE:
Expand Down
Expand Up @@ -248,7 +248,7 @@ public void sawOpcode(final int seen) {
} else if (getPC() == ternaryTarget && stack.getStackDepth() > 0) {
ternary2Value = stack.getStackItem(0);
}

stack.precomputation(this);

if (OpcodeUtils.isInvoke(seen)) {
Expand Down Expand Up @@ -329,7 +329,7 @@ public void sawOpcode(final int seen) {
} else {
parameterDefiners.clear();
}
} else if (((seen == GOTO) || (seen == GOTO_W)) && getBranchOffset() > 0) {
} else if (((seen == Const.GOTO) || (seen == Const.GOTO_W)) && getBranchOffset() > 0) {
if (stack.getStackDepth() > 0) {
ternary1Value = stack.getStackItem(0);
ternaryTarget = getBranchTarget();
Expand All @@ -352,7 +352,7 @@ private void removeParmDefiner(OpcodeStack.Item itm) {
if (itm == null) {
return;
}

int reg = itm.getRegisterNumber();
int parm = reg;
if (!methodIsStatic) {
Expand All @@ -363,7 +363,7 @@ private void removeParmDefiner(OpcodeStack.Item itm) {
parameterDefiners.remove(Integer.valueOf(reg));
}
}

/**
* determines whether the method is a baked in special method of the jdk
*
Expand Down

0 comments on commit 72bd492

Please sign in to comment.