Checkstyle Results

The following document contains the results of Checkstylerss feed

Summary

Files Infos Infos Warnings Warnings Errors Errors
46 103 96 171

Files

Files Infos Warnings Errors
com/atlassian/gadgets/dashboard/internal/AbstractViewComponent.java 3 0 1
com/atlassian/gadgets/dashboard/internal/Dashboard.java 0 9 9
com/atlassian/gadgets/dashboard/internal/DashboardRepository.java 0 0 4
com/atlassian/gadgets/dashboard/internal/DashboardTemplateRenderer.java 4 3 1
com/atlassian/gadgets/dashboard/internal/DashboardUrlBuilder.java 0 14 5
com/atlassian/gadgets/dashboard/internal/DashboardWebItemFinder.java 2 2 2
com/atlassian/gadgets/dashboard/internal/Gadget.java 0 7 4
com/atlassian/gadgets/dashboard/internal/GadgetFactory.java 0 2 3
com/atlassian/gadgets/dashboard/internal/GadgetLayoutException.java 0 1 0
com/atlassian/gadgets/dashboard/internal/GadgetNotLoadedException.java 1 1 1
com/atlassian/gadgets/dashboard/internal/InconsistentDashboardStateException.java 0 0 1
com/atlassian/gadgets/dashboard/internal/StateConverter.java 0 0 4
com/atlassian/gadgets/dashboard/internal/Tab.java 0 1 0
com/atlassian/gadgets/dashboard/internal/UserPref.java 0 0 3
com/atlassian/gadgets/dashboard/internal/impl/Column.java 0 2 3
com/atlassian/gadgets/dashboard/internal/impl/DashboardImpl.java 19 6 10
com/atlassian/gadgets/dashboard/internal/impl/DashboardRepositoryImpl.java 3 3 3
com/atlassian/gadgets/dashboard/internal/impl/DashboardServiceImpl.java 2 0 1
com/atlassian/gadgets/dashboard/internal/impl/DashboardUrlBuilderImpl.java 11 2 4
com/atlassian/gadgets/dashboard/internal/impl/GadgetFactoryImpl.java 2 3 1
com/atlassian/gadgets/dashboard/internal/impl/GadgetImpl.java 0 3 9
com/atlassian/gadgets/dashboard/internal/impl/StateConverterImpl.java 2 0 2
com/atlassian/gadgets/dashboard/internal/impl/TabImpl.java 4 0 1
com/atlassian/gadgets/dashboard/internal/impl/TransactionalDashboardStateStoreImpl.java 4 1 12
com/atlassian/gadgets/dashboard/internal/impl/UserPrefImpl.java 0 1 13
com/atlassian/gadgets/dashboard/internal/rest/AddGadgetHandlerImpl.java 3 8 4
com/atlassian/gadgets/dashboard/internal/rest/ChangeGadgetColorHandler.java 0 0 2
com/atlassian/gadgets/dashboard/internal/rest/ChangeGadgetColorHandlerImpl.java 1 0 0
com/atlassian/gadgets/dashboard/internal/rest/ChangeLayoutHandler.java 0 1 3
com/atlassian/gadgets/dashboard/internal/rest/ChangeLayoutHandlerImpl.java 1 2 13
com/atlassian/gadgets/dashboard/internal/rest/DashboardResource.java 5 4 4
com/atlassian/gadgets/dashboard/internal/rest/DeleteGadgetHandlerImpl.java 1 0 0
com/atlassian/gadgets/dashboard/internal/rest/GadgetResource.java 8 3 15
com/atlassian/gadgets/dashboard/internal/rest/UpdateGadgetUserPrefsHandler.java 0 0 1
com/atlassian/gadgets/dashboard/internal/rest/UpdateGadgetUserPrefsHandlerImpl.java 1 0 2
com/atlassian/gadgets/dashboard/internal/rest/representations/DashboardRepresentation.java 3 0 4
com/atlassian/gadgets/dashboard/internal/rest/representations/GadgetRepresentation.java 17 2 8
com/atlassian/gadgets/dashboard/internal/rest/representations/RepresentationFactory.java 0 2 2
com/atlassian/gadgets/dashboard/internal/rest/representations/RepresentationFactoryImpl.java 2 5 2
com/atlassian/gadgets/dashboard/internal/rest/representations/UserPrefRepresentation.java 3 4 3
com/atlassian/gadgets/dashboard/internal/rest/representations/UserPrefsRepresentation.java 0 1 2
com/atlassian/gadgets/dashboard/internal/velocity/DashboardView.java 0 2 7
com/atlassian/gadgets/dashboard/internal/velocity/VelocityViewFactory.java 1 1 2

