SONARJAVA-649 Compute inner and outer class name when class ends with $

Solve the issue for classes ending with $ and $class in scala generated by the scala compiler.