Skip to content

Commit

Permalink
[RESTEASY-1974] Checkstyle - final constructor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Terem authored and asoldano committed Nov 16, 2018
1 parent 332a51f commit 46d3658
Show file tree
Hide file tree
Showing 657 changed files with 1,183 additions and 1,183 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class CachedPrimaryZone {
protected Zone zone;
protected ZoneProvider zoneProvider;

public CachedPrimaryZone(Zone zone, ZoneProvider zoneProvider) {
public CachedPrimaryZone(final Zone zone, final ZoneProvider zoneProvider) {

super();
this.zone = zone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CachedSecondaryZone {
protected ZoneProvider zoneProvider;
private SecondaryZone secondaryZone;

public CachedSecondaryZone(ZoneProvider zoneProvider, SecondaryZone secondaryZone) {
public CachedSecondaryZone(final ZoneProvider zoneProvider, final SecondaryZone secondaryZone) {

this.zoneProvider = zoneProvider;
this.secondaryZone = secondaryZone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class LoginHandler implements EagleLogin {
private EagleManager eagleManager;
private String password;

public LoginHandler(EagleManager eagleManager, String password) {
public LoginHandler(final EagleManager eagleManager, final String password) {
super();
this.eagleManager = eagleManager;
this.password = password;
Expand Down
4 changes: 2 additions & 2 deletions eagledns/src/main/java/se/unlogic/eagledns/SecondaryZone.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public class SecondaryZone {
private Timestamp downloaded;
private Zone zoneCopy;

public SecondaryZone(String zoneName, String remoteServerAddress, String dclass) throws TextParseException {
public SecondaryZone(final String zoneName, final String remoteServerAddress, final String dclass) throws TextParseException {

super();
this.zoneName = Name.fromString(zoneName, Name.root);
this.remoteServerAddress = remoteServerAddress;
this.dclass = dclass;
}

public SecondaryZone(String zoneName, String remoteServerAddress, String dclass, Timestamp zoneDownloaded, Zone zone) throws TextParseException {
public SecondaryZone(final String zoneName, final String remoteServerAddress, final String dclass, final Timestamp zoneDownloaded, final Zone zone) throws TextParseException {

this.zoneName = Name.fromString(zoneName, Name.root);
this.remoteServerAddress = remoteServerAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class TCPConnection implements Runnable {
private EagleDNS eagleDNS;
private Socket socket;

public TCPConnection(EagleDNS eagleDNS, Socket socket) {
public TCPConnection(final EagleDNS eagleDNS, final Socket socket) {
super();
this.eagleDNS = eagleDNS;
this.socket = socket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TCPSocketMonitor extends Thread {
private final int port;
private final ServerSocket serverSocket;

public TCPSocketMonitor(EagleDNS eagleDNS, final InetAddress addr, final int port) throws IOException {
public TCPSocketMonitor(final EagleDNS eagleDNS, final InetAddress addr, final int port) throws IOException {
super();
this.eagleDNS = eagleDNS;
this.addr = addr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class UDPConnection implements Runnable {
private final DatagramSocket socket;
private final DatagramPacket inDataPacket;

public UDPConnection(EagleDNS eagleDNS, DatagramSocket socket, DatagramPacket inDataPacket) {
public UDPConnection(final EagleDNS eagleDNS, final DatagramSocket socket, final DatagramPacket inDataPacket) {
super();
this.eagleDNS = eagleDNS;
this.socket = socket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UDPSocketMonitor extends Thread {
private static final short udpLength = 512;
private final DatagramSocket socket;

public UDPSocketMonitor(EagleDNS eagleDNS, final InetAddress addr, final int port) throws SocketException {
public UDPSocketMonitor(final EagleDNS eagleDNS, final InetAddress addr, final int port) throws SocketException {
super();
this.eagleDNS = eagleDNS;
this.addr = addr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class DBRecord implements Elementable {

public DBRecord(){}

public DBRecord(Record record, Name origin, long zoneTTL) {
public DBRecord(final Record record, final Name origin, final long zoneTTL) {

this.name = record.getName().relativize(origin).toString();
this.type = Type.string(record.getType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class DBSecondaryZone extends SecondaryZone {

private Integer zoneID;

public DBSecondaryZone(Integer zoneID, String zoneName, String remoteServerAddress, String dclass) throws TextParseException {
public DBSecondaryZone(final Integer zoneID, final String zoneName, final String remoteServerAddress, final String dclass) throws TextParseException {

super(zoneName, remoteServerAddress, dclass);
this.zoneID = zoneID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public DBZone() {
super();
}

public DBZone(Zone zone, boolean secondary) {
public DBZone(final Zone zone, final boolean secondary) {

this.parse(zone, secondary);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class NoAnnotatedFieldsFoundException extends RuntimeException {
private final Class<?> beanClass;
private final Class<? extends Annotation>[] annotations;

public NoAnnotatedFieldsFoundException(Class<?> beanClass,Class<? extends Annotation>... annotations) {
public NoAnnotatedFieldsFoundException(final Class<?> beanClass,final Class<? extends Annotation>... annotations) {

super("No annotated fields found in class " + beanClass + " with annotations " + annotations);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class NoAnnotatedFieldsOrMethodsFoundException extends RuntimeException {
private final Class<?> beanClass;
private final Class<? extends Annotation>[] annotations;

public NoAnnotatedFieldsOrMethodsFoundException(Class<?> beanClass,Class<? extends Annotation>... annotations) {
public NoAnnotatedFieldsOrMethodsFoundException(final Class<?> beanClass,final Class<? extends Annotation>... annotations) {

super("No annotated fields found in class " + beanClass + " with annotations " + annotations);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class UnsupportedFieldTypeException extends RuntimeException {
private final Class<? extends Annotation> annotation;
private final Field field;

public UnsupportedFieldTypeException(String message, Field field, Class<? extends Annotation> annotation, Class<?> beanClass) {
public UnsupportedFieldTypeException(final String message, final Field field, final Class<? extends Annotation> annotation, final Class<?> beanClass) {
super(message);

this.beanClass = beanClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class UnsupportedMethodArgumentException extends RuntimeException {
private final Class<? extends Annotation> annotation;
private final Method method;

public UnsupportedMethodArgumentException(String message, Method method, Class<? extends Annotation> annotation, Class<?> beanClass) {
public UnsupportedMethodArgumentException(final String message, final Method method, final Class<? extends Annotation> annotation, final Class<?> beanClass) {
super(message);

this.beanClass = beanClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SysoutCallback<T> implements Callback<T> {

private static final Logger LOG = Logger.getLogger(SysoutCallback.class);

public SysoutCallback(String prefix, String suffix) {
public SysoutCallback(final String prefix, final String suffix) {

super();
this.prefix = prefix;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class KeyAlreadyCachedException extends RuntimeException {
private static final long serialVersionUID = 6139847169384918434L;
private Object key;

public KeyAlreadyCachedException(Object key) {
public KeyAlreadyCachedException(final Object key) {
this.key = key;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class KeyNotCachedException extends RuntimeException {
private static final long serialVersionUID = 1833583474702621444L;
private Object key;

public KeyNotCachedException(Object key) {
public KeyNotCachedException(final Object key) {
this.key = key;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MethodComparator<T> implements Comparator<T> {
protected Method method;
protected final Order order;

public MethodComparator(Class<? extends T> clazz, String methodName, Order order){
public MethodComparator(final Class<? extends T> clazz, final String methodName, final Order order){

Method[] methods = clazz.getDeclaredMethods();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class StrictTreeMap<Key, Value> implements StrictMap<Key, Value> {

protected final TreeMap<Key, Value> treeMap;

public StrictTreeMap (Comparator<Key> comparator){
public StrictTreeMap (final Comparator<Key> comparator){

treeMap = new TreeMap<Key, Value>(comparator);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ public static class InputStream extends java.io.FilterInputStream {
* @param in the <tt>java.io.InputStream</tt> from which to read data.
* @since 1.3
*/
public InputStream(java.io.InputStream in) {
public InputStream(final java.io.InputStream in) {

this(in, DECODE);
} // end constructor
Expand All @@ -1563,7 +1563,7 @@ public InputStream(java.io.InputStream in) {
* @see Base64#DO_BREAK_LINES
* @since 2.0
*/
public InputStream(java.io.InputStream in, int options) {
public InputStream(final java.io.InputStream in, final int options) {

super(in);
this.options = options; // Record for later
Expand Down Expand Up @@ -1739,7 +1739,7 @@ public static class OutputStream extends java.io.FilterOutputStream {
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
* @since 1.3
*/
public OutputStream(java.io.OutputStream out) {
public OutputStream(final java.io.OutputStream out) {

this(out, ENCODE);
} // end constructor
Expand All @@ -1764,7 +1764,7 @@ public OutputStream(java.io.OutputStream out) {
* @see Base64#DO_BREAK_LINES
* @since 1.3
*/
public OutputStream(java.io.OutputStream out, int options) {
public OutputStream(final java.io.OutputStream out, final int options) {

super(out);
this.breakLines = (options & DO_BREAK_LINES) != 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,23 @@ public class AnnotatedDAO<T> {
protected String getSQL;
protected String defaultSortingCriteria;

public AnnotatedDAO(DataSource dataSource, Class<T> beanClass, AnnotatedDAOFactory daoFactory) {
public AnnotatedDAO(final DataSource dataSource, final Class<T> beanClass, final AnnotatedDAOFactory daoFactory) {

this(dataSource, beanClass, daoFactory, new AnnotatedResultSetPopulator<T>(beanClass), null, null);
}

public AnnotatedDAO(DataSource dataSource, Class<T> beanClass, AnnotatedDAOFactory daoFactory, AnnotatedResultSetPopulator<T> populator, QueryParameterPopulator<?>... queryParameterPopulators) {
public AnnotatedDAO(final DataSource dataSource, final Class<T> beanClass, final AnnotatedDAOFactory daoFactory, final AnnotatedResultSetPopulator<T> populator, final QueryParameterPopulator<?>... queryParameterPopulators) {

this(dataSource, beanClass, daoFactory, populator, Arrays.asList(queryParameterPopulators), null);
}

public AnnotatedDAO(DataSource dataSource, Class<T> beanClass, AnnotatedDAOFactory daoFactory, List<? extends QueryParameterPopulator<?>> queryParameterPopulators, List<? extends BeanStringPopulator<?>> typePopulators) {
public AnnotatedDAO(final DataSource dataSource, final Class<T> beanClass, final AnnotatedDAOFactory daoFactory, final List<? extends QueryParameterPopulator<?>> queryParameterPopulators, final List<? extends BeanStringPopulator<?>> typePopulators) {

this(dataSource, beanClass, daoFactory, new AnnotatedResultSetPopulator<T>(beanClass, typePopulators), queryParameterPopulators, typePopulators);
}

public AnnotatedDAO(DataSource dataSource, Class<T> beanClass, AnnotatedDAOFactory daoFactory, AnnotatedResultSetPopulator<T> populator,
List<? extends QueryParameterPopulator<?>> queryParameterPopulators, List<? extends BeanStringPopulator<?>> typePopulators) {
public AnnotatedDAO(final DataSource dataSource, final Class<T> beanClass, final AnnotatedDAOFactory daoFactory, final AnnotatedResultSetPopulator<T> populator,
final List<? extends QueryParameterPopulator<?>> queryParameterPopulators, final List<? extends BeanStringPopulator<?>> typePopulators) {

super();
this.populator = populator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class BeanChainPopulator<T> implements BeanResultSetPopulator<T> {
protected BeanResultSetPopulator<T> populator;
protected List<ChainedResultSetPopulator<T>> chainedResultSetPopulators;

public BeanChainPopulator(List<ChainedResultSetPopulator<T>> chainedResultSetPopulators, BeanResultSetPopulator<T> populator) {
public BeanChainPopulator(final List<ChainedResultSetPopulator<T>> chainedResultSetPopulators, final BeanResultSetPopulator<T> populator) {

super();
this.populator = populator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class BeanRelationPopulator<T> implements BeanResultSetPopulator<T>{
private Connection connection;
private RelationQuery relationQuery;

public BeanRelationPopulator(BeanResultSetPopulator<T> populator, List<ManyToOneRelation<T,?,?>> manyToOneRelations, Connection connection, RelationQuery relationQuery) {
public BeanRelationPopulator(final BeanResultSetPopulator<T> populator, final List<ManyToOneRelation<T,?,?>> manyToOneRelations, final Connection connection, final RelationQuery relationQuery) {
super();
this.populator = populator;
this.manyToOneRelations = manyToOneRelations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ColumnKeyCollector<T> {
private final ResultSetField resultSetField;
private final int columnIndex;

public ColumnKeyCollector(Field field, AnnotatedResultSetPopulator<T> populator, int columnIndex) {
public ColumnKeyCollector(final Field field, final AnnotatedResultSetPopulator<T> populator, final int columnIndex) {

this.resultSetField = populator.getResultSetField(field);
this.columnIndex = columnIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ColumnKeyCollectorWrapper<T> implements GeneratedKeyCollector {
private ArrayList<ColumnKeyCollector<T>> columnKeyCollectors;
private T bean;

public ColumnKeyCollectorWrapper(ArrayList<ColumnKeyCollector<T>> columnKeyCollectors, T bean) {
public ColumnKeyCollectorWrapper(final ArrayList<ColumnKeyCollector<T>> columnKeyCollectors, final T bean) {

this.columnKeyCollectors = columnKeyCollectors;
this.bean = bean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class CustomQueryParameter<T>{
private Method queryMethod;
private Object paramValue;

public CustomQueryParameter(Column<T,?> column , T bean) {
public CustomQueryParameter(final Column<T,?> column , final T bean) {

super();
this.queryParameterPopulator = column.getQueryParameterPopulator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class DefaultManyToManyRelation<LocalType,RemoteType> implements ManyToMa

private boolean initialized;

public DefaultManyToManyRelation(Class<LocalType> beanClass, Class<RemoteType> remoteClass, Field field, AnnotatedDAOFactory daoFactory, DAOManaged daoManaged) {
public DefaultManyToManyRelation(final Class<LocalType> beanClass, final Class<RemoteType> remoteClass, final Field field, final AnnotatedDAOFactory daoFactory, final DAOManaged daoManaged) {
super();
this.beanClass = beanClass;
this.remoteClass = remoteClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class DefaultManyToOneRelation<LocalType,RemoteType, RemoteKeyType> imple

private boolean initialized;

public DefaultManyToOneRelation(Class<LocalType> beanClass, Class<RemoteType> remoteClass, Class<RemoteKeyType> remoteKeyClass, Field field, Field remoteKeyField, DAOManaged daoManaged, AnnotatedDAOFactory daoFactory) {
public DefaultManyToOneRelation(final Class<LocalType> beanClass, final Class<RemoteType> remoteClass, final Class<RemoteKeyType> remoteKeyClass, final Field field, final Field remoteKeyField, final DAOManaged daoManaged, final AnnotatedDAOFactory daoFactory) {

this.remoteClass = remoteClass;
this.remoteRemoteKeyClass = remoteKeyClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DefaultOneToManyRelation<LocalType,RemoteType> implements OneToMany
private final Class<RemoteType> remoteClass;
private boolean initialized;

public DefaultOneToManyRelation(Class<LocalType> beanClass, Class<RemoteType> remoteClass, Field field, AnnotatedDAOFactory daoFactory, DAOManaged daoManaged) {
public DefaultOneToManyRelation(final Class<LocalType> beanClass, final Class<RemoteType> remoteClass, final Field field, final AnnotatedDAOFactory daoFactory, final DAOManaged daoManaged) {
super();
this.beanClass = beanClass;
this.remoteClass = remoteClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ public class HighLevelQuery<T> extends RelationQuery{

public HighLevelQuery() {}

public HighLevelQuery(List<QueryParameter<T, ?>> parameters, List<OrderByCriteria<T>> orderByCriterias) {
public HighLevelQuery(final List<QueryParameter<T, ?>> parameters, final List<OrderByCriteria<T>> orderByCriterias) {

super();
this.parameters = parameters;
this.orderByCriterias = orderByCriterias;
}

public HighLevelQuery(Field... relations) {
public HighLevelQuery(final Field... relations) {

this.addRelations(relations);
}

public HighLevelQuery(QueryParameter<T, ?> parameter, Field... relations) {
public HighLevelQuery(final QueryParameter<T, ?> parameter, final Field... relations) {

this.addParameter(parameter);
this.addRelations(relations);
}

public HighLevelQuery(QueryParameter<T, ?>... queryParameters) {
public HighLevelQuery(final QueryParameter<T, ?>... queryParameters) {

this.addParameter(queryParameters);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class MethodBasedResultSetPopulator<Type> implements BeanResultSetPopulat
private Method method;
private String columnName;

public MethodBasedResultSetPopulator(Method method, String columnName) {
public MethodBasedResultSetPopulator(final Method method, final String columnName) {

this.method = method;
this.columnName = columnName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class OrderByCriteria<T> {
private Order order;
private Column<T, ?> column;

public OrderByCriteria(Order order, Column<T, ?> column) {
public OrderByCriteria(final Order order, final Column<T, ?> column) {

super();
this.order = order;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public enum QueryOperators {

private String value;

QueryOperators (String value){
QueryOperators (final String value){
this.value = value;
}

Expand Down

0 comments on commit 46d3658

Please sign in to comment.