Changeset 8632 in josm
- Timestamp:
- 2015-08-01T17:54:08+02:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.checkstyle
r8528 r8632 2 2 3 3 <fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> 4 <fileset name="all" enabled="true" check-config-name="JOSM" local="false"> 4 <local-check-config name="JOSM" location="tools/checkstyle/josm_checks.xml" type="project" description=""> 5 <additional-data name="protect-config-file" value="false"/> 6 </local-check-config> 7 <fileset name="all" enabled="true" check-config-name="JOSM" local="true"> 5 8 <file-match-pattern match-pattern="." include-pattern="true"/> 6 9 </fileset> -
trunk/.classpath
r8624 r8632 26 26 <classpathentry kind="lib" path="test/lib/unitils-core/unitils-core-3.3.jar"/> 27 27 <classpathentry kind="lib" path="test/lib/fest/debug-1.0.jar"/> 28 <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> 28 29 <classpathentry kind="output" path="bin"/> 29 30 </classpath> -
trunk/.settings/org.eclipse.jdt.groovy.core.prefs
r7980 r8632 1 1 eclipse.preferences.version=1 2 groovy.compiler.level=2 32 groovy.compiler.level=24 -
trunk/.settings/sf.eclipse.javacc.prefs
r7326 r8632 5 5 JJ_NATURE=true 6 6 JTB_OPTIONS=-ia -jd -tk 7 KEEP_DEL_FILES_IN_HISTORY=false 7 8 MARK_GEN_FILES_AS_DERIVED=true 8 9 RUNTIME_JJJAR=${project_loc}/tools/javacc.jar 9 10 RUNTIME_JTBJAR=${eclipse_home}/plugins/sf.eclipse.javacc_1.5.27/jtb-1.4.7.jar 11 RUNTIME_JVMOPTIONS= 10 12 SUPPRESS_WARNINGS=false 11 13 eclipse.preferences.version=1 -
trunk/build.xml
r8535 r8632 576 576 577 577 <target name="checkstyle"> 578 <taskdef resource="checkstyletask.properties" classpath="tools/checkstyle/checkstyle-6.7-all.jar"/> 578 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties" 579 classpath="tools/checkstyle/checkstyle-6.8.1-all.jar"/> 579 580 <checkstyle config="tools/checkstyle/josm_checks.xml"> 580 581 <fileset dir="${basedir}/src/org/openstreetmap/josm" includes="**/*.java" -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8616 r8632 1288 1288 * @param dashes The dash style to use. This is drawn using dashedColor. <code>null</code> if unused. 1289 1289 * @param dashedColor The color of the dashes. 1290 * @param offset 1290 * @param offset The offset 1291 1291 * @param showOrientation show arrows that indicate the technical orientation of 1292 1292 * the way (defined by order of nodes) -
trunk/src/org/openstreetmap/josm/gui/layer/ImageProcessor.java
r8625 r8632 21 21 * @return processed image 22 22 */ 23 public BufferedImage process(BufferedImage image); 24 23 BufferedImage process(BufferedImage image); 25 24 } -
trunk/test/performance/org/openstreetmap/josm/PerformanceTestUtils.java
r8623 r8632 6 6 * @author Michael Zangl 7 7 */ 8 public class PerformanceTestUtils {8 public final class PerformanceTestUtils { 9 9 /** 10 10 * A timer that measures the time from it's creation to the {@link #done()} call. 11 * @author Michael Zangl11 * @author Michael Zangl 12 12 */ 13 13 public static class PerformanceTestTimer { -
trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java
r8623 r8632 26 26 private static final int TEST_STRING_COUNT = 10000; 27 27 private static final int STRING_INTERN_TESTS = 5000000; 28 private static final double[] TAG_NODE_RATIOS = new double[] { .05, .3, 3, 20, 200};28 private static final double[] TAG_NODE_RATIOS = new double[] {.05, .3, 3, 20, 200}; 29 29 private ArrayList<String> testStrings = new ArrayList<>(); 30 30 private Random random; -
trunk/test/performance/org/openstreetmap/josm/data/osm/OsmDataGenerator.java
r8623 r8632 14 14 * @author Michael Zangl 15 15 */ 16 public class OsmDataGenerator {16 public final class OsmDataGenerator { 17 17 private static final int DEFAULT_KEY_VALUE_RATIO = 3; 18 18 private static final int DEFAULT_NODE_COUNT = 1000; 19 19 private static final String DATA_DIR = "data_nodist" + File.separator + "osmfiles"; 20 20 21 private OsmDataGenerator() { 22 // private constructor for utility classes 23 } 24 21 25 /** 22 26 * A generator that generates test data by filling a data set. 23 27 * @author Michael Zangl 24 28 */ 25 public static abstractclass DataGenerator {29 public abstract static class DataGenerator { 26 30 private String datasetName; 27 31 protected final Random random; … … 57 61 /** 58 62 * Create a random node and add it to the dataset. 59 * @return 63 * @return a random node 60 64 */ 61 65 protected Node createRandomNode(DataSet ds) { … … 94 98 /** 95 99 * A data generator that generates a bunch of random nodes. 96 * @author Michael Zangl100 * @author Michael Zangl 97 101 */ 98 102 public static class NodeDataGenerator extends DataGenerator { … … 100 104 private final int nodeCount; 101 105 102 pr ivateNodeDataGenerator(String datasetName, int nodeCount) {106 protected NodeDataGenerator(String datasetName, int nodeCount) { 103 107 super(datasetName); 104 108 this.nodeCount = nodeCount; … … 124 128 /** 125 129 * A data generator that generates a bunch of random nodes and fills them with keys/values. 126 * @author Michael Zangl127 */ 128 public static class KeyValueDataGenerator extends NodeDataGenerator {130 * @author Michael Zangl 131 */ 132 public static final class KeyValueDataGenerator extends NodeDataGenerator { 129 133 130 134 private static final int VALUE_COUNT = 200; -
trunk/tools/checkstyle/josm_checks.xml
r8540 r8632 113 113 </module> 114 114 <module name="SuppressionFilter"> 115 <property name="file" value=" tools/checkstyle/josm_filters.xml"/>115 <property name="file" value="${basedir}/tools/checkstyle/josm_filters.xml"/> 116 116 </module> 117 117 </module>
Note:
See TracChangeset
for help on using the changeset viewer.