Skip to content

Commit

Permalink
port SHA-1: cef513e790566cfc01ded823e78d0080920ed038
Browse files Browse the repository at this point in the history
* Correctly configure findbugs, add excludes, fix a few simple warnings


git-svn-id: https://zxingnet.svn.codeplex.com/svn/trunk@88390 81fbe566-5dc4-48c1-bdea-7421811ca204
  • Loading branch information
SND\micjahn_cp authored and SND\micjahn_cp committed Mar 10, 2014
1 parent bc17023 commit a3786a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/lib/oned/Code39Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public override bool[] encode(String contents)
int pos = appendPattern(result, 0, widths, true);
int[] narrowWhite = {1};
pos += appendPattern(result, pos, narrowWhite, false);
//append next character to bytematrix
//append next character to byte matrix
for (int i = 0; i < length; i++)
{
int indexInString = Code39Reader.ALPHABET_STRING.IndexOf(contents[i]);
Expand All @@ -103,7 +103,7 @@ public override bool[] encode(String contents)
pos += appendPattern(result, pos, narrowWhite, false);
}
toIntArray(Code39Reader.CHARACTER_ENCODINGS[39], widths);
pos += appendPattern(result, pos, widths, true);
appendPattern(result, pos, widths, true);
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion Source/lib/oned/EAN13Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ override public bool[] encode(String contents)
int digit = Int32.Parse(contents.Substring(i, 1));
pos += appendPattern(result, pos, UPCEANReader.L_PATTERNS[digit], true);
}
pos += appendPattern(result, pos, UPCEANReader.START_END_PATTERN, true);
appendPattern(result, pos, UPCEANReader.START_END_PATTERN, true);

return result;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/lib/oned/EAN8Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ override public bool[] encode(String contents)
int digit = Int32.Parse(contents.Substring(i, 1));
pos += appendPattern(result, pos, UPCEANReader.L_PATTERNS[digit], true);
}
pos += appendPattern(result, pos, UPCEANReader.START_END_PATTERN, true);
appendPattern(result, pos, UPCEANReader.START_END_PATTERN, true);

return result;
}
Expand Down

0 comments on commit a3786a1

Please sign in to comment.