Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Generating Getters & Setters Question

$
0
0

Hello -

 

Using Idea 14.1.4 and Ctrl-Return (on a MAC) invokes generating Getters & Setters.  I have already made changes so the variable name in the setter adds the word "Value" as a suffix.

 

For example:

 

private Integer itemCount;

public Integer getItemCount() {
    return itemCount;
}

public void setItemCount( Integer itemCountValue ) {
    itemCount = itemCountValue;
}

So my question:  Is there a way to configure IntelliJ so the variable name in the Setter is just "value"?  For example:

 

public void setItemCount( Integer value ) {
    itemCount = value;
}

 

Thanks!


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>