Rules

Rules Violations Severity
JavadocPackage 4 Errors Error
Translation 0 Errors Error
FileLength 0 Errors Error
FileTabCharacter
  • eachLine: "true"
2 Errors Error
RegexpSingleline
  • message: "Line has trailing spaces."
  • format: "\s+$"
48 Warnings Warning
AnnotationUseStyle 0 Errors Error
MissingDeprecated 0 Errors Error
MissingOverride
  • javaFiveCompatibility: "true"
0 Errors Error
PackageAnnotation 0 Errors Error
JavadocMethod
  • excludeScope: "private"
  • scope: "anoninner"
7 Errors Error
JavadocType
  • scope: "package"
19 Errors Error
JavadocVariable
  • scope: "package"
0 Errors Error
JavadocStyle
  • scope: "package"
16 Errors Error
ConstantName 1 Errors Error
LocalFinalVariableName 0 Errors Error
LocalVariableName 0 Errors Error
MemberName 0 Errors Error
MethodName 0 Errors Error
PackageName 0 Errors Error
ParameterName 0 Errors Error
StaticVariableName 0 Errors Error
TypeName 0 Errors Error
AvoidStarImport 0 Errors Error
IllegalImport 0 Errors Error
ImportOrder
  • separated: "true"
  • groups: "java,javax,com.atlassian,com,org"
50 Errors Error
RedundantImport 0 Errors Error
UnusedImports 0 Errors Error
LineLength
  • max: "120"
48 Warnings Warning
MethodLength 0 Errors Error
ParameterNumber 2 Errors Error
EmptyForIteratorPad 1 Errors Error
MethodParamPad 1 Errors Error
NoWhitespaceAfter 0 Errors Error
NoWhitespaceBefore 0 Errors Error
OperatorWrap 4 Errors Error
ParenPad 3 Errors Error
TypecastParenPad 0 Errors Error
WhitespaceAfter 2 Errors Error
WhitespaceAround 13 Errors Error
ModifierOrder 2 Errors Error
RedundantModifier 6 Errors Error
AvoidNestedBlocks 0 Errors Error
EmptyBlock 0 Errors Error
LeftCurly
  • option: "nl"
2 Errors Error
NeedBraces 3 Errors Error
RightCurly
  • option: "alone"
0 Errors Error
DeclarationOrder 3 Errors Error
DefaultComesLast 0 Errors Error
DoubleCheckedLocking 0 Errors Error
EmptyStatement 0 Errors Error
EqualsHashCode 0 Errors Error
ExplicitInitialization 1 Errors Error
FallThrough 0 Errors Error
HiddenField
  • ignoreConstructorParameter: "true"
  • ignoreSetter: "true"
4 Errors Error
IllegalInstantiation 0 Errors Error
InnerAssignment 0 Errors Error
MagicNumber 2 Errors Error
MissingSwitchDefault 0 Errors Error
ParameterAssignment 0 Errors Error
RedundantThrows
  • allowUnchecked: "true"
0 Errors Error
SimplifyBooleanExpression 0 Errors Error
SimplifyBooleanReturn 0 Errors Error
StringLiteralEquality 0 Errors Error
DesignForExtension 103 Infos Info
FinalClass 0 Errors Error
HideUtilityClassConstructor 0 Errors Error
InterfaceIsType 0 Errors Error
VisibilityModifier 0 Errors Error
BooleanExpressionComplexity 0 Errors Error
ClassDataAbstractionCoupling 1 Errors Error
ClassFanOutComplexity
  • max: "10"
11 Errors Error
CyclomaticComplexity 0 Errors Error
NPathComplexity
  • max: "20"
2 Errors Error
JavaNCSS 0 Errors Error
ArrayTypeStyle 0 Errors Error
Indentation 8 Errors Error
TodoComment 1 Errors Error
UpperEll 0 Errors Error

Details

com/atlassian/gadgets/dashboard/internal/AbstractViewComponent.java

Violation Message Line
Errors Missing a Javadoc comment. 7
Infos Method 'getId' is not designed for extension - needs to be abstract, final or empty. 18
Infos Method 'getTitle' is not designed for extension - needs to be abstract, final or empty. 23
Infos Method 'toString' is not designed for extension - needs to be abstract, final or empty. 28

com/atlassian/gadgets/dashboard/internal/Dashboard.java

