Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -277,7 +277,7 @@ public abstract class WebUtils {
|
||||
* @throws IllegalStateException if the session attribute could not be found
|
||||
*/
|
||||
public static Object getRequiredSessionAttribute(HttpServletRequest request, String name)
|
||||
throws IllegalStateException {
|
||||
throws IllegalStateException {
|
||||
|
||||
Object attr = getSessionAttribute(request, name);
|
||||
if (attr == null) {
|
||||
@@ -317,7 +317,7 @@ public abstract class WebUtils {
|
||||
* @return the value of the session attribute, newly created if not found
|
||||
* @throws IllegalArgumentException if the session attribute could not be instantiated
|
||||
*/
|
||||
public static Object getOrCreateSessionAttribute(HttpSession session, String name, Class clazz)
|
||||
public static Object getOrCreateSessionAttribute(HttpSession session, String name, Class<?> clazz)
|
||||
throws IllegalArgumentException {
|
||||
|
||||
Assert.notNull(session, "Session must not be null");
|
||||
|
||||
Reference in New Issue
Block a user