summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen.jacobson@grimoire.ca>2015-02-13 23:51:29 -0500
committerOwen Jacobson <owen.jacobson@grimoire.ca>2015-02-13 23:51:29 -0500
commitd6fe15df6d62dc9ae1c128e1af51bec829ffee4c (patch)
tree272f967791f79a065076af0e4579586461813df7
parentd9336f91aad7b09c7315fe5794c2514e91d11e54 (diff)
Some minor gruntles about `Class.forName`.
-rw-r--r--wiki/java/stop-using-class-dot-forname.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/wiki/java/stop-using-class-dot-forname.md b/wiki/java/stop-using-class-dot-forname.md
index a44f693..b01e972 100644
--- a/wiki/java/stop-using-class-dot-forname.md
+++ b/wiki/java/stop-using-class-dot-forname.md
@@ -44,6 +44,13 @@ developers.
_You don't need to write any code to load a JDBC 4 driver._
+## What's The Harm?
+
+It's harmless in the immediate sense: forcing a driver to load immediately
+before JDBC would load it itself has no additional side effects. However, it's
+a pretty clear indicator that you've copied someone else's code without
+thoroughly understanding what it does, which is a bad habit.
+
## But What About My Database?
You don't need to worry about it. All of the following drivers support JDBC