I've been using the braces on a new line convention for my java project:
public String class()
{
something;
{
However I have quite a few methods, like getters, that could be written on one line like:
public String getOrderNo(){ return this.orderNo; }
So far I have been correcting this so as everything is in the same format but IntelliJ keeps correcting this. Should I leave this on one line and mix the formats or should I keep changing it so as I am consistent for the whole project?