Ignore:
Timestamp:
2024-04-19T16:21:11+02:00 (8 months ago)
Author:
taylor.smock
Message:

Dependency updates

ivy.xml

  • org.eclipse.parsson:parsson: 1.1.5 -> 1.1.6
  • org.apache.commons:commons-compress: 1.25.0 -> 1.26.1
    • Note: This deprecated some functions
  • ch.poole:OpeningHoursParser: 0.28.1 -> 0.28.2
  • org.jacoco:org.jacoco.ant: 0.8.11 -> 0.8.12
  • com.github.spotbugs:spotbugs-annotations: 4.8.3 -> 4.8.4
  • com.github.tomakehurst:wiremock: 2.35.0 -> 3.0.1
  • io.github.classgraph:classgraph: 4.8.165 -> 4.8.171
  • nl.jqno.equalsverifier:equalsverifier: 3.15.6 -> 3.16.1
  • org.awaitility:awaitility: 4.2.0 -> 4.2.1

tools/ivy.xml

  • com.puppycrawl.tools:checkstyle: 9.3 -> 10.15.0
  • com.github.spotbugs:spotbugs: 4.8.3 -> 4.8.4
  • com.google.errorprone: 2.(10.0|24.1) -> 2.26.1
  • net.sourceforge.pmd:pmd was not updated to 7.0.0 due to a significant number of false positives.

There were some additional changes to cleanup new warnings and remove some
additional Java 8 files. There are more warnings that need to be cleaned up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmTextField.java

    r18538 r19048  
    55import java.awt.ComponentOrientation;
    66import java.awt.Font;
    7 import java.awt.FontMetrics;
    87import java.awt.Graphics;
    98import java.awt.Graphics2D;
     
    1918
    2019import javax.swing.Icon;
     20import javax.swing.JMenuItem;
     21import javax.swing.JPopupMenu;
    2122import javax.swing.JTextField;
    2223import javax.swing.RepaintManager;
    23 import javax.swing.JMenuItem;
    24 import javax.swing.JPopupMenu;
    2524import javax.swing.UIManager;
    2625import javax.swing.text.BadLocationException;
     
    3029import org.openstreetmap.josm.gui.MapFrame;
    3130import org.openstreetmap.josm.tools.Destroyable;
     31import org.openstreetmap.josm.tools.Logging;
    3232import org.openstreetmap.josm.tools.Utils;
    3333
     
    254254     */
    255255    public static Color getHintTextColor() {
    256         Color color = UIManager.getColor("TextField[Disabled].textForeground"); // Nimbus?
     256        var color = UIManager.getColor("TextField[Disabled].textForeground"); // Nimbus?
    257257        if (color == null)
    258258            color = UIManager.getColor("TextField.inactiveForeground");
     
    290290        int x;
    291291        try {
    292             x = modelToView(0).x;
     292            x = (int) Math.round(modelToView2D(0).getX());
    293293        } catch (BadLocationException exc) {
     294            Logging.trace(exc);
    294295            return; // can't happen
    295296        }
     
    304305            g.drawString(getHint(), x, getBaseline(getWidth(), getHeight()));
    305306        } else {
    306             FontMetrics metrics = g.getFontMetrics(g.getFont());
     307            final var metrics = g.getFontMetrics(g.getFont());
    307308            int dx = metrics.stringWidth(getHint());
    308309            g.drawString(getHint(), x - dx, getBaseline(getWidth(), getHeight()));
Note: See TracChangeset for help on using the changeset viewer.