| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2007 BEA Systems, Inc. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
*******************************************************************************/ |
| 11 |
package targets.model.pa; |
| 12 |
|
| 13 |
public class A implements IA { |
| 14 |
public String methodIAString(int int1) |
| 15 |
{ |
| 16 |
_fieldAint = int1; |
| 17 |
return String.valueOf(_fieldAint); |
| 18 |
} |
| 19 |
|
| 20 |
public void methodThrows1() throws ExceptionA { |
| 21 |
if (_fieldAint < 0) { |
| 22 |
throw new ExceptionA(); |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
public void methodThrows2() throws ExceptionA, UnsupportedOperationException { |
| 27 |
if (_fieldAint > 0) { |
| 28 |
throw new ExceptionA(); |
| 29 |
} |
| 30 |
else { |
| 31 |
throw new UnsupportedOperationException(); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
private int _fieldAint; |
| 36 |
} |