Reverted removal of "unused" method
This commit is contained in:
parent
ba0ce384e7
commit
04043ee4a5
@ -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 <code>null</code>.
|
||||
@ -2593,4 +2604,4 @@ final class Utils {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user