It is hard to determine when it is uncommented code or a comment
public boolean equals(Object o)
{
if (this == o)
return true;
}
/*
if (o == null)
return false;
*/ if (o.getClass() != getClass())
return (m_key.equals(((KeyValueContainer)o).m_key));
or
// if (o == null)
// {
// return false;
// }
if (o.getClass() != getClass())
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
Hi,
in my opinion it is not so usefull or important to find "commented out"
code.
It also does not fit with the target of UCDetector to find "unnecessary
code".
Anywhere, if you are interested, write you own detection. A starting
point would be here:
/org.ucdetector.additional/src/org/ucdetector/iterator/CommentIterator.java
Jörg
It is hard to determine when it is uncommented code or a comment
public boolean equals(Object o)
{
if (this == o)
{
return true;
}
/*
if (o == null)
{
return false;
}
*/
if (o.getClass() != getClass())
{
return false;
}
return (m_key.equals(((KeyValueContainer)o).m_key));
}
or
public boolean equals(Object o)
{
if (this == o)
{
return true;
}
// if (o == null)
// {
// return false;
// }
if (o.getClass() != getClass())
{
return false;
}
return (m_key.equals(((KeyValueContainer)o).m_key));
}
Hi,
in my opinion it is not so usefull or important to find "commented
out"
code.
It also does not fit with the target of UCDetector to find "unnecessary
code".
Anywhere, if you are interested, write you own detection. A starting
point would be here:
/org.ucdetector.additional/src/org/ucdetector/iterator/CommentIterator.java
Jörg