mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
remove redundant initializers
This commit is contained in:
parent
6a300dba1e
commit
3215e7f0f8
@ -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) {
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user