Effective Java



Download 2,19 Mb.
Pdf ko'rish
bet227/341
Sana11.07.2022
Hajmi2,19 Mb.
#776765
1   ...   223   224   225   226   227   228   229   230   ...   341
Bog'liq
Effective Java



CHAPTER 8
METHODS
254
Item 56: Write doc comments for all exposed API elements
If an API is to be usable, it must be documented. Traditionally, API documentation
was generated manually, and keeping it in sync with code was a chore. The Java
programming environment eases this task with the 
Javadoc
utility. Javadoc
generates API documentation automatically from source code with specially
formatted 
documentation comments
, more commonly known as 
doc comments
.
While the doc comment conventions are not officially part of the language,
they constitute a de facto API that every Java programmer should know. These
conventions are described in the 
How to Write Doc Comments
web page [Javadoc-
guide]. While this page has not been updated since Java 4 was released, it is still
an invaluable resource. One important doc tag was added in Java 9, 
{@index}
; one
in Java 8, 
{@implSpec}
; and two in Java 5, 
{@literal}
and 
{@code}
. These tags
are missing from the aforementioned web page, but are discussed in this item.

Download 2,19 Mb.

Do'stlaringiz bilan baham:
1   ...   223   224   225   226   227   228   229   230   ...   341




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish