Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316967 - Refactoring: Remove Arithmetic If Statement
Summary: Refactoring: Remove Arithmetic If Statement
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 7.0   Edit
Assignee: Matthew Fotzler CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 16:27 EDT by Matthew Fotzler CLA
Modified: 2010-07-15 11:32 EDT (History)
1 user (show)

See Also:


Attachments
patch with refactoring and test suite (18.23 KB, patch)
2010-06-15 16:29 EDT, Matthew Fotzler CLA
com-eclipse-dot-org: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Fotzler CLA 2010-06-15 16:27:34 EDT
Build Identifier: 

The attachment is a patch which provides a resource refactoring for removing arithmetic if statements and replacing them into if/else if/else statements.

Reproducible: Always
Comment 1 Matthew Fotzler CLA 2010-06-15 16:29:05 EDT
Created attachment 171989 [details]
patch with refactoring and test suite
Comment 2 Jeffrey Overbey CLA 2010-06-15 16:43:25 EDT
Thanks.  Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?
Comment 3 Matthew Fotzler CLA 2010-06-15 16:46:22 EDT
Yes,

I wrote 100% of the code without incorporating content from elsewhere or
relying on the intellectual property of others, I have the right to contribute the code to Eclipse, and I have included the EPL license header in all source files.
Comment 4 Jeffrey Overbey CLA 2010-06-15 18:09:46 EDT
This is a small contribution, so we will not need to file a CQ.
Comment 5 Jeffrey Overbey CLA 2010-06-22 16:47:09 EDT
Thanks, Matt.  I have committed this to CVS.

Could you please add documentation for it to the Photran *7.0* Advanced Features manual?  It is here:

http://wiki.eclipse.org/PTP/photran/documentation/photran7advanced

Please follow the general form used for the other refactorings.  Let me know when that's done, and we can close this bug.  Thanks a lot.
Comment 6 Matthew Fotzler CLA 2010-07-15 09:17:58 EDT
(In reply to comment #5)
> Thanks, Matt.  I have committed this to CVS.
> 
> Could you please add documentation for it to the Photran *7.0* Advanced
> Features manual?  It is here:
> 
> http://wiki.eclipse.org/PTP/photran/documentation/photran7advanced
> 
> Please follow the general form used for the other refactorings.  Let me know
> when that's done, and we can close this bug.  Thanks a lot.

Documentation added.
Comment 7 Jeffrey Overbey CLA 2010-07-15 11:32:22 EDT
Thanks.