Skip to content

Commit 17fa785

Browse files
committed
Issue #9. Updated the test to make it more type-checking.
1 parent 85897ed commit 17fa785

File tree

1 file changed

+11
-6
lines changed
  • tests/simplify-01/src/test/java/org/jvnet/jaxb2_commons/plugin/simplify/tests01

1 file changed

+11
-6
lines changed
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
package org.jvnet.jaxb2_commons.plugin.simplify.tests01;
22

3+
import java.util.Date;
4+
5+
import javax.xml.datatype.Duration;
6+
37
import org.junit.Test;
48

59
public class Gh2Test {
610

711
@Test
8-
public void compiles()
9-
{
12+
public void compiles() {
1013
final Gh2 item = new Gh2();
11-
item.getA();
12-
item.getB();
13-
item.getC();
14-
14+
@SuppressWarnings("unused")
15+
final String a = item.getA();
16+
@SuppressWarnings("unused")
17+
final Date b = item.getB();
18+
@SuppressWarnings("unused")
19+
final Duration c = item.getC();
1520
}
1621
}

0 commit comments

Comments
 (0)