No effective change - add final modifier

This commit is contained in:
Robin Bygrave committed 2015-07-31 14:02:38 +12:00
1 parent deed0bb01d
commit 90886193c0
42 files changed
+75 -81

No files matched your search

@@ -14,9 +14,9 @@ public class FileResourceContent implements ResourceContent {
/**
* The underlying file.
*/
File file;
final File file;
String entryName;
final String entryName;
/**
* Create with a File and the entryName.
@@ -10,9 +10,9 @@ public class FileResourceSource extends AbstractResourceSource implements Resour
/**
* The directory name.
*/
String directory;
String baseDir;
final String directory;
final String baseDir;
/**
* Create the source based on a directory name.
@@ -27,7 +27,7 @@ public class Dnode {
ArrayList<Dnode> children;
LinkedHashMap<String, String> attrList = new LinkedHashMap<String, String>();
final LinkedHashMap<String, String> attrList = new LinkedHashMap<String, String>();
/**
* Create a node.
@@ -29,7 +29,7 @@ public class DnodeParser extends DefaultHandler {
/**
* Used to stack the nodes.
*/
Stack<Dnode> stack = new Stack<Dnode>();
final Stack<Dnode> stack = new Stack<Dnode>();
/**
* The class used to construct new nodes. Should be Dnode or a subtype of
@@ -5,10 +5,10 @@ package com.avaje.ebeaninternal.server.lib.util;
*/
public class MailAddress {
String alias;
String emailAddress;
final String alias;
final String emailAddress;
/**
* Create an address with an optional alias.
@@ -9,12 +9,12 @@ public class MailEvent {
/**
* The error indicating a send failure.
*/
Throwable error;
final Throwable error;
/**
* The message that was sent.
*/
MailMessage message;
final MailMessage message;
/**
@@ -10,16 +10,11 @@ import java.util.List;
* A simple test message that can be sent via smtp.
*/
public class MailMessage {
// /**
// * The subject text.
// */
// String subject;
/**
* The body content.
*/
ArrayList<String> bodylines;
final ArrayList<String> bodylines;
/**
* The sender email address.
@@ -29,7 +24,7 @@ public class MailMessage {
/**
* The headers.
*/
HashMap<String,String> header = new HashMap<String, String>();
final HashMap<String,String> header = new HashMap<String, String>();
/**
* the recipient of the email.
@@ -39,7 +34,7 @@ public class MailMessage {
/**
* The list of recipients.
*/
ArrayList<MailAddress> recipientList = new ArrayList<MailAddress>();
final ArrayList<MailAddress> recipientList = new ArrayList<MailAddress>();
/**
* Create the message.
@@ -21,7 +21,7 @@ public class MailSender implements Runnable {
int traceLevel = 0;
Socket sserver;
String server;
final String server;
BufferedReader in;
@@ -6,8 +6,8 @@ import java.util.LinkedHashMap;
* Utility String class that supports String manipulation functions.
*/
public class MapFromString {
LinkedHashMap<String,String> map = new LinkedHashMap<String,String>();
final LinkedHashMap<String,String> map = new LinkedHashMap<String,String>();
String mapToString;
@@ -34,7 +34,7 @@ public class MimeTypeHelper {
}
private static ResourceBundle resources = ResourceBundle.getBundle("com.avaje.lib.util.mimetypes");
private static final ResourceBundle resources = ResourceBundle.getBundle("com.avaje.lib.util.mimetypes");
}