Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 252779 - [encapsulate field] Encapsulate field does not use parameter prefix code style
Summary: [encapsulate field] Encapsulate field does not use parameter prefix code style
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.3 M1   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 309932 329270 381982 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-30 11:47 EDT by Hüseyin Kartal CLA
Modified: 2012-06-15 13:50 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hüseyin Kartal CLA 2008-10-30 11:47:57 EDT
Automatic generation of GETTER and SETTER methods don´t use configured naming conventions.

for example.

i configured "par" as a prefix for parameter values.

for the field:

		private Long   invoiceId ;
		
the generated SETTER looks like:
		
		public void setInvoiceId ( Long invoiceId )
		{
			this.invoiceId = invoiceId ;
		}
		
but it should :

		public void setInvoiceId ( Long parInvoiceId )
		{
			this.invoiceId = parInvoiceId ;
		}
Comment 1 Olivier Thomann CLA 2008-10-30 13:43:02 EDT
Moving to JDT/UI
Comment 2 Markus Keller CLA 2010-04-21 10:48:20 EDT
*** Bug 309932 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2010-11-08 07:54:49 EST
*** Bug 329270 has been marked as a duplicate of this bug. ***
Comment 4 Markus Keller CLA 2012-06-15 13:47:46 EDT
*** Bug 381982 has been marked as a duplicate of this bug. ***