Skip to content

Commit

Permalink
fix specs and few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gleber committed Apr 17, 2012
1 parent 396777f commit c4e5edb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/eresye_ontology.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ resolve_inheritance(Acc, Classes, [Class | T]) ->
SuperClass = get_class(Class#ontology_class.superclass, SuperClass = get_class(Class#ontology_class.superclass,
Classes), Classes),
NewClass = Class#ontology_class{properties = NewClass = Class#ontology_class{properties =
lists:foldl(fun (X, Acc) -> lists:foldl(fun (X, Accc) ->
override_property([], override_property([],
Acc, Accc,
X) X)
end, end,
SuperClass#ontology_class.properties, SuperClass#ontology_class.properties,
Expand Down
3 changes: 1 addition & 2 deletions src/fipa_ontology_sl_codec.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1557,7 +1557,6 @@ decode(X) ->
_ -> X _ -> X
end. 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). sequence_of(["sequence" | L]) -> decode(L).
7 changes: 6 additions & 1 deletion src/simple_agent.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
%% get_message/1, %% get_message/1,
%% match_message/2, %% 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, -record(state,
Expand Down

0 comments on commit c4e5edb

Please sign in to comment.