Revision 895e21ca
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/GenericConfiguratorWizardPageE4.java | ||
---|---|---|
234 | 234 |
if (method.getName().startsWith("set")) { |
235 | 235 |
|
236 | 236 |
Class<?>[] typeList = method.getParameterTypes(); |
237 |
|
|
238 |
if (typeList.length > 1) { |
|
239 |
new IllegalStateException( |
|
237 |
//this is irrelevant for methods without boolean parameters |
|
238 |
if (typeList.length > 1 && typeList[0].getName().equals("boolean")) {
|
|
239 |
throw new IllegalStateException(
|
|
240 | 240 |
"Found a setter with parameter count > 1"); |
241 | 241 |
} |
242 | 242 |
|
Also available in: Unified diff
code cleaning and fix potential null pointer