Changeset 10863 in josm
- Timestamp:
- 2016-08-20T21:07:44+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/jdesktop/swinghelper/debug/CheckThreadViolationRepaintManager.java
r10617 r10863 73 73 // for details see 74 74 // https://swinghelper.dev.java.net/issues/show_bug.cgi?id=1 75 !st.getClassName().startsWith("javax.swing.SwingWorker")) {75 !st.getClassName().startsWith("javax.swing.SwingWorker")) { 76 76 fromSwing = true; 77 77 } … … 83 83 fromSwing = false; 84 84 } 85 if ("read".equals(st.getMethodName()) && "javax.swing.JEditorPane".equals(st.getClassName())) { 86 // Swing reads html from a background thread 87 return; 88 } 85 89 } 86 if (imageUpdate) 90 if (imageUpdate) { 87 91 //assuming it is java.awt.image.ImageObserver.imageUpdate(...) 88 92 //image was asynchronously updated, that's ok 89 93 return; 90 if (repaint && !fromSwing) 94 } 95 if (repaint && !fromSwing) { 91 96 //no problems here, since repaint() is thread safe 92 97 return; 98 } 93 99 //ignore the last processed component 94 if (lastComponent != null && c == lastComponent.get()) 100 if (lastComponent != null && c == lastComponent.get()) { 95 101 return; 102 } 96 103 lastComponent = new WeakReference<>(c); 97 104 violationFound(c, stackTrace);
Note:
See TracChangeset
for help on using the changeset viewer.