Modify rule S4487: Fix error in code example (#4644)
This commit is contained in:
parent
7e54acfafa
commit
1e63f6a274
@ -13,13 +13,13 @@ public class Rectangle
|
||||
{
|
||||
this.length = length;
|
||||
this.width = width;
|
||||
}
|
||||
}
|
||||
|
||||
public int Surface
|
||||
{
|
||||
get
|
||||
{
|
||||
return length * width;
|
||||
return length * length;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -56,4 +56,4 @@ public class Rectangle
|
||||
|
||||
* CWE - https://cwe.mitre.org/data/definitions/563[CWE-563 - Assignment to Variable without Use ('Unused Variable')]
|
||||
|
||||
include::../rspecator.adoc[]
|
||||
include::../rspecator.adoc[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user