ソースを参照

prepare for jfinal-1.8-SNAPSHOT

James 11 年 前
コミット
e280296d5c

+ 1 - 0
src/com/jfinal/core/ActionReporter.java

@@ -48,6 +48,7 @@ final class ActionReporter {
 		doReport(controller, action);
 	}
 	
+	@SuppressWarnings("unchecked")
 	private static final void doReport(Controller controller, Action action) {
 		StringBuilder sb = new StringBuilder("\nJFinal action report -------- ").append(sdf.format(new Date())).append(" ------------------------------\n");
 		Class<? extends Controller> cc = action.getControllerClass();

+ 1 - 1
src/com/jfinal/core/ModelInjector.java

@@ -78,7 +78,7 @@ final class ModelInjector {
 		}
 	}
 	
-	@SuppressWarnings("rawtypes")
+	@SuppressWarnings({"rawtypes", "unchecked"})
 	private static final void injectActiveRecordModel(Model<?> model, String modelName, HttpServletRequest request, boolean skipConvertError) {
 		Table table = TableMapping.me().getTable(model.getClass());
 		

+ 0 - 1
src/com/jfinal/ext/interceptor/SessionInViewInterceptor.java

@@ -69,7 +69,6 @@ class JFinalSession extends HashMap implements HttpSession {
 		return session.getAttribute(key);
 	}
 	
-	@SuppressWarnings("unchecked")
 	public Enumeration getAttributeNames() {
 		return session.getAttributeNames();
 	}

+ 1 - 0
src/com/jfinal/plugin/ehcache/CacheInterceptor.java

@@ -94,6 +94,7 @@ public class CacheInterceptor implements Interceptor {
 		return sb.toString();
 	}
 	
+	@SuppressWarnings("unchecked")
 	private void cacheAction(String cacheName, String cacheKey, Controller controller) {
 		HttpServletRequest request = controller.getRequest();
 		Map<String, Object> cacheData = new HashMap<String, Object>();

+ 1 - 0
src/com/jfinal/render/VelocityRender.java

@@ -74,6 +74,7 @@ public class VelocityRender extends Render {
 		}
 	}
 	
+	@SuppressWarnings("unchecked")
 	public void render() {
 		 if (notInit) {
 			 Velocity.init(properties);	// Velocity.init("velocity.properties");	// setup