Skip to content

Commit b165a08

Browse files
author
duke
committed
Backport aaaa86b57172d45d1126c50efc270c6e49aba7a5
1 parent 7b2a675 commit b165a08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/java/awt/print/PrinterJob/PrintNullString.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private void paint(Graphics2D g2d) {
148148
// API 3: null & empty drawString(Iterator, int, int);
149149
try {
150150
g2d.drawString(nullIterator, 20, 120);
151-
g2d.drawString("FAILURE: No NPE for null iterator, float", 20, 120);
151+
g2d.drawString("FAILURE: No NPE for null iterator, int", 20, 120);
152152
} catch (NullPointerException e) {
153153
g2d.drawString("caught expected NPE for null iterator, int", 20, 120);
154154
}
@@ -169,7 +169,7 @@ private void paint(Graphics2D g2d) {
169169
}
170170

171171
try {
172-
g2d.drawString(emptyIterator, 20, 180);
172+
g2d.drawString(emptyIterator, 20.0f, 180.0f);
173173
g2d.drawString("FAILURE: No IAE for empty iterator, float", 20, 180);
174174
} catch (IllegalArgumentException e) {
175175
g2d.drawString("caught expected IAE for empty iterator, float", 20, 180);

0 commit comments

Comments
 (0)