Violation Message Line
Errors Missing a Javadoc comment. 16
Errors Class Fan-Out Complexity is 14 (max allowed is 10). 16
Warnings Line has trailing spaces. 21
Warnings Line has trailing spaces. 23
Warnings Line has trailing spaces. 25
Errors First sentence should end with a period. 43
Errors Redundant 'public' modifier. 46
Errors First sentence should end with a period. 57
Errors First sentence should end with a period. 65
Errors First sentence should end with a period. 72
Warnings Line has trailing spaces. 80
Warnings Line has trailing spaces. 87
Warnings Line has trailing spaces. 95
Warnings Line has trailing spaces. 99
Warnings Line has trailing spaces. 105
Errors First sentence should end with a period. 113
Warnings Line is longer than 120 characters. 121
Errors ',' is not followed by whitespace. 121

com/atlassian/gadgets/dashboard/internal/DashboardRepository.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 5
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 6
Errors Missing a Javadoc comment. 8
Errors '(' is preceded with whitespace. 11

com/atlassian/gadgets/dashboard/internal/DashboardTemplateRenderer.java

Violation Message Line
Errors Missing a Javadoc comment. 14
Warnings Line has trailing spaces. 28
Infos Method 'render' is not designed for extension - needs to be abstract, final or empty. 29
Warnings Line is longer than 120 characters. 34
Infos Method 'render' is not designed for extension - needs to be abstract, final or empty. 34
Warnings Line has trailing spaces. 38
Infos Method 'renderFragment' is not designed for extension - needs to be abstract, final or empty. 39
Infos Method 'resolve' is not designed for extension - needs to be abstract, final or empty. 44

com/atlassian/gadgets/dashboard/internal/DashboardUrlBuilder.java

Violation Message Line
Warnings Line has trailing spaces. 22
Warnings Line has trailing spaces. 26
Warnings Line has trailing spaces. 29
Warnings Line has trailing spaces. 30
Warnings Line has trailing spaces. 34
Warnings Line has trailing spaces. 37
Warnings Line has trailing spaces. 39
Warnings Line has trailing spaces. 43
Warnings Line has trailing spaces. 46
Warnings Line has trailing spaces. 48
Warnings Line has trailing spaces. 52
Warnings Line has trailing spaces. 55
Warnings Line has trailing spaces. 57
Warnings Line has trailing spaces. 64
Errors Redundant 'public' modifier. 76
Errors Redundant 'public' modifier. 84
Errors Redundant 'public' modifier. 92
Errors First sentence should end with a period. 94
Errors Redundant 'public' modifier. 99

com/atlassian/gadgets/dashboard/internal/DashboardWebItemFinder.java

Violation Message Line
Errors 'com.google.common.collect.ImmutableMap' should be separated from previous imports. 8
Errors Missing a Javadoc comment. 10
Warnings Line has trailing spaces. 12
Infos Method 'findDashboardMenuItems' is not designed for extension - needs to be abstract, final or empty. 20
Infos Method 'findDashboardToolsMenuItems' is not designed for extension - needs to be abstract, final or empty. 26
Warnings Line is longer than 120 characters. 34

com/atlassian/gadgets/dashboard/internal/Gadget.java

Violation Message Line
Errors Missing a Javadoc comment. 9
Errors First sentence should end with a period. 15
Warnings Line has trailing spaces. 20
Warnings Line has trailing spaces. 26
Warnings Line has trailing spaces. 28
Warnings Line has trailing spaces. 30
Warnings Line has trailing spaces. 37
Errors First sentence should end with a period. 42
Warnings Line is longer than 120 characters. 43
Warnings Line is longer than 120 characters. 44
Errors First sentence should end with a period. 48

com/atlassian/gadgets/dashboard/internal/GadgetFactory.java

Violation Message Line
Errors Missing package-info.java file. 0
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 5
Errors Missing a Javadoc comment. 8
Warnings Line is longer than 120 characters. 10
Warnings Line is longer than 120 characters. 11

com/atlassian/gadgets/dashboard/internal/GadgetLayoutException.java

Violation Message Line
Warnings Line has trailing spaces. 4

com/atlassian/gadgets/dashboard/internal/GadgetNotLoadedException.java

Violation Message Line
Errors Missing a Javadoc comment. 5
Warnings Line is longer than 120 characters. 11
Infos Method 'getGadgetId' is not designed for extension - needs to be abstract, final or empty. 15

com/atlassian/gadgets/dashboard/internal/InconsistentDashboardStateException.java

Violation Message Line
Errors Missing a Javadoc comment. 3

com/atlassian/gadgets/dashboard/internal/StateConverter.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 4
Errors First sentence should end with a period. 7
Errors First sentence should end with a period. 12
Errors First sentence should end with a period. 20

com/atlassian/gadgets/dashboard/internal/Tab.java

Violation Message Line
Warnings Line is longer than 120 characters. 11

