From ad167066e79b85502e4a4ff67c4d93e059070b94 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 23 Sep 2015 09:45:23 +0200 Subject: [PATCH] Suppress unchecked warning with JRuby 1.7.22 --- .../org/springframework/scripting/jruby/JRubyScriptUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/scripting/jruby/JRubyScriptUtils.java b/spring-context/src/main/java/org/springframework/scripting/jruby/JRubyScriptUtils.java index a0115803c38..91e9f109c2c 100644 --- a/spring-context/src/main/java/org/springframework/scripting/jruby/JRubyScriptUtils.java +++ b/spring-context/src/main/java/org/springframework/scripting/jruby/JRubyScriptUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -95,6 +95,7 @@ public abstract class JRubyScriptUtils { /** * Initializes an instance of the {@link org.jruby.Ruby} runtime. */ + @SuppressWarnings("unchecked") private static Ruby initializeRuntime() { return JavaEmbedUtils.initialize(Collections.EMPTY_LIST); }