mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
Cleans up code
This commit is contained in:
+2
-2
@@ -54,14 +54,14 @@ public class StrutsTilesAnnotationProcessor {
|
||||
* @return {@link TilesDefinition}
|
||||
*/
|
||||
public TilesDefinition findAnnotation(Object action, String tileName) {
|
||||
Class<? extends Object> clazz = action.getClass();
|
||||
Class<?> clazz = action.getClass();
|
||||
TilesDefinition tilesDefinition = clazz.getAnnotation(TilesDefinition.class);
|
||||
TilesDefinitions tilesDefinitions = clazz.getAnnotation(TilesDefinitions.class);
|
||||
|
||||
if (tilesDefinition == null && tilesDefinitions != null) {
|
||||
if (!StringUtils.isEmpty(tileName)) {
|
||||
for (TilesDefinition i : tilesDefinitions.value()) {
|
||||
if (i.name() != null && i.name().equals(tileName)) {
|
||||
if (i.name().equals(tileName)) {
|
||||
tilesDefinition = i;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
package org.apache.struts2.tiles;
|
||||
|
||||
import com.opensymphony.xwork2.ActionContext;
|
||||
import com.opensymphony.xwork2.LocaleProvider;
|
||||
import com.opensymphony.xwork2.LocaleProviderFactory;
|
||||
import com.opensymphony.xwork2.config.ConfigurationException;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
||||
Reference in New Issue
Block a user