Skip to content

Commit

Permalink
8333360: PrintNullString.java doesn't use float arguments
Browse files Browse the repository at this point in the history
Reviewed-by: aivanov, abhiscxk, achung
  • Loading branch information
Renjithkannath authored and aivanov-jdk committed Jun 11, 2024
1 parent ef101f1 commit aaaa86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/awt/print/PrinterJob/PrintNullString.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void paint(Graphics2D g2d) {
// API 3: null & empty drawString(Iterator, int, int);
try {
g2d.drawString(nullIterator, 20, 120);
g2d.drawString("FAILURE: No NPE for null iterator, float", 20, 120);
g2d.drawString("FAILURE: No NPE for null iterator, int", 20, 120);
} catch (NullPointerException e) {
g2d.drawString("caught expected NPE for null iterator, int", 20, 120);
}
Expand All @@ -169,7 +169,7 @@ private void paint(Graphics2D g2d) {
}

try {
g2d.drawString(emptyIterator, 20, 180);
g2d.drawString(emptyIterator, 20.0f, 180.0f);
g2d.drawString("FAILURE: No IAE for empty iterator, float", 20, 180);
} catch (IllegalArgumentException e) {
g2d.drawString("caught expected IAE for empty iterator, float", 20, 180);
Expand Down

0 comments on commit aaaa86b

Please sign in to comment.