aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-02-14 10:31:00 +0100
committerNiclas Eklund <[email protected]>2011-02-14 10:31:00 +0100
commit27d6af0ed32a25d7ea1dcd83a4163f8e6ec67844 (patch)
tree0ac6f83ff66ec08f72d6a39f6cba386ebb0fa65e /lib/orber
parent59bb06a90248defb4c0be98f10afae88c2251fe7 (diff)
downloadotp-27d6af0ed32a25d7ea1dcd83a4163f8e6ec67844.tar.gz
otp-27d6af0ed32a25d7ea1dcd83a4163f8e6ec67844.tar.bz2
otp-27d6af0ed32a25d7ea1dcd83a4163f8e6ec67844.zip
Corrected spec usage.
Diffstat (limited to 'lib/orber')
-rw-r--r--lib/orber/src/corba.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/orber/src/corba.erl b/lib/orber/src/corba.erl
index ea1363742c..f4a17c10e9 100644
--- a/lib/orber/src/corba.erl
+++ b/lib/orber/src/corba.erl
@@ -2,7 +2,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -620,6 +620,8 @@ get_pid(Objkey) ->
%% Returns : Throws the exception.
%% Description:
%%----------------------------------------------------------------------
+%% To avoid dialyzer warnings due to the use of exit/throw.
+-spec(raise/1 :: (_) -> no_return()).
raise(E) ->
throw({'EXCEPTION', E}).
@@ -629,6 +631,8 @@ raise(E) ->
%% Returns : Throws the exception.
%% Description:
%%----------------------------------------------------------------------
+%% To avoid dialyzer warnings due to the use of exit/throw.
+-spec(raise_with_state/2 :: (_, _) -> no_return()).
raise_with_state(E, State) ->
throw({reply, {'EXCEPTION', E}, State}).