001: package test;
002:
003: public class ExitPoints {
004:
005: public ExitPoints() {
006: }
007:
008: public void test() {
009: if (true)
010: return;
011:
012: if (true)
013: throw new NullPointerException();
014:
015: return;
016: }
017:
018: public int test(int a) {
019: if (true)
020: return 0;
021:
022: if (true)
023: throw new NullPointerException();
024:
025: return 0;
026: }
027:
028: public Object test(Object a) {
029: if (true)
030: return null;
031:
032: if (true)
033: throw new NullPointerException();
034:
035: return null;
036: }
037:
038: public void test(String s) throws NullPointerException,
039: javax.swing.text.BadLocationException {
040: if (true)
041: return;
042:
043: throwNPE();
044: throwBLE();
045:
046: try {
047: throwNPE();
048: throwBLE();
049: } catch (NullPointerException e) {
050: }
051:
052: try {
053: throwNPE();
054: throwBLE();
055: } catch (javax.swing.text.BadLocationException e) {
056: }
057:
058: try {
059: throwNPE();
060: throwBLE();
061: } catch (Exception e) {
062: }
063:
064: try {
065: try {
066: throwNPE();
067: } catch (NullPointerException e) {
068: }
069: throwBLE();
070: } catch (NullPointerException e) {
071: }
072:
073: try {
074: try {
075: throwNPE();
076: throwBLE();
077: } catch (NullPointerException e) {
078: }
079: } catch (javax.swing.text.BadLocationException e) {
080: }
081:
082: try {
083: try {
084: throwNPE();
085: } catch (NullPointerException e) {
086: }
087: throwBLE();
088: } catch (javax.swing.text.BadLocationException e) {
089: }
090:
091: try {
092: throwBLE();
093: try {
094: throwNPE();
095: } catch (NullPointerException e) {
096: }
097: } catch (NullPointerException e) {
098: }
099: }
100:
101: public void test(double x) throws NullPointerException,
102: javax.swing.text.BadLocationException {
103: new ConstructorThrows();
104: }
105:
106: private void throwNPE() throws NullPointerException {
107:
108: }
109:
110: private void throwBLE()
111: throws javax.swing.text.BadLocationException {
112:
113: }
114:
115: private java.util.List<String> testListString() {
116: return null;
117: }
118:
119: private String[] testArray() {
120: return new String[] { new String() };
121: }
122: }
|