com/atlassian/gadgets/dashboard/internal/UserPref.java

Violation Message Line
Errors Wrong order for 'java.util.Map' import. 5
Errors First sentence should end with a period. 7
Errors Redundant 'public' modifier. 48

com/atlassian/gadgets/dashboard/internal/impl/Column.java

Violation Message Line
Errors Missing a Javadoc comment. 12
Warnings Line has trailing spaces. 20
Warnings Line has trailing spaces. 30
Errors ';' is followed by whitespace. 45
Errors 'gadgets' hides a field. 57

com/atlassian/gadgets/dashboard/internal/impl/DashboardImpl.java

Violation Message Line
Errors Wrong order for 'com.google.common.base.Predicate' import. 34
Errors Wrong order for 'com.google.common.collect.ImmutableList' import. 36
Errors Wrong order for 'com.google.common.collect.Lists' import. 41
Errors 'org.apache.commons.lang.StringUtils' should be separated from previous imports. 42
Errors Class Data Abstraction Coupling is 14 (max allowed is 7) classes [AddGadgetChange, ChangeColorTo, GadgetColorChange, GadgetLayoutException, GadgetNotFoundException, GadgetStateConverter, HashMap, InternalGadgetNotFoundException, RemoveGadgetChange, RemoveGadgetFunction, UpdateGadgetUserPrefsChange, UpdateLayoutChange, UpdatePrefValues, WithIdPredicate]. 47
Errors Class Fan-Out Complexity is 34 (max allowed is 10). 47
Infos Method 'getId' is not designed for extension - needs to be abstract, final or empty. 62
Infos Method 'getTitle' is not designed for extension - needs to be abstract, final or empty. 67
Infos Method 'getLayout' is not designed for extension - needs to be abstract, final or empty. 72
Warnings Line has trailing spaces. 76
Infos Method 'getGadgetsInColumn' is not designed for extension - needs to be abstract, final or empty. 77
Infos Method 'appendGadget' is not designed for extension - needs to be abstract, final or empty. 86
Infos Method 'appendGadget' is not designed for extension - needs to be abstract, final or empty. 91
Warnings Line is longer than 120 characters. 94
Infos Method 'addGadget' is not designed for extension - needs to be abstract, final or empty. 97
Infos Method 'addGadget' is not designed for extension - needs to be abstract, final or empty. 102
Infos Method 'changeLayout' is not designed for extension - needs to be abstract, final or empty. 108
Infos Method 'rearrangeGadgets' is not designed for extension - needs to be abstract, final or empty. 120
Infos Method 'changeGadgetColor' is not designed for extension - needs to be abstract, final or empty. 131
Infos Method 'updateGadgetUserPrefs' is not designed for extension - needs to be abstract, final or empty. 149
Infos Method 'removeGadget' is not designed for extension - needs to be abstract, final or empty. 167
Infos Method 'getState' is not designed for extension - needs to be abstract, final or empty. 175
Infos Method 'findGadget' is not designed for extension - needs to be abstract, final or empty. 180
Errors 'if' is not followed by whitespace. 186
Infos Method 'getChanges' is not designed for extension - needs to be abstract, final or empty. 195
Infos Method 'clearChanges' is not designed for extension - needs to be abstract, final or empty. 200
Warnings Line is longer than 120 characters. 257
Warnings Line is longer than 120 characters. 262
Errors '{' is not followed by whitespace. 293
Errors '}' is not preceded with whitespace. 293
Warnings Line is longer than 120 characters. 310
Infos Method 'getNumberOfGadgets' is not designed for extension - needs to be abstract, final or empty. 396
Warnings Line is longer than 120 characters. 418
Infos Method 'assertGadgetLayoutIsValid' is not designed for extension - needs to be abstract, final or empty. 429
Errors '+' should be on a new line. 433

com/atlassian/gadgets/dashboard/internal/impl/DashboardRepositoryImpl.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.dashboard.DashboardId' import. 5
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 13
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 14
Warnings Line has trailing spaces. 35
Warnings Line is longer than 120 characters. 36
Infos Method 'get' is not designed for extension - needs to be abstract, final or empty. 36
Infos Method 'save' is not designed for extension - needs to be abstract, final or empty. 41
Warnings Line is longer than 120 characters. 46
Infos Method 'findDashboardByGadgetId' is not designed for extension - needs to be abstract, final or empty. 51

com/atlassian/gadgets/dashboard/internal/impl/DashboardServiceImpl.java

Violation Message Line
Errors Wrong order for 'java.util.Collections' import. 10
Infos Method 'get' is not designed for extension - needs to be abstract, final or empty. 31
Infos Method 'save' is not designed for extension - needs to be abstract, final or empty. 40

