Open an issue on Github or directly send an email
to Julien Lamarre, Spincast lead developer (use "
julien@" and append the site's domain:
// @formatter:onto disable the auto formatting:
// @formatter:off String sql = "SELECT color " + "FROM napoleon_horses " + "WHERE color='white'"; // @formatter:on
protectedfor a method that shouldn't be
private, but a
protectedgetter should exist for them.
finalmember variables, when possible.
/** comment */style for the Javadoc. You can use this style for comments which are not Javadoc:
//========================================== // This is a comment //========================================== String hello = "World";But regular comment style is ok too :
// This is a comment String hello = "World";
.propertiesfiles which should be
UTF-8everywhere an encoding is involved!
"\n". No Windows's
ifcondition. Don't do this:
if(someCondition) // no braces... :-(
UTCif no timezone is specified. If you need to store a date, store it as
UTC. Only when displaying or outputting the date will you use the user's timezone, if available.
DefaultIntegrationTestingBaseor, at least,
SpincastGuiceBasedTestBase. Make sure you understand our custom
SpincastJUnitRunnerJUnit runner, which creates one instance of a test class only! For our unit tests, we often start an
Undertowserver instance even if it could be done without one: Undertow is very fast to boot.