From 04043ee4a5ef2585dae7ec264f1811c3d7751270 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 16 Sep 2013 09:43:57 +0200 Subject: [PATCH] Reverted removal of "unused" method --- jOOQ/src/main/java/org/jooq/impl/Utils.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/Utils.java b/jOOQ/src/main/java/org/jooq/impl/Utils.java index eeda68340b..e22e570bdd 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Utils.java +++ b/jOOQ/src/main/java/org/jooq/impl/Utils.java @@ -329,6 +329,17 @@ final class Utils { } } + /** + * Extract the configuration from an attachable. + */ + static final Configuration getConfiguration(Attachable attachable) { + if (attachable instanceof AttachableInternal) { + return ((AttachableInternal) attachable).configuration(); + } + + return null; + } + /** * Get an attachable's configuration or a new {@link DefaultConfiguration} * if null. @@ -2593,4 +2604,4 @@ final class Utils { } } } -} \ No newline at end of file +}