SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor113 [2014/02/28 16:48]
Günter Kniesel
teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor113 [2018/05/09 01:59] (current)
Line 1: Line 1:
 +====== Bug Cor113 ======
  
 +===== Inspired by =====
 +
 +  * [[http://​http://​findbugs.sourceforge.net/​bugDescriptions.html#​SA_FIELD_SELF_ASSIGNMENT#​| SA_FIELD_SELF_ASSIGNMENT]]
 +
 +===== Original Description =====
 +
 +"This method contains a self assignment of a field; e.g." -- 2013-11-18 ​
 +
 +
 +===== Detailed Description =====
 +
 +This bug is already detected by Eclipse so we didn't implement it (just assigned Red Minus Sign in front of it in the "Bug Descriptions"​ page).
 +
 +
 +===== Sample Problem Scenario =====
 +
 +
 +<code Java>
 +package javaSample.bugCor113; ​        // Removed - The bug is already detected by Eclipse// ​
 +
 +public class SelfAssignmentOfField {
 +
 +   ​public static void main (String[] args){
 +
 + int x;
 +     x = x;                   // Removed - The bug is already detected by Eclipse//
 +   }
 +}
 +</​Code>​
 +
 +===== Sample Fix =====
 +
 +The Bugs is already detected in Eclipse. No need to fix it.
 +
 +
 +===== Evaluation Results =====
 +
 +^  Benchmark project ​ ^  Precision ​             ^^^  Recall ​               ^^^
 +|                     ​| ​ FB    |  JT    |  Delta  |  FB    |  JT    |  Delta |
 +|  Project ...        |  ...%  |  ...%  |  ...%   ​| ​ ...%  |  ...%  |  ...%  |  ​
 +|  Project ...        |  ...%  |  ...%  |  ...%   ​| ​ ...%  |  ...%  |  ...%  |   
 +FB = FindBugs, JT = JTransformer,​ Delta = JTransformer - FindBugs
 + 
teaching/labs/mdse/2013/bug_descriptions/jt-bug-cor113.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019