Skip to content

Commit 80064fa

Browse files
committed
Fix warnings: don't use '_' as variable name.
1 parent 50f49d0 commit 80064fa

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/main/java/com/github/javabdd/BDDFactory.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract class BDDFactory {
3535
public static final String getProperty(String key, String def) {
3636
try {
3737
return System.getProperty(key, def);
38-
} catch (AccessControlException _) {
38+
} catch (AccessControlException e) {
3939
return def;
4040
}
4141
}
@@ -95,10 +95,10 @@ public static BDDFactory init(String bddpackage, int nodenum, int cachesize)
9595
return (BDDFactory) m.invoke(null, new Object[]
9696
{ new Integer(nodenum), new Integer(cachesize) });
9797
}
98-
catch (ClassNotFoundException _) {}
99-
catch (NoSuchMethodException _) {}
100-
catch (IllegalAccessException _) {}
101-
catch (InvocationTargetException _) {}
98+
catch (ClassNotFoundException e) {}
99+
catch (NoSuchMethodException e) {}
100+
catch (IllegalAccessException e) {}
101+
catch (InvocationTargetException e) {}
102102
// falling back to default java implementation.
103103
return JFactory.init(nodenum, cachesize);
104104
}
@@ -495,7 +495,7 @@ public BDD load(String filename) throws IOException {
495495
BDD result = load(r);
496496
return result;
497497
} finally {
498-
if (r != null) try { r.close(); } catch (IOException _) { }
498+
if (r != null) try { r.close(); } catch (IOException e) { }
499499
}
500500
}
501501
// TODO: error code from bdd_load (?)
@@ -657,7 +657,7 @@ public void save(String filename, BDD var) throws IOException {
657657
is = new BufferedWriter(new FileWriter(filename));
658658
save(is, var);
659659
} finally {
660-
if (is != null) try { is.close(); } catch (IOException _) { }
660+
if (is != null) try { is.close(); } catch (IOException e) { }
661661
}
662662
}
663663
// TODO: error code from bdd_save (?)

src/main/java/com/github/javabdd/FindBestOrder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public void readBDDConfig(BDDFactory bdd) {
196196
}
197197
} catch (IOException x) {
198198
} finally {
199-
if (in != null) try { in.close(); } catch (IOException _) { }
199+
if (in != null) try { in.close(); } catch (IOException e) { }
200200
}
201201
}
202202

src/main/java/com/github/javabdd/TryVarOrder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void initBDDFactory(String s) {
5959
}
6060
} catch (IOException x) {
6161
} finally {
62-
if (in != null) try { in.close(); } catch (IOException _) { }
62+
if (in != null) try { in.close(); } catch (IOException e) { }
6363
}
6464
} catch (Exception x) {
6565
System.err.println("Exception occurred while initializing BDD factory: "+x.getLocalizedMessage());

0 commit comments

Comments
 (0)