Changeset 6987 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2014-04-16T02:29:53+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
r6986 r6987 439 439 protected void finalize() throws Throwable { 440 440 dispose(); 441 super.finalize(); 441 442 } 442 443 … … 566 567 UP(9, 1, 9), 567 568 DOWN(1, 9, 1); 568 static final int[] xPoints= {1, 5, 9};569 static final int[] XPOINTS = {1, 5, 9}; 569 570 final int[] yPoints; 570 571 … … 578 579 Graphics g2 = g.create(size.width / 2 - 5, size.height / 2 - 5, 10, 10); 579 580 g2.setColor(Color.GRAY); 580 g2.drawPolygon( xPoints, yPoints, 3);581 g2.drawPolygon(XPOINTS, yPoints, 3); 581 582 if (c.isEnabled()) { 582 583 g2.setColor(Color.BLACK); 583 g2.fillPolygon( xPoints, yPoints, 3);584 g2.fillPolygon(XPOINTS, yPoints, 3); 584 585 } 585 586 g2.dispose(); -
trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java
r6920 r6987 43 43 public String fetchHelpTopicContent(String helpTopicUrl, boolean dotest) throws HelpContentReaderException { 44 44 if(helpTopicUrl == null) 45 throw new MissingHelpContentException( );45 throw new MissingHelpContentException(helpTopicUrl); 46 46 HttpURLConnection con = null; 47 47 BufferedReader in = null; … … 90 90 } 91 91 if(dotest && s.isEmpty()) 92 throw new MissingHelpContentException( );92 throw new MissingHelpContentException(s); 93 93 return s; 94 94 } -
trunk/src/org/openstreetmap/josm/gui/help/HelpContentReaderException.java
r3408 r6987 4 4 public class HelpContentReaderException extends Exception { 5 5 private int responseCode; 6 7 public HelpContentReaderException() {8 super();9 }10 6 11 7 public HelpContentReaderException(String message, Throwable cause) { … … 39 35 this.responseCode = responseCode; 40 36 } 41 42 37 } -
trunk/src/org/openstreetmap/josm/gui/help/MissingHelpContentException.java
r3408 r6987 3 3 4 4 public class MissingHelpContentException extends HelpContentReaderException { 5 6 public MissingHelpContentException() {7 super();8 }9 5 10 6 public MissingHelpContentException(String message, Throwable cause) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSException.java
r6070 r6987 4 4 public class MapCSSException extends RuntimeException { 5 5 6 protected String specialmessage;6 protected final String specialmessage; 7 7 protected Integer line; 8 8 protected Integer column; -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r6643 r6987 148 148 } catch(OAuthCommunicationException e){ 149 149 if (canceled) 150 throw new OsmTransferCanceledException( );150 throw new OsmTransferCanceledException(e); 151 151 throw new OsmOAuthAuthorizationException(e); 152 152 } catch(OAuthException e){ 153 153 if (canceled) 154 throw new OsmTransferCanceledException( );154 throw new OsmTransferCanceledException(e); 155 155 throw new OsmOAuthAuthorizationException(e); 156 156 } finally { … … 182 182 } catch(OAuthCommunicationException e){ 183 183 if (canceled) 184 throw new OsmTransferCanceledException( );184 throw new OsmTransferCanceledException(e); 185 185 throw new OsmOAuthAuthorizationException(e); 186 186 } catch(OAuthException e){ 187 187 if (canceled) 188 throw new OsmTransferCanceledException( );188 throw new OsmTransferCanceledException(e); 189 189 throw new OsmOAuthAuthorizationException(e); 190 190 } finally { … … 569 569 } catch(OsmOAuthAuthorizationException e) { 570 570 if (canceled) 571 throw new OsmTransferCanceledException( );571 throw new OsmTransferCanceledException(e); 572 572 throw e; 573 573 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.