com/atlassian/gadgets/dashboard/internal/impl/DashboardUrlBuilderImpl.java

Violation Message Line
Errors Wrong order for 'com.atlassian.plugin.webresource.UrlMode' import. 9
Errors Missing a Javadoc comment. 12
Infos Method 'getBaseUrl' is not designed for extension - needs to be abstract, final or empty. 23
Infos Method 'buildDashboardUrl' is not designed for extension - needs to be abstract, final or empty. 29
Infos Method 'buildDashboardLayoutUrl' is not designed for extension - needs to be abstract, final or empty. 34
Warnings Line has trailing spaces. 38
Infos Method 'buildGadgetUrl' is not designed for extension - needs to be abstract, final or empty. 39
Infos Method 'buildGadgetColorUrl' is not designed for extension - needs to be abstract, final or empty. 44
Infos Method 'buildGadgetUserPrefsUrl' is not designed for extension - needs to be abstract, final or empty. 49
Infos Method 'buildErrorGadgetUrl' is not designed for extension - needs to be abstract, final or empty. 54
Warnings Line is longer than 120 characters. 56
Infos Method 'buildDashboardResourceUrl' is not designed for extension - needs to be abstract, final or empty. 59
Infos Method 'buildDashboardDirectoryResourceUrl' is not designed for extension - needs to be abstract, final or empty. 65
Infos Method 'buildDashboardDirectoryBaseUrl' is not designed for extension - needs to be abstract, final or empty. 70
Infos Method 'buildDashboardDirectoryUrl' is not designed for extension - needs to be abstract, final or empty. 75
Errors '{' is not preceded with whitespace. 75
Errors '{' should be on a new line. 75

com/atlassian/gadgets/dashboard/internal/impl/GadgetFactoryImpl.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 8
Warnings Line is longer than 120 characters. 43
Warnings Line is longer than 120 characters. 45
Infos Method 'createGadget' is not designed for extension - needs to be abstract, final or empty. 45
Warnings Line is longer than 120 characters. 69
Infos Method 'createGadget' is not designed for extension - needs to be abstract, final or empty. 69

com/atlassian/gadgets/dashboard/internal/impl/GadgetImpl.java

Violation Message Line
Errors 'com.google.common.collect.Iterables.any' should be separated from previous imports. 4
Errors Wrong order for 'java.net.URI' import. 7
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 13
Errors 'com.google.common.base.Function' should be separated from previous imports. 22
Errors Class Fan-Out Complexity is 12 (max allowed is 10). 29
Warnings Line has trailing spaces. 34
Warnings Line has trailing spaces. 78
Warnings Line has trailing spaces. 117
Errors Static variable definition in wrong order. 130
Errors Name 'isNotHidden' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'. 130
Errors Missing a Javadoc comment. 132
Errors 'userPrefs' hides a field. 158

com/atlassian/gadgets/dashboard/internal/impl/StateConverterImpl.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 4
Errors Missing a Javadoc comment. 11
Infos Method 'convertStateToDashboard' is not designed for extension - needs to be abstract, final or empty. 20
Infos Method 'convertStateToGadget' is not designed for extension - needs to be abstract, final or empty. 25

com/atlassian/gadgets/dashboard/internal/impl/TabImpl.java

Violation Message Line
Errors Missing a Javadoc comment. 9
Infos Method 'getDashboardId' is not designed for extension - needs to be abstract, final or empty. 20
Infos Method 'getTitle' is not designed for extension - needs to be abstract, final or empty. 25
Infos Method 'getTabUri' is not designed for extension - needs to be abstract, final or empty. 30
Infos Method 'isWritable' is not designed for extension - needs to be abstract, final or empty. 35

com/atlassian/gadgets/dashboard/internal/impl/TransactionalDashboardStateStoreImpl.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.dashboard.DashboardId' import. 5
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 11
Errors Wrong order for 'com.atlassian.sal.api.transaction.TransactionCallback' import. 13
Errors First sentence should end with a period. 15
Infos Method 'retrieve' is not designed for extension - needs to be abstract, final or empty. 35
Errors Missing a Javadoc comment. 40
Warnings Line is longer than 120 characters. 47
Infos Method 'update' is not designed for extension - needs to be abstract, final or empty. 47
Errors Missing a Javadoc comment. 53
Infos Method 'remove' is not designed for extension - needs to be abstract, final or empty. 60
Errors Missing a Javadoc comment. 65
Infos Method 'findDashboardWithGadget' is not designed for extension - needs to be abstract, final or empty. 73
Errors method def modifier at indentation level 11 not at correct indentation, 12 78
Errors Missing a Javadoc comment. 78
Errors method def lcurly at indentation level 11 not at correct indentation, 12 79
Errors method def child at indentation level 15 not at correct indentation, 16 80
Errors method def rcurly at indentation level 11 not at correct indentation, 12 81

