Skip to content

Commit e49d4d7

Browse files
committed
Cleanup
1 parent 890ba37 commit e49d4d7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

prime-mvc.ipr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
<inspection_tool class="SizeReplaceableByIsEmpty" enabled="true" level="WARNING" enabled_by_default="true">
106106
<option name="ignoredTypes">
107107
<set>
108+
<option value="java.lang.String" />
108109
<option value="java.util.List" />
109110
</set>
110111
</option>

src/main/java/org/primeframework/mvc/action/DefaultActionMappingWorkflow.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001-2023, Inversoft Inc., All Rights Reserved
2+
* Copyright (c) 2001-2024, Inversoft Inc., All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -147,10 +147,12 @@ public void perform(WorkflowChain chain) throws IOException {
147147

148148
private String determineURI() {
149149
String uri = null;
150-
Set<String> keys = request.getParameters().keySet();
151-
for (String key : keys) {
152-
if (key.startsWith(DefaultParameterParser.ACTION_PREFIX)) {
153-
if (configuration.allowAlternateFormAction()) {
150+
151+
if (configuration.allowAlternateFormAction()) {
152+
Set<String> keys = request.getParameters().keySet();
153+
for (String key : keys) {
154+
if (key.startsWith(DefaultParameterParser.ACTION_PREFIX)) {
155+
154156
String actionParameterName = key.substring(4);
155157
String actionParameterValue = request.getParameter(key);
156158
if (request.getParameter(actionParameterName) != null && actionParameterValue.trim().length() > 0) {

0 commit comments

Comments
 (0)