remove redundant initializers

This commit is contained in:
Anton Keks 2016-01-12 22:44:39 +02:00
parent 6a300dba1e
commit 3215e7f0f8
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public final class Labels {
instance = new Labels();
instance.locale = locale;
InputStream labelsStream = null;
InputStream labelsStream;
try {
labelsStream = Labels.class.getClassLoader().getResourceAsStream("messages.properties");
if (labelsStream == null) {

View File

@ -21,7 +21,7 @@ public class MDNSResolver implements Closeable {
}
void writeName(DataOutputStream out, String name) throws IOException {
int s = 0, e = 0;
int s = 0, e;
while ((e = name.indexOf('.', s)) != -1) {
out.writeByte(e - s);
out.write(name.substring(s, e).getBytes());