com/atlassian/gadgets/dashboard/internal/impl/UserPrefImpl.java

Violation Message Line
Errors Missing package-info.java file. 0
Errors Wrong order for 'org.apache.commons.lang.builder.EqualsBuilder' import. 4
Errors Wrong order for 'org.apache.commons.lang.StringUtils' import. 5
Errors Wrong order for 'com.atlassian.gadgets.dashboard.internal.UserPref' import. 6
Errors Wrong order for 'com.atlassian.gadgets.spec.DataType' import. 8
Errors Wrong order for 'java.util.Map' import. 10
Errors Missing a Javadoc comment. 12
Warnings Line is longer than 120 characters. 20
Errors ')' is preceded with whitespace. 20
Errors '19' is a magic number. 61
Errors '35' is a magic number. 61
Errors 'if' construct must use '{}'s. 73
Errors 'if' construct must use '{}'s. 74
Errors 'if' construct must use '{}'s. 75

com/atlassian/gadgets/dashboard/internal/rest/AddGadgetHandlerImpl.java

Violation Message Line
Errors Class Fan-Out Complexity is 23 (max allowed is 10). 36
Infos Method 'addGadget' is not designed for extension - needs to be abstract, final or empty. 71
Infos Method 'addGadget' is not designed for extension - needs to be abstract, final or empty. 78
Warnings Line is longer than 120 characters. 93
Warnings Line is longer than 120 characters. 121
Infos Method 'moveGadget' is not designed for extension - needs to be abstract, final or empty. 121
Warnings Line is longer than 120 characters. 122
Errors Missing a Javadoc comment. 128
Warnings Line is longer than 120 characters. 135
Warnings Line has trailing spaces. 145
Warnings Line is longer than 120 characters. 155
Warnings Line is longer than 120 characters. 157
Warnings Line is longer than 120 characters. 175
Errors 'if' is not followed by whitespace. 189
Errors 'if' is not followed by whitespace. 191

com/atlassian/gadgets/dashboard/internal/rest/ChangeGadgetColorHandler.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 5
Errors Wrong order for 'javax.ws.rs.core.Response' import. 8

com/atlassian/gadgets/dashboard/internal/rest/ChangeGadgetColorHandlerImpl.java

Violation Message Line
Infos Method 'setGadgetColor' is not designed for extension - needs to be abstract, final or empty. 39

com/atlassian/gadgets/dashboard/internal/rest/ChangeLayoutHandler.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.GadgetRequestContext' import. 4
Errors Wrong order for 'javax.ws.rs.core.Response' import. 6
Errors Wrong order for 'javax.ws.rs.core.MultivaluedMap' import. 7
Warnings Line is longer than 120 characters. 18

com/atlassian/gadgets/dashboard/internal/rest/ChangeLayoutHandlerImpl.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.dashboard.internal.DashboardRepository' import. 5
Errors Wrong order for 'com.atlassian.gadgets.dashboard.Layout' import. 8
Errors Wrong order for 'com.atlassian.gadgets.dashboard.DashboardId' import. 9
Errors Wrong order for 'com.atlassian.gadgets.GadgetId' import. 10
Errors Wrong order for 'javax.ws.rs.core.Response' import. 14
Errors Wrong order for 'javax.ws.rs.core.MultivaluedMap' import. 15
Errors Wrong order for 'javax.ws.rs.core.MediaType' import. 16
Errors Wrong order for 'java.io.IOException' import. 17
Errors Wrong order for 'java.util.ArrayList' import. 19
Errors Wrong order for 'org.apache.commons.logging.Log' import. 25
Errors Class Fan-Out Complexity is 18 (max allowed is 10). 30
Infos Method 'changeLayout' is not designed for extension - needs to be abstract, final or empty. 43
Warnings Line has trailing spaces. 87
Errors method def throws at indentation level 12 not at correct indentation, 8 99
Errors method def throws at indentation level 12 not at correct indentation, 8 121
Warnings Line is longer than 120 characters. 124

com/atlassian/gadgets/dashboard/internal/rest/DashboardResource.java

