Skip to content

Commit

Permalink
Merge pull request alibaba#88 from intersimone999/dev
Browse files Browse the repository at this point in the history
Renamed identifiers inconsistencies
  • Loading branch information
lilongAAAA authored Apr 24, 2017
2 parents 6f32a81 + d242b2e commit 855a2ec
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ private void collectLibraryJars(LibVariantContext libVariantContext) {
boolean exclude = false;
for (DependencyResult resolvedDependencyResult2 : providedDependencySet) {
if (resolvedDependencyResult2 instanceof ResolvedDependencyResult) {
ModuleVersionIdentifier moduleVersion2 = ((ResolvedDependencyResult) resolvedDependencyResult2)
ModuleVersionIdentifier id = ((ResolvedDependencyResult) resolvedDependencyResult2)
.getSelected()
.getModuleVersion();
String key2 = moduleVersion2.getGroup() + "-" + moduleVersion2.getName();
String key2 = id.getGroup() + "-" + id.getName();
if (key.equals(key2)) {
exclude = true;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public BitSet compatibleRegs(DalvInsn insn) {
bits.set(0, false);
bits.set(1, false);
} else {
boolean dstRegComp = unsignedFitsInNibble(r1);
bits.set(0, dstRegComp);
bits.set(1, dstRegComp);
boolean compat = unsignedFitsInNibble(r1);
bits.set(0, compat);
bits.set(1, compat);
}

bits.set(2, unsignedFitsInNibble(regs.get(2).getReg()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,14 +568,14 @@ private ByteArrayAnnotatedOutput toDex0(boolean annotate,
out.writeZeroes(one.getFileOffset() - out.getCursor());
one.writeTo(out);
} catch (RuntimeException ex) {
ExceptionWithContext ec;
ExceptionWithContext ewc;
if (ex instanceof ExceptionWithContext) {
ec = (ExceptionWithContext) ex;
ewc = (ExceptionWithContext) ex;
} else {
ec = new ExceptionWithContext(ex);
ewc = new ExceptionWithContext(ex);
}
ec.addContext("...while writing section " + i);
throw ec;
ewc.addContext("...while writing section " + i);
throw ewc;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ public final class SsaMethod {
private boolean backMode;

/**
* @param ropMethod rop-form method to convert from
* @param rmeth rop-form method to convert from
* @param paramWidth the total width, in register-units, of the
* method's parameters
* @param isStatic {@code true} if this method has no {@code this}
* pointer argument
*/
public static SsaMethod newFromRopMethod(RopMethod ropMethod,
public static SsaMethod newFromRopMethod(RopMethod rmeth,
int paramWidth, boolean isStatic) {
SsaMethod result = new SsaMethod(ropMethod, paramWidth, isStatic);
SsaMethod result = new SsaMethod(rmeth, paramWidth, isStatic);

result.convertRopToSsaBlocks(ropMethod);
result.convertRopToSsaBlocks(rmeth);

return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,12 @@ private void calculateSmallPatchedSectionOffsets(
patchedDexToSmallPatchedMapListOffsetMap.put(
patchedDex, smallPatchedMapListOffset
);
int smallPatchedMapListSize
int position
= SizeOf.UINT + SizeOf.MAP_ITEM * smallPatchedSectionCount;

int smallPatchedDexSize
= smallPatchedMapListOffset
+ smallPatchedMapListSize;
+ position;
patchedDexToSmallPatchedDexSizeMap.put(patchedDex, smallPatchedDexSize);
}
}
Expand Down

0 comments on commit 855a2ec

Please sign in to comment.