No effective change - Code cleanup, remove redundant variables

This commit is contained in:
Robin Bygrave committed 2015-07-31 13:29:42 +12:00
1 parent 4a13fc307b
commit 9fd936c521
7 files changed
+9 -19

No files matched your search

@@ -65,7 +65,6 @@ public class FileResourceContent implements ResourceContent {
*/
public InputStream getInputStream() throws IOException {
FileInputStream is = new FileInputStream(file);
return is;
return new FileInputStream(file);
}
}
@@ -43,8 +43,7 @@ public class FileResourceSource extends AbstractResourceSource implements Resour
File f = new File(fullPath);
if (f.exists()){
FileResourceContent content = new FileResourceContent(f, entry);
return content;
return new FileResourceContent(f, entry);
}
return null;
}
@@ -17,8 +17,7 @@ public class Prefix {
public static String getProp(String prop) {
String v = dec(prop);
int p = v.indexOf(":");
String r = v.substring(1, p);
return r;
return v.substring(1, p);
}
public static void main(String[] args) {
@@ -63,9 +62,8 @@ public class Prefix {
encbytes[0] = az((byte) k, oa[0]);
// dp("key:"+key+" encbytes[0]:"+(byte)encbytes[0]);
int ios = key;
for (int i = 1; i < (msgbytes.length + 1); i++) {
encbytes[i] = az(msgbytes[i - 1], (oa[(i + ios) % oa.length]));
for (int i = 1; i < (msgbytes.length + 1); i++) {
encbytes[i] = az(msgbytes[i - 1], (oa[(i + key) % oa.length]));
}
return new String(encbytes);
}