You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The com.vladsch.flexmark.util.data.DataHolder.get(DataKey<T>) method has been marked as deprecated (link to source).
The Javadoc comment says "Use key.get(dataHolder) instead", but I fail to understand what that means. I don't see any overloaded "get(dataHolder)" method here, maybe I am overlooking something?
I am looking for a typesafe, not-deprecated API to get the value for a given key from a DataHolder. The getOrCompute() method is no alternative unfortunately, since it returns java.lang.Object and thus is not typesafe but requires ugly casting.
Have searched through all issues and discussions here on GitHub, but without luck, so any help is very much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The
com.vladsch.flexmark.util.data.DataHolder.get(DataKey<T>)
method has been marked as deprecated (link to source).The Javadoc comment says "Use key.get(dataHolder) instead", but I fail to understand what that means. I don't see any overloaded "get(dataHolder)" method here, maybe I am overlooking something?
I am looking for a typesafe, not-deprecated API to get the value for a given key from a DataHolder. The getOrCompute() method is no alternative unfortunately, since it returns
java.lang.Object
and thus is not typesafe but requires ugly casting.Have searched through all issues and discussions here on GitHub, but without luck, so any help is very much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions