Skip to content

Commit

Permalink
Added @throws for @deprecated that throws exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
faramir committed Oct 10, 2023
1 parent f7aa6ad commit 831a4fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/pcj/PCJ.java
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public static <R> R localGet(Enum<?> variable, int... indices) {
* @param indices (optional) indices for array variable
* @throws PcjRuntimeException contains wrapped exception (e.g. ArrayOutOfBoundException).
*
* @deprecated use {@link #localPut(T, Enum, int...)} instead
* @deprecated use {@link #localPut(Object, Enum, int...)} instead
*/
@Deprecated
public static <T> void putLocal(T newValue, Enum<?> variable, int... indices) throws PcjRuntimeException {
Expand Down Expand Up @@ -376,7 +376,7 @@ public static <T> void localPut(T newValue, Enum<?> variable, int... indices) th
* @param indices (optional) indices for array variable
* @throws PcjRuntimeException contains wrapped exception (e.g. ArrayOutOfBoundException).
*
* @deprecated use {@link #localAccumulate(ReduceOperation, T, Enum, int...)} instead
* @deprecated use {@link #localAccumulate(ReduceOperation, Object, Enum, int...)} instead
*/
@Deprecated
public static <T> void accumulateLocal(ReduceOperation<T> function, T newValue, Enum<?> variable, int... indices) throws PcjRuntimeException {
Expand Down Expand Up @@ -795,6 +795,7 @@ public static Group splitGroup(Integer split, int ordering) {
* <p>
* Use {@link #splitGroup(Integer, int)} instead.
*
* @throws UnsupportedOperationException always throws exception
* @deprecated use {@link #splitGroup(Integer, int)} instead
*/
@Deprecated
Expand All @@ -810,6 +811,7 @@ public static Group joinGroup(String name) {
* <p>
* Use {@link #splitGroup(Integer, int)} instead.
*
* @throws UnsupportedOperationException always throws exception
* @deprecated use {@link #splitGroup(Integer, int)} instead
*/
@Deprecated
Expand Down

0 comments on commit 831a4fa

Please sign in to comment.