Findbugs vositasi yordamida Java kodidan baglarni aniqlash


Download 43.15 Kb.
Sana23.03.2023
Hajmi43.15 Kb.
#1289840
Bog'liq
FindBugs dasturi

FINDBUGS vositasi yordamida Java kodidan baglarni aniqlash

Ikromov Sobirjon

REJA:

How does FindBugs work?

  • FindBugs Java baytekodini (kompilyatsiya qilingan sinf fayllari) tahlil qilish orqali ishlaydi, shuning uchun uni ishlatish uchun dasturning manba kodi ham kerak emas. Uning tahlili ba'zan noaniq bo'lgani uchun FindBugs noto'g'ri ogohlantirishlar haqida xabar berishi mumkin, ular haqiqiy xatolarni ko'rsatmaydigan ogohlantirishlardir.

FindBugs vositasi nima?

  • FindBugs vositasi nima? Kartinki po zaprosu findbugs bu qanday ishlaydi FindBugs - bu Bill Pugh va Devid Xovemeyer tomonidan yaratilgan ochiq manbali statik kod analizatori bo'lib, u Java dasturlarida yuzaga kelishi mumkin bo'lgan xatolarni aniqlaydi. Potentsial xatolar to'rt darajaga bo'linadi: (i) eng dahshatli, (ii) qo'rqinchli, (iii) tashvishli va (iv) tashvishli. Bu ishlab chiquvchiga ularning mumkin bo'lgan ta'siri yoki jiddiyligi haqida maslahat beradi.

Qanday ishga tushirilishi

  • The preferred method of running FindBugs is to directly execute
  • $FINDBUGS_HOME /lib/findbugs. jar using the -jar command line switch of the JVM (java) executable.
  • (Versions of FindBugs prior to 1.3. 5 required a wrapper script to invoke FindBugs.)

FindBugs kod tahlili

  • Findbugs Java dasturlarini statik kod tahlil qilish uchun ochiq manbali vositadir. U nuqsonlarni va/yoki shubhali kodni topish uchun bayt kodini skanerdan o'tkazadi. Findbugs kompilyatsiya qilingan sinf fayllariga muhtoj bo'lsa-da, tahlil uchun kodni bajarish shart emas.
  • Bu joyda java codelaridagi dasturdan baglarni qanday topishiga misol ko’rishimiz mumkin bo’ladi.
  • https://examples.javacodegeeks.com/core-java/findbugs-eclipse-example/

Koddagi xatolarni qanday aniqlanadi

  • 7 Strategies for Finding the Trickiest Bugs in Your Code. Get the program to tell you a story. ...
  • Walk Away From the Machine. ...
  • Get the Program To Tell You a Story. ...
  • Check Your Syntax. ...
  • Reach Out to a Colleague. ...
  • Learn More About Your System. ...
  • Compare With Earlier Versions. ...
  • Search for Possible Fixes and Additional Context.

Bugfixer vs code

  • Bugfixer is an automated program repair system for C, Java and Python.
  • Find bugs, generate patches and applying patch (C language).
  • Find bugs, generate patches and applying patch (JAVA language).
  • Find bugs, generate patches and applying patch (Python language).

Foydalanilgan adabiyotlar

  • S.Rahmonqulov “IBM PC shaxsiy kompyuterida ishlash”, Т.: “Sharq”, 1998.
  • A. Axmedov N. Taylaqov “Informatika”, Toshkent “O’zbekiston”, 2001.
  • A. Abduqodirov va boshqalar “Informatika”, Т.: “Me’ros”. 2002.
  • A. Sattorov «Informatika va axborot texnologiyalari» Toshkent «O’qituvchi», 2002.
  • http://www.microsoft.com/
  • http://www.ziyonet.uz

Download 43.15 Kb.

Do'stlaringiz bilan baham:




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