Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix specs and few warnings

  • Loading branch information...
commit c4e5edb06f955b7eeab9d8daa3350baac37c5690 1 parent 396777f
@gleber authored
View
4 src/eresye_ontology.erl
@@ -279,9 +279,9 @@ resolve_inheritance(Acc, Classes, [Class | T]) ->
SuperClass = get_class(Class#ontology_class.superclass,
Classes),
NewClass = Class#ontology_class{properties =
- lists:foldl(fun (X, Acc) ->
+ lists:foldl(fun (X, Accc) ->
override_property([],
- Acc,
+ Accc,
X)
end,
SuperClass#ontology_class.properties,
View
3  src/fipa_ontology_sl_codec.erl
@@ -1557,7 +1557,6 @@ decode(X) ->
_ -> X
end.
-set_of(["set" | L]) -> decode(L);
-set_of(["set", L]) -> decode(L).
+set_of(["set" | L]) -> decode(L).
sequence_of(["sequence" | L]) -> decode(L).
View
7 src/simple_agent.erl
@@ -36,7 +36,12 @@
%% get_message/1,
%% match_message/2,
-- spec ( { { behaviour_info , 1 } , [ { type , 50 , 'fun' , [ { type , 50 , product , [ { type , 50 , atom , [ ] } ] } , { type , 50 , union , [ { atom , 50 , undefined } , { type , 50 , list , [ { type , 50 , tuple , [ { type , 50 , atom , [ ] } , { type , 50 , arity , [ ] } ] } ] } ] } ] } ] } ) .
+-spec behaviour_info(atom()) -> 'undefined' | [{atom(), arity()}].
+behaviour_info(callbacks) ->
+ [{init,1},{handle_call,3},{handle_cast,2},{handle_info,2},
+ {terminate,2},{code_change,3}];
+behaviour_info(_Other) ->
+ undefined.
-record(state,
Please sign in to comment.
Something went wrong with that request. Please try again.