Changeset 7040 in josm
- Timestamp:
- 2014-05-02T00:04:06+02:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r7027 r7040 199 199 <!-- COTS --> 200 200 <javac srcdir="src" includes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**" nowarn="on" 201 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="iso-8859-1"> 201 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="iso-8859-1"> 202 202 <!-- get rid of "internal proprietary API" warning --> 203 203 <compilerarg value="-XDignore.symbol.file"/> … … 205 205 <!-- JMapViewer/JOSM --> 206 206 <javac srcdir="src" excludes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java" 207 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8"> 207 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8"> 208 208 <compilerarg value="-Xlint:cast"/> 209 209 <compilerarg value="-Xlint:deprecation"/> … … 268 268 </target> 269 269 <target name="test-compile" depends="test-init,dist"> 270 <javac srcdir="${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8"> 270 <javac srcdir="${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" 271 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8"> 271 272 <compilerarg value="-Xlint:all"/> 272 273 <compilerarg value="-Xlint:-serial"/> 273 274 </javac> 274 <javac srcdir="${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8"> 275 <javac srcdir="${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" 276 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8"> 277 <compilerarg value="-Xlint:all"/> 278 <compilerarg value="-Xlint:-serial"/> 279 </javac> 280 <javac srcdir="${test.dir}/performance" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on" 281 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8"> 275 282 <compilerarg value="-Xlint:all"/> 276 283 <compilerarg value="-Xlint:-serial"/> -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java
r6920 r7040 18 18 private final Rectangle clipBounds; 19 19 20 /** 21 * Constructs a new {@code LineClip}. 22 * @param p1 start point of the clipped line 23 * @param p2 end point of the clipped line 24 * @param clipBounds Clip bounds 25 */ 20 26 public LineClip(Point p1, Point p2, Rectangle clipBounds) { 21 27 this.p1 = p1; … … 29 35 */ 30 36 public boolean execute() { 37 if (clipBounds == null) { 38 return false; 39 } 31 40 return cohenSutherland(p1.x, p1.y, p2.x, p2.y, clipBounds.x , clipBounds.y, clipBounds.x + clipBounds.width, clipBounds.y + clipBounds.height); 32 41 } … … 35 44 * @return start point of the clipped line 36 45 */ 37 public Point getP1() 38 { 46 public Point getP1() { 39 47 return p1; 40 48 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r7023 r7040 1175 1175 GeneralPath onewayArrowsCasing = showOneway ? new GeneralPath() : null; 1176 1176 Rectangle bounds = g.getClipBounds(); 1177 bounds.grow(100, 100); // avoid arrow heads at the border 1177 if (bounds != null) { 1178 // avoid arrow heads at the border 1179 bounds.grow(100, 100); 1180 } 1178 1181 1179 1182 double wayLength = 0; -
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r7030 r7040 141 141 // 142 142 try (InputStream is = MultiFetchServerObjectReaderTest.class.getResourceAsStream("/test-functional-env.properties")) { 143 if (is == null) { 144 throw new IOException(); 145 } 143 146 testProperties.load(is); 144 147 } catch(IOException e){ -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r7030 r7040 148 148 // 149 149 try (InputStream is = MultiFetchServerObjectReaderTest.class.getResourceAsStream("/test-functional-env.properties")) { 150 if (is == null) { 151 throw new IOException(); 152 } 150 153 testProperties.load(is); 151 154 } catch(IOException e){ -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerHistoryReaderTest.java
r2448 r7040 19 19 20 20 @Test 21 public void test 1() throws OsmTransferException {21 public void testNode() throws OsmTransferException { 22 22 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.NODE,266187); 23 23 HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE); … … 27 27 28 28 @Test 29 public void test 2() throws OsmTransferException {30 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.WAY,3 2916);29 public void testWay() throws OsmTransferException { 30 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.WAY,3058844); 31 31 HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE); 32 History h = ds.getHistory(3 2916, OsmPrimitiveType.WAY);32 History h = ds.getHistory(3058844, OsmPrimitiveType.WAY); 33 33 System.out.println("num versions: " + h.getNumVersions()); 34 34 } 35 35 36 36 @Test 37 public void test 3() throws OsmTransferException {37 public void testRelation() throws OsmTransferException { 38 38 OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.RELATION,49); 39 39 HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE); -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java
r7039 r7040 30 30 31 31 /** 32 * Functionaltests for Remote Control32 * Unit tests for Remote Control 33 33 */ 34 34 public class RemoteControlTest {
Note:
See TracChangeset
for help on using the changeset viewer.