Violation Message Line
Errors 'org.apache.commons.io.IOUtils' should be separated from previous imports. 33
Errors Class Fan-Out Complexity is 23 (max allowed is 10). 42
Infos Method 'getDashboard' is not designed for extension - needs to be abstract, final or empty. 82
Errors '}' is not preceded with whitespace. 84
Warnings Line is longer than 120 characters. 92
Infos Method 'getNumGadgets' is not designed for extension - needs to be abstract, final or empty. 102
Warnings Line is longer than 120 characters. 106
Warnings Line is longer than 120 characters. 112
Infos Method 'addGadget' is not designed for extension - needs to be abstract, final or empty. 133
Warnings Line is longer than 120 characters. 160
Infos Method 'changeLayoutViaPOST' is not designed for extension - needs to be abstract, final or empty. 197
Infos Method 'changeLayoutViaPUT' is not designed for extension - needs to be abstract, final or empty. 230
Errors '+' should be on a new line. 245

com/atlassian/gadgets/dashboard/internal/rest/DeleteGadgetHandlerImpl.java

Violation Message Line
Infos Method 'deleteGadget' is not designed for extension - needs to be abstract, final or empty. 39

com/atlassian/gadgets/dashboard/internal/rest/GadgetResource.java

Violation Message Line
Errors Wrong order for 'com.atlassian.gadgets.dashboard.DashboardNotFoundException' import. 29
Errors Class Fan-Out Complexity is 25 (max allowed is 10). 45
Errors More than 7 parameters. 74
Infos Method 'getRenderedGadget' is not designed for extension - needs to be abstract, final or empty. 103
Errors NPath Complexity is 28 (max allowed is 20). 103
Errors ',' is not followed by whitespace. 105
Errors '}' is not preceded with whitespace. 105
Errors 'if' is not followed by whitespace. 112
Warnings Line has trailing spaces. 116
Errors '{' should be on a new line. 121
Errors 'if' is not followed by whitespace. 139
Infos Method 'deleteOrMoveGadgetViaPost' is not designed for extension - needs to be abstract, final or empty. 162
Errors if child at indentation level 16 not at correct indentation, 12 176
Errors Line contains a tab character. 176
Errors if child at indentation level 16 not at correct indentation, 12 177
Errors Line contains a tab character. 177
Infos Method 'deleteGadget' is not designed for extension - needs to be abstract, final or empty. 194
Infos Method 'moveGadget' is not designed for extension - needs to be abstract, final or empty. 220
Warnings Line is longer than 120 characters. 238
Warnings Line has trailing spaces. 257
Infos Method 'changeGadgetColorViaPOST' is not designed for extension - needs to be abstract, final or empty. 269
Infos Method 'changeGadgetColor' is not designed for extension - needs to be abstract, final or empty. 299
Errors '+' should be on a new line. 328
Infos Method 'updateUserPrefsViaPOST' is not designed for extension - needs to be abstract, final or empty. 345
Infos Method 'updateUserPrefsViaPUT' is not designed for extension - needs to be abstract, final or empty. 388
Errors '+' should be on a new line. 412

com/atlassian/gadgets/dashboard/internal/rest/UpdateGadgetUserPrefsHandler.java

Violation Message Line
Errors Wrong order for 'javax.ws.rs.core.MultivaluedMap' import. 7

com/atlassian/gadgets/dashboard/internal/rest/UpdateGadgetUserPrefsHandlerImpl.java

Violation Message Line
Errors Class Fan-Out Complexity is 12 (max allowed is 10). 24
Errors Static variable definition in wrong order. 28
Infos Method 'updateUserPrefs' is not designed for extension - needs to be abstract, final or empty. 45

com/atlassian/gadgets/dashboard/internal/rest/representations/DashboardRepresentation.java

Violation Message Line
Errors Missing a Javadoc comment. 35
Errors Variable 'writable' explicitly initialized to 'false' (default value for its type). 41
Infos Method 'writable' is not designed for extension - needs to be abstract, final or empty. 50
Errors 'writable' hides a field. 50
Infos Method 'gadgets' is not designed for extension - needs to be abstract, final or empty. 56
Errors 'gadgets' hides a field. 56
Infos Method 'build' is not designed for extension - needs to be abstract, final or empty. 64

com/atlassian/gadgets/dashboard/internal/rest/representations/GadgetRepresentation.java

