ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields? Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one word, I'd not capitalize then
.
ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one word, I'd not capitalize then
.
ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one word, I'd not capitalize then
.
ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one wordfileName
is rather one word, I'd not capitalize then
.
ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one word, I'd not capitalize then
.
ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one word, I'd not capitalize then
.
ExecutorService.awaitTermination
has a return value:
true if this executor terminated and false if the timeout elapsed before termination
You should check that and at least print a warning to log if it's false
.
- Consider setting an
UncaughtExceptionHandler
for the executor (through aThreadFactory
). (ThreadFactoryBuilder
from Guava has a great API for that.)
- It's a little bit surprising that field declarations call probably complicated methods:
final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
I'd put them into a constructor.
- These fields could be private:
final String format = "xml"; final String directoryReport = "\\var\\reports"; final JasperRestfulClient restClient = new JasperRestfulClient(); final List<Report> reportsToBeTested = restClient.getReports();
(Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.)
fileName
is rather one word, I'd not capitalize then
.