I want to know exactly where the comment should go, and which keyword should I use, since I really can’t find an example on the Internet, should I, for example, do this?
/** * @invariant invariant example */ public class Example { }
There are several options
Some examples
@Contract ("_, null → null") - the method returns null if its second argument is zero.@Contract ("_, null → null; _ ,! null →! Null") - the method returns null if its second argument is null, and not null otherwise.@Contract ( "true → fail" ) - assertFalse() , true .
@Contract ("_, null → null") - the method returns null if its second argument is zero.
@Contract ("_, null → null; _ ,! null →! Null") - the method returns null if its second argument is null, and not null otherwise.
@Contract ( "true → fail" ) - assertFalse() , true .
. https://www.jetbrains.com/help/idea/2016.2/contract-annotations.html.
IntelliJ IDEA. . , .
. , .
, https://docs.oracle.com/javase/7/docs/api/java/util/Map.html#put(K,%20V)
, .
, . Map.put (, )
Map.put
@throws UnsupportedOperationException, put @throws ClassCastException, .@throws NullPointerException, null .@throws IllegalArgumentException, - .
Source: https://habr.com/ru/post/1660234/More articles:Filter list of tuple lists - pythonКакие триггеры андроидного хром отображают панель "make page mobile-friendly"? - javascriptКак сканировать числовой диапазон в hbase - javaHow to control the version of an object? - jsonAngular sends HTTP request using OPTIONS method instead of POST - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1660235/laravel-53-passport-and-angular-storing-access-tokens&usg=ALkJrhhJaqKz7kkfryll1FmiqvyBHakbGgJPA and PostgreSQL with GenerationType.IDENTITY - postgresqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1660237/how-to-get-the-user-input-from-buttons-to-display-in-the-text-box-using-function-for-loop&usg=ALkJrhi8C2suSFOeOqcMVcFvx5We0bxwIQPandas create parameter set and average data - pythonReread response body from JavaScript request - jsonAll Articles