Violation Message Line
Errors Wrong order for 'org.apache.commons.lang.StringUtils' import. 18
Errors Comment matches to-do format 'TODO:'. 22
Errors '}' is not preceded with whitespace. 63
Errors NPath Complexity is 256 (max allowed is 20). 91
Warnings Line is longer than 120 characters. 101
Infos Method 'getHasNonHiddenUserPrefs' is not designed for extension - needs to be abstract, final or empty. 112
Infos Method 'isLoaded' is not designed for extension - needs to be abstract, final or empty. 117
Infos Method 'getColor' is not designed for extension - needs to be abstract, final or empty. 122
Infos Method 'getGadgetSpecUrl' is not designed for extension - needs to be abstract, final or empty. 127
Infos Method 'getHeight' is not designed for extension - needs to be abstract, final or empty. 132
Infos Method 'getId' is not designed for extension - needs to be abstract, final or empty. 137
Infos Method 'isMaximizable' is not designed for extension - needs to be abstract, final or empty. 142
Infos Method 'getTitle' is not designed for extension - needs to be abstract, final or empty. 147
Infos Method 'getTitleUrl' is not designed for extension - needs to be abstract, final or empty. 152
Infos Method 'getUserPrefs' is not designed for extension - needs to be abstract, final or empty. 157
Infos Method 'getWidth' is not designed for extension - needs to be abstract, final or empty. 162
Infos Method 'getRenderedGadgetUrl' is not designed for extension - needs to be abstract, final or empty. 167
Infos Method 'getColorUrl' is not designed for extension - needs to be abstract, final or empty. 172
Infos Method 'getGadgetUrl' is not designed for extension - needs to be abstract, final or empty. 177
Infos Method 'hasNonHiddenUserPrefs' is not designed for extension - needs to be abstract, final or empty. 182
Infos Method 'getColumn' is not designed for extension - needs to be abstract, final or empty. 187
Infos Method 'getErrorMessage' is not designed for extension - needs to be abstract, final or empty. 192
Errors 'static' modifier out of order with the JLS suggestions. 200
Warnings Line is longer than 120 characters. 217
Errors '(' is followed by whitespace. 217
Errors ')' is preceded with whitespace. 217
Errors 'if' is not followed by whitespace. 219

com/atlassian/gadgets/dashboard/internal/rest/representations/RepresentationFactory.java

Violation Message Line
Errors Missing package-info.java file. 0
Warnings Line is longer than 120 characters. 23
Errors First sentence should end with a period. 25
Warnings Line is longer than 120 characters. 35

com/atlassian/gadgets/dashboard/internal/rest/representations/RepresentationFactoryImpl.java

Violation Message Line
Errors Missing a Javadoc comment. 14
Errors Class Fan-Out Complexity is 13 (max allowed is 10). 14
Warnings Line is longer than 120 characters. 19
Warnings Line is longer than 120 characters. 25
Infos Method 'createDashboardRepresentation' is not designed for extension - needs to be abstract, final or empty. 25
Warnings Line is longer than 120 characters. 32
Warnings Line is longer than 120 characters. 39
Infos Method 'createGadgetRepresentation' is not designed for extension - needs to be abstract, final or empty. 39
Warnings Line is longer than 120 characters. 42

com/atlassian/gadgets/dashboard/internal/rest/representations/UserPrefRepresentation.java

Violation Message Line
Errors Wrong order for 'org.apache.commons.lang.builder.EqualsBuilder' import. 13
Warnings Line is longer than 120 characters. 44
Warnings Line has trailing spaces. 46
Warnings Line is longer than 120 characters. 49
Errors Constructor definition in wrong order. 56
Warnings Line has trailing spaces. 95
Errors Missing a Javadoc comment. 97
Infos Method 'getValue' is not designed for extension - needs to be abstract, final or empty. 123
Infos Method 'getLabel' is not designed for extension - needs to be abstract, final or empty. 128
Infos Method 'isSelected' is not designed for extension - needs to be abstract, final or empty. 133

com/atlassian/gadgets/dashboard/internal/rest/representations/UserPrefsRepresentation.java

Violation Message Line
Errors First sentence should end with a period. 17
Errors Missing a Javadoc comment. 58
Warnings Line has trailing spaces. 73

com/atlassian/gadgets/dashboard/internal/velocity/DashboardView.java

Violation Message Line
Errors Missing package-info.java file. 0
Errors 'com.google.common.base.Preconditions.checkNotNull' should be separated from previous imports. 25
Errors Missing a Javadoc comment. 27
Errors Class Fan-Out Complexity is 14 (max allowed is 10). 27
Errors More than 7 parameters. 42
Errors 'static' modifier out of order with the JLS suggestions. 110
Warnings Line has trailing spaces. 114
Errors 'catch' is not followed by whitespace. 122
Warnings Line has trailing spaces. 137

com/atlassian/gadgets/dashboard/internal/velocity/VelocityViewFactory.java

Violation Message Line
Errors Missing a Javadoc comment. 21
Errors Class Fan-Out Complexity is 14 (max allowed is 10). 21
Warnings Line is longer than 120 characters. 42
Infos Method 'createDashboardView' is not designed for extension - needs to be abstract, final or empty. 42