projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add MatrixToImageWriter convenience class, small code tweaks in javase/, make ByteMat...
[zxing.git]
/
javase
/
src
/
com
/
google
/
zxing
/
client
/
j2se
/
CommandLineRunner.java
diff --git
a/javase/src/com/google/zxing/client/j2se/CommandLineRunner.java
b/javase/src/com/google/zxing/client/j2se/CommandLineRunner.java
index
90d525c
..
5138e3a
100644
(file)
--- a/
javase/src/com/google/zxing/client/j2se/CommandLineRunner.java
+++ b/
javase/src/com/google/zxing/client/j2se/CommandLineRunner.java
@@
-224,7
+224,6
@@
public final class CommandLineRunner {
image.getRGB(0, y, width, 1, argb, 0, width);
System.arraycopy(argb, 0, pixels, y * stride, width);
}
image.getRGB(0, y, width, 1, argb, 0, width);
System.arraycopy(argb, 0, pixels, y * stride, width);
}
- argb = null;
// Row sampling
BitArray row = new BitArray(width);
// Row sampling
BitArray row = new BitArray(width);
@@
-272,10
+271,10
@@
public final class CommandLineRunner {
// Use the current working directory for URLs
String resultName = inputName;
// Use the current working directory for URLs
String resultName = inputName;
- if (
uri.getScheme().equals("http"
)) {
+ if (
"http".equals(uri.getScheme()
)) {
int pos = resultName.lastIndexOf('/');
if (pos > 0) {
int pos = resultName.lastIndexOf('/');
if (pos > 0) {
- resultName =
"."
+ resultName.substring(pos);
+ resultName =
'.'
+ resultName.substring(pos);
}
}
int pos = resultName.lastIndexOf('.');
}
}
int pos = resultName.lastIndexOf('.');