Space Around Periods Rule Bug

CodePro AnalytiX (Audit & Test), includes over 1000 audit rules and metrics, JUnit test generation & editing, code coverage, and duplicate code analysis

Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, dcarew

Space Around Periods Rule Bug

Postby Nicht » Tue Sep 28, 2010 6:07 am

There is a bug in Space Around Periods Rule. If I, in some circumstance, need to specify generic type in method invocation (e.g. Collections.emptySet()) this rule audits unnecessary space.
Code: Select all
public class RunTest {

   /**
    * @param args
    */
   public static void main(String[] args) {
      acceptSet(Collections.<Integer>emptySet()); //Extra space after period
   }

   public static void acceptSet(Set<? extends Number> set) {

   }
}
Nicht
 
Posts: 3
Joined: Tue Sep 28, 2010 12:14 am

Re: Space Around Periods Rule Bug

Postby Brian Wilkerson » Tue Sep 28, 2010 8:02 am

It looks like this rule was never updated to work with Java 5. We'll have a fix for that in the next build.
Brian Wilkerson
Google, Inc.
http://www.google.com
Brian Wilkerson
Moderator
 
Posts: 32
Joined: Fri Apr 28, 2006 9:37 am

Re: Space Around Periods Rule Bug

Postby Nicht » Wed Sep 29, 2010 5:07 am

Unfortunately I can't find any bug tracking system for CodePro project. Does such exist?
Nicht
 
Posts: 3
Joined: Tue Sep 28, 2010 12:14 am

Re: Space Around Periods Rule Bug

Postby Eric Clayberg » Wed Sep 29, 2010 6:36 am

Nicht wrote:Unfortunately I can't find any bug tracking system for CodePro project. Does such exist?

Yes. It is internal to Google.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to CodePro AnalytiX & PlusPak. EclipsePro Audit & Test

Who is online

Users browsing this forum: No registered users and 1 guest

cron