- Timestamp:
- 2020-03-06T23:54:39+01:00 (5 years ago)
- Location:
- trunk
- Files:
-
- 6 deleted
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/.checkstyle
r16006 r16050 11 11 <filter name="FilesFromPackage" enabled="true"> 12 12 <filter-data value="src/com"/> 13 <filter-data value="src/javax"/>14 13 <filter-data value="src/oauth"/> 15 14 <filter-data value="src/org/apache"/> 16 <filter-data value="src/org/glassfish"/>17 <filter-data value="src/org/jdesktop"/>18 15 <filter-data value="src/org/openstreetmap/gui"/> 19 16 <filter-data value="src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen"/> 20 <filter-data value="src/org/tukaani"/>21 17 <filter-data value=".externalToolBuilders"/> 22 18 <filter-data value=".settings"/> -
trunk/README
r16006 r16050 190 190 -> http://svn.openstreetmap.org/applications/viewer/jmapviewer/ 191 191 * Apache commons compress: Support for bzip2 compression when opening files 192 src/org/apache/commons/compress/compressors (svn external)193 192 -> https://github.com/apache/commons-compress 194 193 * Apache commons validator: Improved validator routines … … 199 198 -> https://github.com/blackears/svgSalamander 200 199 * Metadata Extractor: Read EXIF Metadata of photos 201 src/com/drew202 200 -> https://github.com/drewnoakes/metadata-extractor 203 201 * Signpost: OAuth library … … 208 206 -> https://github.com/floscher/multi-split 209 207 -> https://community.oracle.com/docs/DOC-983539 210 * swinghelper: Class CheckThreadViolationRepaintManager to find classpathviolations211 src/org/ jdesktop/swinghelper/debug/CheckThreadViolationRepaintManager.java208 * swinghelper: Class CheckThreadViolationRepaintManager to find EDT violations 209 src/org/openstreetmap/josm/gui/util/CheckThreadViolationRepaintManager.java 212 210 -> https://github.com/floscher/swinghelper 213 211 * xz extractor 214 src/org/tukaani215 212 -> https://tukaani.org/xz/java.html 216 213 * OpeningHoursParser (MIT license) -
trunk/build.xml
r16036 r16050 298 298 <!-- get rid of "internal proprietary API" warning --> 299 299 <compilerarg value="-XDignore.symbol.file"/> 300 <exclude name="org/apache/commons/compress/**"/>301 300 <exclude name="org/apache/commons/jcs/JCS.java"/> 302 301 <exclude name="org/apache/commons/jcs/access/GroupCacheAccess.java"/> … … 319 318 <exclude name="org/apache/commons/jcs/utils/props/**"/> 320 319 <exclude name="org/apache/commons/jcs/utils/servlet/**"/> 321 <exclude name="org/apache/commons/logging/**"/> 320 <classpath> 321 <path refid="runtime.path"/> 322 </classpath> 322 323 </javac> 323 324 </target> … … 1061 1062 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-tools.jar" includes="org/openstreetmap/josm/tools/**/*.class"/> 1062 1063 <exec executable="jdeps" dir="${modules.dir}"> 1063 <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.*|oauth.*|org.apache.*|org.glassfish.*|org. jdesktop.*|org.openstreetmap.gui.*'"/>1064 <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.*|oauth.*|org.apache.*|org.glassfish.*|org.openstreetmap.gui.*'"/> 1064 1065 <arg line="-dotoutput dots *.jar"/> 1065 1066 </exec> … … 1069 1070 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-without-dependencies.png"/> 1070 1071 <!-- Direct dependencies --> 1071 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/metadata-extractor.jar" includes="com/drew/**/*.class"/> 1072 <copy todir="${modules.dir}" flatten="true"> 1073 <fileset refid="runtime.fileset" /> 1074 </copy> 1072 1075 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/svgSalamander.jar" includes="com/kitfox/**/*.class"/> 1073 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/javax-json.jar" includes="javax/**/*.class"/>1074 1076 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/oauth-signpost.jar" includes="oauth/**/*.class"/> 1075 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-compress.jar" includes="org/apache/commons/compress/**/*.class"/>1076 1077 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-jcs.jar" includes="org/apache/commons/jcs/**/*.class"/> 1077 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/glassfish-json.jar" includes="org/glassfish/**/*.class"/>1078 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/jdesktop.jar" includes="org/jdesktop/**/*.class"/>1079 1078 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/jmapviewer.jar" includes="org/openstreetmap/gui/**/*.class"/> 1080 1079 <exec executable="jdeps" dir="${modules.dir}"> … … 1087 1086 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-direct-dependencies.png"/> 1088 1087 <!-- All dependencies --> 1089 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-logging.jar" includes="org/apache/commons/logging/**/*.class"/>1090 1088 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/google-gdata.jar" includes="com/google/**/*.class"/> 1091 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/tukaani-xz.jar" includes="org/tukaani/**/*.class"/>1092 1089 <exec executable="jdeps" dir="${modules.dir}"> 1093 1090 <arg line="-dotoutput dots *.jar"/> … … 1098 1095 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/> 1099 1096 </target> 1100 <target name="resolve" depends="init-ivy" unless="resolve.notRequired" >1097 <target name="resolve" depends="init-ivy" unless="resolve.notRequired" description="Resolve Ivy dependencies"> 1101 1098 <ivy:resolve keep="true"/> 1102 1099 <ivy:report todir="${tools.dir}/ivy-report" graph="false"/> -
trunk/src/org/apache/commons
- Property svn:externals
-
old new 1 1 https://github.com/apache/commons-jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs jcs 2 https://github.com/apache/commons-logging/trunk/src/main/java/org/apache/commons/logging logging3 https://github.com/apache/commons-compress/trunk/src/main/java/org/apache/commons/compress compress
-
- Property svn:externals
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r15469 r16050 63 63 import javax.swing.UnsupportedLookAndFeelException; 64 64 65 import org.jdesktop.swinghelper.debug.CheckThreadViolationRepaintManager;66 65 import org.openstreetmap.josm.actions.DeleteAction; 67 66 import org.openstreetmap.josm.actions.JosmAction; … … 121 120 import org.openstreetmap.josm.gui.preferences.server.ProxyPreference; 122 121 import org.openstreetmap.josm.gui.progress.swing.ProgressMonitorExecutor; 122 import org.openstreetmap.josm.gui.util.CheckThreadViolationRepaintManager; 123 123 import org.openstreetmap.josm.gui.util.GuiHelper; 124 124 import org.openstreetmap.josm.gui.util.RedirectInputMap; -
trunk/src/org/openstreetmap/josm/gui/util/CheckThreadViolationRepaintManager.java
r16049 r16050 15 15 */ 16 16 17 package org. jdesktop.swinghelper.debug;17 package org.openstreetmap.josm.gui.util; 18 18 19 19 import java.lang.ref.WeakReference; … … 22 22 import javax.swing.RepaintManager; 23 23 import javax.swing.SwingUtilities; 24 25 import org.openstreetmap.josm.tools.Logging; 24 26 25 27 /** … … 39 41 */ 40 42 public class CheckThreadViolationRepaintManager extends RepaintManager { 41 // it is recommended to pass the complete check42 private boolean completeCheck = true;43 43 private WeakReference<JComponent> lastComponent; 44 45 public CheckThreadViolationRepaintManager(boolean completeCheck) {46 this.completeCheck = completeCheck;47 }48 49 public CheckThreadViolationRepaintManager() {50 this(true);51 }52 44 53 45 @Override … … 64 56 65 57 private void checkThreadViolations(JComponent c) { 66 if (!SwingUtilities.isEventDispatchThread() && (completeCheck || c.isShowing())) {58 if (!SwingUtilities.isEventDispatchThread()) { 67 59 boolean repaint = false; 68 60 boolean fromSwing = false; … … 71 63 for (StackTraceElement st : stackTrace) { 72 64 if (repaint && st.getClassName().startsWith("javax.swing.") && 73 // for details see 74 // https://swinghelper.dev.java.net/issues/show_bug.cgi?id=1 75 !st.getClassName().startsWith("javax.swing.SwingWorker")) { 65 // for details see https://swinghelper.dev.java.net/issues/show_bug.cgi?id=1 66 !st.getClassName().startsWith("javax.swing.SwingWorker")) { 76 67 fromSwing = true; 77 68 } … … 106 97 } 107 98 108 protected void violationFound(JComponent c, StackTraceElement[] stackTrace) {109 System.out.println();110 System.out.println("EDT violation detected");111 System.out.println(c);99 protected static void violationFound(JComponent c, StackTraceElement[] stackTrace) { 100 Logging.error(""); 101 Logging.error("EDT violation detected"); 102 Logging.error(c.toString()); 112 103 for (StackTraceElement st : stackTrace) { 113 System.out.println("\tat " + st);104 Logging.error("\tat " + st); 114 105 } 115 106 } -
trunk/tools/checkstyle/josm_filters.xml
r16006 r16050 24 24 <suppress checks="." files="[\\/]tools[\\/]pmd[\\/]" /> 25 25 <suppress checks="HeaderCheck" files="josm[\\/]tools[\\/]commons[\\/]" /> 26 <suppress checks="HeaderCheck" files="CheckThreadViolationRepaintManager\.java" /> 26 27 <suppress checks="HeaderCheck" files="Ellipsoid\.java" /> 27 28 <suppress checks="HeaderCheck" files="NTV2GridShift\.java" /> -
trunk/tools/spotbugs/josm-filter.xml
r14417 r16050 64 64 </Match> 65 65 <Match> 66 <Class name="~org.jdesktop.swinghelper.debug.*" />67 </Match>68 <Match>69 66 <Class name="~org.openstreetmap.gui.jmapviewer.*" /> 70 67 </Match>
Note:
See TracChangeset
for help on using the changeset viewer.