The following document contains the results of PMD 5.6.1.
Violation | Line |
---|---|
Avoid unused private methods such as 'setComponentPopupMenu(java.awt.Component,javax.swing.JPopupMenu)'. | 139 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.middleware.container.utils.LogUtils' | 25 |
Avoid unused imports such as 'org.universAAL.middleware.context.ContextEvent' | 26 |
Avoid unused imports such as 'org.universAAL.middleware.context.ContextEventPattern' | 27 |
Avoid unused imports such as 'org.universAAL.middleware.context.ContextSubscriber' | 28 |
Avoid unused imports such as 'org.universAAL.middleware.owl.MergedRestriction' | 29 |
Avoid unused imports such as 'org.universAAL.ontology.lighting.simple.LightingServerURIs' | 37 |
Avoid unused imports such as 'org.universAAL.ontology.lighting.simple.LightingSimplified' | 38 |
Avoid unused imports such as 'org.universAAL.ontology.phThing.Device' | 39 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.middleware.container.utils.LogUtils' | 28 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 41 |
Avoid modifiers which are implied by the context | 49 |
Avoid modifiers which are implied by the context | 54 |
Avoid modifiers which are implied by the context | 59 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 39 |
Avoid modifiers which are implied by the context | 43 |
Avoid modifiers which are implied by the context | 51 |
Avoid modifiers which are implied by the context | 56 |
Avoid modifiers which are implied by the context | 61 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 37 |
Avoid modifiers which are implied by the context | 40 |
Avoid modifiers which are implied by the context | 44 |
Avoid modifiers which are implied by the context | 49 |
Avoid modifiers which are implied by the context | 54 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 35 |
Avoid modifiers which are implied by the context | 38 |
Avoid modifiers which are implied by the context | 42 |
Avoid modifiers which are implied by the context | 45 |
Avoid modifiers which are implied by the context | 48 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 38–44 |
Avoid modifiers which are implied by the context | 41–43 |
Avoid modifiers which are implied by the context | 46–57 |
Avoid modifiers which are implied by the context | 49–51 |
Avoid modifiers which are implied by the context | 53–56 |
Avoid modifiers which are implied by the context | 59–65 |
Avoid modifiers which are implied by the context | 62–64 |
Avoid modifiers which are implied by the context | 67–73 |
Avoid modifiers which are implied by the context | 70–72 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.ontology.location.indoor.Room' | 34 |
Avoid unused private methods such as 'constructLampURIfromLocalID(int)'. | 50 |
Avoid unused private methods such as 'constructLocationURIfromLocalID(String)'. | 54 |
Avoid unused private methods such as 'extractLocalIDfromLampURI(String)'. | 58 |
Violation | Line |
---|---|
Avoid unused private fields such as 'serverLightingRestrictions'. | 42 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 27 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.ontology.lighting.simple.LightingInterfaceLevel1' | 28 |
Avoid unused imports such as 'org.universAAL.ontology.lighting.simple.LightingInterfaceLevel2' | 29 |
Avoid unused imports such as 'org.universAAL.ontology.lighting.simple.LightingInterfaceLevel3' | 30 |
Avoid empty try blocks | 46–57 |
Violation | Line |
---|---|
Avoid unused private fields such as 'contextListener'. | 40 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.awt.Scrollbar' | 24 |
Violation | Line |
---|---|
Avoid unused local variables such as 'i'. | 268 |
Useless parentheses. | 333 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.ontology.activityhub.ActivityHubSensorEvent' | 38 |
Avoid unused imports such as 'org.universAAL.ontology.activityhub.factory.ActivityHubEventFactory' | 49 |
Violation | Line |
---|---|
Avoid unused private fields such as 'ahSimulator'. | 40 |
Violation | Line |
---|---|
Avoid unused private fields such as 'contextListener'. | 40 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.swing.Action' | 27 |
Avoid unused private fields such as 'field1'. | 84 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.ontology.device.SwitchActuator' | 32 |
Avoid unused imports such as 'org.universAAL.ontology.device.ValueDevice' | 34 |
Avoid unused private methods such as 'setLightValueRequest(String,int)'. | 97 |
Violation | Line |
---|---|
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 174 |
Violation | Line |
---|---|
Useless parentheses. | 83 |
Violation | Line |
---|---|
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 177 |
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 187 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'javax.swing.JTabbedPane' due to existing import 'javax.swing.JTabbedPane' | 65 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 67 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 68 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 69 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 72 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 73 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 74 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 75 |
Unnecessary use of fully qualified name 'javax.swing.JTextArea' due to existing import 'javax.swing.JTextArea' | 81 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 82 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 84 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 85 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 87 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 88 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 89 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 91 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 97 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 99 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 100 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 106 |
Unnecessary use of fully qualified name 'javax.swing.JTabbedPane' due to existing import 'javax.swing.JTabbedPane' | 137 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 140 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 143 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 144 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 146 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 148 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 150 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 152 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 155 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 157 |
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 160 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 168 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 189 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 190 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 198 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 199 |
Unnecessary use of fully qualified name 'javax.swing.JTextArea' due to existing import 'javax.swing.JTextArea' | 251 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 273 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 276 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 279 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 306 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 307 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 311 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 312 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 316 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 317 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 330 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 331 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 343 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 346 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 358 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 359 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 363 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 364 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 444 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 448 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 449 |
Unnecessary use of fully qualified name 'javax.swing.JButton' due to existing import 'javax.swing.JButton' | 474 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 501 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 502 |
Unnecessary use of fully qualified name 'java.awt.event.ActionListener' due to existing import 'java.awt.event.ActionListener' | 530 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 531 |
Avoid unused method parameters such as 'evt'. | 614 |
Avoid unused method parameters such as 'evt'. | 627 |
Avoid unused method parameters such as 'evt'. | 640 |
Avoid unused method parameters such as 'evt'. | 674 |
Avoid unused method parameters such as 'evt'. | 685 |
Avoid unused method parameters such as 'evt'. | 694 |
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 745 |
Avoid unused method parameters such as 'evt'. | 830 |
Avoid unused method parameters such as 'evt'. | 835 |
Avoid unused local variables such as 'query'. | 836 |
Avoid unused method parameters such as 'evt'. | 844 |
Avoid unused method parameters such as 'evt'. | 861 |
Avoid unused method parameters such as 'evt'. | 883 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.util.Iterator' | 24 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.util.ArrayList' | 25 |
Avoid unused imports such as 'java.util.Iterator' | 27 |
Avoid unused imports such as 'java.util.List' | 28 |
Avoid unused imports such as 'org.universAAL.ontology.vcard.Tel' | 51 |
Avoid unused private methods such as 'removeProfilable(Resource)'. | 257 |
Avoid unused private methods such as 'changeProfilable(Resource)'. | 271 |
Avoid unused private methods such as 'addProfilable(Resource)'. | 283 |
Avoid unused private methods such as 'getProfilable(Resource)'. | 295 |
Avoid unused private methods such as 'removeSubProfile(SubProfile)'. | 388 |
Avoid unused private methods such as 'changeSubProfile(SubProfile)'. | 404 |
Avoid unused private methods such as 'addSubProfile(SubProfile)'. | 417 |
Avoid unused private methods such as 'getSubProfile(SubProfile)'. | 430 |
Avoid unused private methods such as 'addSubprofile(User,SubProfile)'. | 581 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.util.Iterator' | 24 |
Avoid unused imports such as 'org.universAAL.middleware.service.owls.process.ProcessOutput' | 36 |
Useless parentheses. | 90 |
Useless parentheses. | 93 |
Useless parentheses. | 99 |
Useless parentheses. | 102 |
Useless parentheses. | 106 |
Useless parentheses. | 109 |
Useless parentheses. | 112 |
Useless parentheses. | 115 |
Useless parentheses. | 119 |
Useless parentheses. | 122 |
Useless parentheses. | 134 |
Useless parentheses. | 137 |
Useless parentheses. | 141 |
Useless parentheses. | 144 |
Useless parentheses. | 147 |
Useless parentheses. | 150 |
Useless parentheses. | 154 |
Useless parentheses. | 157 |
Useless parentheses. | 160 |
Useless parentheses. | 163 |
Useless parentheses. | 167 |
Useless parentheses. | 170 |
Useless parentheses. | 173 |
Useless parentheses. | 176 |
Useless parentheses. | 180 |
Useless parentheses. | 183 |
Useless parentheses. | 187 |
Useless parentheses. | 190 |
Useless parentheses. | 193 |
Useless parentheses. | 197 |
Useless parentheses. | 200 |
Useless parentheses. | 203 |
Useless parentheses. | 207 |
Useless parentheses. | 210 |
Useless parentheses. | 213 |
Useless parentheses. | 217 |
Useless parentheses. | 220 |
Useless parentheses. | 223 |
Useless parentheses. | 226 |
Avoid unused private methods such as 'getDevice(Device)'. | 319 |
Avoid unused private methods such as 'addDevice(Device)'. | 324 |
Avoid unused private methods such as 'changeDevice(Device)'. | 329 |
Avoid unused private methods such as 'removeDevice(Device)'. | 334 |
Avoid unused private methods such as 'genericGet(Resource,String)'. | 363 |
Avoid unused private methods such as 'genericAdd(Resource,String)'. | 370 |
Avoid unused private methods such as 'genericChange(Resource,String)'. | 375 |
Avoid unused private methods such as 'genericRemove(Resource,String)'. | 380 |
Avoid unused private methods such as 'addDevicesToSpace(Space,Device)'. | 522 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'context'. | 57 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 99 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 108 |
Avoid unused method parameters such as 'evt'. | 132 |
Avoid unused method parameters such as 'evt'. | 182 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'lampURI'. | 96 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'context'. | 50 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 94 |
Unnecessary use of fully qualified name 'java.awt.event.ActionEvent' due to existing import 'java.awt.event.ActionEvent' | 129 |
Avoid unused method parameters such as 'evt'. | 162 |
Avoid unused method parameters such as 'evt'. | 192 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.universAAL.middleware.ui.rdf.Repeat' | 46 |
Useless parentheses. | 450 |
Useless parentheses. | 451 |
Useless parentheses. | 454 |
Useless parentheses. | 455 |
Useless parentheses. | 458 |
Useless parentheses. | 459 |
Useless parentheses. | 462 |
Useless parentheses. | 463 |
Useless parentheses. | 466 |
Useless parentheses. | 467 |
Useless parentheses. | 470 |
Useless parentheses. | 471 |
Violation | Line |
---|---|
Useless parentheses. | 242 |
Useless parentheses. | 242 |
Useless parentheses. | 243 |
Violation | Line |
---|---|
Avoid unused private fields such as 'libNameWithoutExtension_windows_32'. | 58 |
Avoid unused private fields such as 'libNameWithoutExtension_windows_64'. | 59 |
Avoid unused private fields such as 'msg_generator'. | 101 |
Avoid unused private fields such as 'rmp'. | 102 |
Avoid unused private fields such as 'outputData'. | 104 |
Avoid unused private methods such as 'releaseHDPDataChannelFileDescriptor(String)'. | 263 |
Useless parentheses. | 471 |
Useless parentheses. | 471 |
Useless parentheses. | 472 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 47 |
Avoid modifiers which are implied by the context | 58 |
Avoid modifiers which are implied by the context | 69 |
Avoid modifiers which are implied by the context | 80 |
Violation | Line |
---|---|
Useless parentheses. | 242 |
Useless parentheses. | 242 |
Useless parentheses. | 243 |
Useless parentheses. | 429 |
Useless parentheses. | 429 |
Useless parentheses. | 430 |
Violation | Line |
---|---|
Avoid unused private fields such as 'service'. | 61 |
Violation | Line |
---|---|
Avoid unused local variables such as 'inputUser'. | 93 |
Violation | Line |
---|---|
Avoid unused private fields such as 'dataTypeValue'. | 47 |
Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal | 110 |
These nested if statements could be combined | 186–188 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 38 |
Avoid modifiers which are implied by the context | 40 |
Avoid modifiers which are implied by the context | 42 |
Avoid modifiers which are implied by the context | 44 |
Avoid modifiers which are implied by the context | 46 |
Avoid modifiers which are implied by the context | 48 |
Avoid modifiers which are implied by the context | 50 |
Violation | Line |
---|---|
Avoid unused private fields such as 'msg_generator'. | 97 |
Avoid unused private fields such as 'rmp'. | 98 |
Avoid unused private methods such as 'releaseHDPDataChannelFileDescriptor(String)'. | 259 |
These nested if statements could be combined | 456–462 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 47 |
Avoid modifiers which are implied by the context | 58 |
Avoid modifiers which are implied by the context | 69 |
Avoid modifiers which are implied by the context | 80 |
Violation | Line |
---|---|
Avoid unused private methods such as 'setComponentPopupMenu(java.awt.Component,javax.swing.JPopupMenu)'. | 182 |
Violation | Line |
---|---|
Useless parentheses. | 190 |
Useless parentheses. | 213 |
Useless parentheses. | 234 |
Useless parentheses. | 234 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 27 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 39 |
Violation | Line |
---|---|
Useless parentheses. | 96–97 |
Useless parentheses. | 111–112 |
Useless parentheses. | 126–127 |
Useless parentheses. | 239 |
Useless parentheses. | 260 |
Useless parentheses. | 279 |
Useless parentheses. | 279 |
Violation | Line |
---|---|
Avoid empty if statements | 68–70 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'javax.swing.JPanel' due to existing import 'javax.swing.JPanel' | 60 |
Violation | Line |
---|---|
Useless parentheses. | 148–151 |
Violation | Line |
---|---|
Avoid unused private methods such as 'addObject(M,String)'. | 257 |
Useless parentheses. | 314 |
Useless parentheses. | 314 |
Avoid unused private methods such as 'removeObject(M,String)'. | 377 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'osgiContext'. | 33 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'context'. | 34 |
Violation | Line |
---|---|
Avoid unused local variables such as 'ref'. | 42 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.io.File' | 23 |
Avoid unused imports such as 'javax.xml.bind.JAXBException' | 33 |
Avoid unused imports such as 'org.universAAL.middleware.managers.deploy.uapp.model.AalUapp' | 49 |
Avoid unused imports such as 'org.universAAL.middleware.managers.deploy.uapp.model.ObjectFactory' | 50 |
Avoid unused private fields such as 'jc'. | 67 |
Avoid unused private fields such as 'unmarshaller'. | 68 |
Avoid unused private fields such as 'marshaller'. | 69 |
Avoid unused local variables such as 'uAAPUri'. | 101 |