[ https://issues.apache.org/jira/browse/LANG-1339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17086020#comment-17086020 ]
Oliver Heger commented on LANG-1339: ------------------------------------ [~kinow], I am fine with these changes, using a Consumer for state notifications is a good idea. If you want to support multiple state listeners, an option could be to have a thread-safe list with Consumer<State> objects, e.g. a CopyOnWriteArrayList, and have corresponding addListener() and removeListener() methods. But I am not sure whether this is worth the effort. > Some classes depend on the java.desktop profile > ----------------------------------------------- > > Key: LANG-1339 > URL: https://issues.apache.org/jira/browse/LANG-1339 > Project: Commons Lang > Issue Type: Task > Reporter: Benedikt Ritter > Priority: Major > Labels: Java9 > Fix For: 4.0 > > Time Spent: 20m > Remaining Estimate: 0h > > Commons Lang currently depends on java.desktop. This seems like an > unnecessary heavy dependency for a library like Commons Lang. We need to find > a way to fix this, without breaking bc. For more information see > https://lists.apache.org/thread.html/8db8ec4aa1bdeae3d471ca4f46a21dc7da1a4c6933e1810238b72283@%3Cdev.commons.apache.org%3E -- This message was sent by Atlassian Jira (v8.3.4#803005)